The CiviCRM public extensions directory at https://civicrm.org/extdir/ver=5.4.1|cms=WordPress could not be contacted
The dashboard issue is a known issue in CiviCRM 5.4. The latest version of CiviCRM solves this.  I'm not sure if that would also affect the extensions directory though.  Please comment on this answer if it does though!