Fix WordPress Admin Area Running Slow

WordPress admin dashboard loading slowly? Speed up wp-admin with these optimizations.

Common Causes

  • Too many plugins
  • Heavy admin plugins
  • Large database
  • Low server resources
  • Heartbeat API
  • External HTTP requests

Solution 1: Disable Heartbeat API

Add to functions.php:

function disable_heartbeat() {n  wp_deregister_script('heartbeat');n}nadd_action('admin_enqueue_scripts', 'disable_heartbeat');

Or Control Frequency

function heartbeat_frequency($settings) {n  $settings['interval'] = 60; // 60 secondsn  return $settings;n}nadd_filter('heartbeat_settings', 'heartbeat_frequency');

Solution 2: Limit Post Revisions

Add to wp-config.php:

define('WP_POST_REVISIONS', 3);

Or Disable Completely

define('WP_POST_REVISIONS', false);

Solution 3: Increase Memory Limit

define('WP_MEMORY_LIMIT', '256M');ndefine('WP_MAX_MEMORY_LIMIT', '512M');

Solution 4: Disable Admin Notices

Too many plugin notifications slow admin

function hide_admin_notices() {n  remove_all_actions('admin_notices');n}nadd_action('admin_head', 'hide_admin_notices', 1);

Solution 5: Optimize Database

Using Plugin

  1. Install WP-Optimize
  2. Clean database tables
  3. Remove spam comments
  4. Delete transients
  5. Optimize tables

Manual Optimization

Via phpMyAdmin:

  1. Select database
  2. Check all tables
  3. Click Optimize

Solution 6: Disable Plugin Updates Check

Checking for updates slows admin:

remove_action('load-update-core.php', 'wp_update_plugins');nadd_filter('pre_site_transient_update_plugins', '__return_null');

Solution 7: Deactivate Heavy Plugins

Common Slow Plugins

  • Broken Link Checker
  • Jetpack (if using all modules)
  • Post views counter plugins
  • Heavy page builders

Check Plugin Performance

  1. Install Query Monitor
  2. View slow queries
  3. Identify heavy plugins

Solution 8: Reduce Dashboard Widgets

function remove_dashboard_widgets() {n  remove_meta_box('dashboard_primary', 'dashboard', 'side');n  remove_meta_box('dashboard_secondary', 'dashboard', 'side');n  remove_meta_box('dashboard_quick_press', 'dashboard', 'side');n  remove_meta_box('dashboard_recent_drafts', 'dashboard', 'side');n}nadd_action('admin_init', 'remove_dashboard_widgets');

Solution 9: Disable Admin AJAX

For pages where not needed:

function disable_admin_ajax() {n  if (!wp_doing_ajax()) {n    wp_dequeue_script('heartbeat');n  }n}nadd_action('admin_enqueue_scripts', 'disable_admin_ajax');

Solution 10: Enable Admin Caching

Using W3 Total Cache

  1. Enable object caching
  2. Enable database caching
  3. Configure browser caching

Solution 11: Block External HTTP Requests

add_filter('http_request_host_is_external', '__return_false');

Whitelist Specific Domains

function control_external_requests($allow, $host, $url) {n  $allowed = array('api.wordpress.org');n  return in_array($host, $allowed) ? true : false;n}nadd_filter('http_request_host_is_external', 'control_external_requests', 10, 3);

Solution 12: Upgrade Hosting

If nothing works:

  • Move to better hosting
  • Upgrade to VPS
  • Use managed WordPress hosting
  • Enable server-level caching

Final mention: Please feel free to contact us for admin optimization.

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *