Skip to content

WordPress Admin Slow? Find the Cause and Fix It

Is your WordPress admin slow while the public site stays fast? Measure one admin page load, trace the delay to a plugin, autoloaded options, Heartbeat traffic or a heavy database query, and fix the cause you actually found.

Your public site loads in under a second, but the WordPress dashboard takes eight to fifteen seconds every time you click. Page caching cannot help, because every admin request comes from a logged-in user and skips the cache. Start by measuring one admin page load to see where the seconds go. Then check the four usual causes in order: autoloaded options (settings read on every request), Heartbeat (each open tab checking in with the server), plugins calling outside servers, and slow list-screen queries. Each leaves a different trace, so you can find the real one without switching plugins off at random.

What you’ll accomplish

  • Get a real number for how long one admin page takes on the server, and where that time goes.
  • Check whether autoloaded options, Heartbeat traffic, a plugin or a list-screen query is responsible.
  • Fix the cause you found, with commands and settings you can reverse.
  • Confirm the improvement with the same measurement you started from.

Prerequisites

  • WordPress 6.6 or later. Older versions work too, but the autoload values and the Site Health check described below arrived in 6.6.
  • An administrator account, and shell access with WP-CLI (the wp command-line tool) for the database and option steps.
  • A staging copy of the site for anything that blocks requests or deactivates plugins. Production is fine for the read-only steps.
  • A database backup before you change options or indexes. wp db export makes one in a few seconds on most sites.
  • Chrome, Edge or Firefox with developer tools.

The examples use the default wp_ table prefix. If yours differs, wp config get table_prefix prints it; substitute it in every SQL query.

How it works

One wp-admin page load: the browser request waits for a PHP-FPM worker, WordPress boots and loads autoloaded options, plugin admin_init hooks run, an external HTTP call can stall for up to 5 seconds, list-table SQL runs, then the response goes back; Heartbeat polls admin-ajax.php every 15 to 60 seconds and takes workers too

An admin page runs a longer code path than a front-end page. First the request needs a free PHP-FPM worker, one of the PHP processes your web server hands requests to. Then WordPress boots and reads every option marked for autoload in one query. With a few megabytes of autoloaded data, that query and the unpacking after it cost time on every single request.

Next, plugins run their admin code. Many hook into admin_init, an action that fires on every admin screen, to check licences, show notices or sync settings. If one of those callbacks calls an outside server and that server is slow, the whole page waits. WordPress waits 5 seconds per request by default before giving up, and some plugins set longer timeouts.

Then the screen itself runs its queries. On a site with many posts, a list screen sorted or filtered by a custom field can scan millions of rows in wp_postmeta, the table where plugins store per-post data.

Alongside all of this, the Heartbeat API keeps each open admin tab talking to the server. It sends a request to admin-ajax.php every 15 seconds on the post editor and every 60 seconds on most other screens. Each of those requests boots WordPress and holds a PHP worker. Several editors with several tabs each can keep enough workers busy that normal page loads start to queue.

Step-by-step

  1. Measure one slow admin page. Open the slowest screen, often /wp-admin/edit.php or the dashboard. Open developer tools, select the Network tab, tick Disable cache and reload. Click the first request (the page document) and open Timing. The line labelled “Waiting for server response” is the TTFB (time to first byte), the time the server spent building the page. Write it down. If TTFB is under one second and the page still feels slow, the delay is in the browser, not the server, and this article is the wrong place to look.

  2. Install Query Monitor and read the overview. Query Monitor is a free debugging plugin that shows what happened inside each request. Install it on staging if you can:

    wp plugin install query-monitor --activate

    Example output:

    Installing Query Monitor (3.17.2)
    Downloading installation package from https://downloads.wordpress.org/plugin/query-monitor.3.17.2.zip...
    Unpacking the package...
    Installing the plugin...
    Plugin installed successfully.
    Activating 'query-monitor'...
    Plugin 'query-monitor' activated.
    Success: Installed 1 of 1 plugins.

    Reload the slow screen. The admin toolbar now shows page generation time, memory, database time and query count, for example 9.41s 62.3MB 0.38s 214Q. Compare the first and third numbers. Here the database took 0.38 seconds of a 9.4-second page, so the time is going somewhere else. Open Queries by Component to see query time per plugin, and HTTP API Calls to see every outgoing request with its duration and the plugin that made it. A call taking 5.0 seconds or more there is almost always a timeout. If database time is most of the page, go to step 10 first.

  3. Measure autoloaded options. Run this from the site’s root directory:

    wp option list --autoload=on --format=total_bytes

    Example output:

    1874293

    That is about 1.8 MB loaded on every request. WordPress 6.6 changed the stored autoload values from yes/no to on, off, auto, auto-on and auto-off, and old rows keep yes. To count every value that still autoloads, query the table directly:

    wp db query "SELECT COUNT(*) AS options, ROUND(SUM(LENGTH(option_value))/1024) AS kb FROM wp_options WHERE autoload IN ('yes','on','auto-on','auto');"

    Example output:

    +---------+------+
    | options | kb   |
    +---------+------+
    |    1187 | 1830 |
    +---------+------+

    Site Health (Tools > Site Health) warns with “Autoloaded options could affect performance” once the total passes 800 KB. Under that, autoload is rarely your main problem; move on to step 5. Above it, find the largest entries:

    wp db query "SELECT option_name, ROUND(LENGTH(option_value)/1024) AS kb, autoload FROM wp_options WHERE autoload IN ('yes','on','auto-on','auto') ORDER BY LENGTH(option_value) DESC LIMIT 6;"

    Example output:

    +-----------------------------+------+----------+
    | option_name                 | kb   | autoload |
    +-----------------------------+------+----------+
    | acme_stats_cache            | 1104 | yes      |
    | acme_import_log             |  268 | yes      |
    | rewrite_rules               |  184 | on       |
    | cron                        |   96 | on       |
    | _transient_acme_remote_feed |   61 | yes      |
    | widget_custom_html          |   12 | on       |
    +-----------------------------+------+----------+
  4. Stop the oversized options from autoloading. Back up first with wp db export. Find which code owns each large option by searching for its name with grep -rl "acme_stats_cache" wp-content/. Use this rule: an option over 100 KB that belongs to a cache, a log or a deactivated plugin should not autoload. Leave rewrite_rules, cron and the active theme’s settings alone, because WordPress reads them on most requests anyway.

    wp option set-autoload acme_stats_cache off

    Example output:

    Success: Updated autoload value for 'acme_stats_cache' option.

    Transients (temporary cached values plugins store in wp_options when no object cache is installed) are autoloaded when saved without an expiry time. Clear the expired ones:

    wp transient delete --expired

    Example output:

    Success: 318 expired transients deleted from the database.

    Delete an option outright only when the plugin that wrote it is gone for good. If WP-CLI reports that set-autoload is not a registered subcommand, your WP-CLI predates it; run wp cli update first. A full walkthrough of this audit is in WordPress autoload audit.

  5. Count Heartbeat traffic. Heartbeat requests are POST requests to admin-ajax.php. Count them per minute in your web server’s access log during working hours:

    grep 'POST /wp-admin/admin-ajax.php' /var/log/nginx/access.log | awk '{print substr($4,2,17)}' | sort | uniq -c | sort -rn | head -5

    Example output:

        118 22/Oct/2026:10:41
        112 22/Oct/2026:10:42
        109 22/Oct/2026:10:40
         97 22/Oct/2026:11:15
         94 22/Oct/2026:10:39

    Over 100 a minute means about two requests a second, each holding a PHP worker. Not every one is Heartbeat, since plugins also use admin-ajax.php. In the browser’s Network tab, filter on admin-ajax, click a request and check the payload: Heartbeat shows action: heartbeat. If the count is a handful per minute, Heartbeat is not your problem. On Apache, the log is often /var/log/apache2/access.log or /var/log/httpd/access_log.

  6. Slow Heartbeat down where it is not needed. Create wp-content/mu-plugins/heartbeat-tuning.php. Files in mu-plugins (must-use plugins) load automatically and cannot be switched off from the dashboard:

    <?php
    // Poll every 60 seconds everywhere, including the post editor.
    add_filter( 'heartbeat_settings', function ( $settings ) {
        $settings['interval'] = 60;
        return $settings;
    } );

    Check it loaded:

    wp plugin list --status=must-use --fields=name,status

    Example output:

    +------------------+----------+
    | name             | status   |
    +------------------+----------+
    | heartbeat-tuning | must-use |
    +------------------+----------+

    Do not turn Heartbeat off on the post editor. Post locking, which warns two editors before they overwrite each other, and the “session expired” login prompt both depend on it.

  7. Check per-plugin cost on every request. The wp profile command times each hook and callback, but it is a separate package that you must install first:

    wp package install wp-cli/profile-command:@stable
    wp profile stage bootstrap --fields=hook,time,query_count,request_count --spotlight

    Example output:

    +-------------------------+---------+-------------+---------------+
    | hook                    | time    | query_count | request_count |
    +-------------------------+---------+-------------+---------------+
    | plugins_loaded:before   | 0.2871s | 6           | 0             |
    | plugins_loaded          | 0.0915s | 4           | 0             |
    | init                    | 5.3410s | 31          | 1             |
    | wp_loaded               | 0.0402s | 1           | 0             |
    +-------------------------+---------+-------------+---------------+
    | total (4)               | 5.7638s | 42          | 1             |
    +-------------------------+---------+-------------+---------------+

    A hook with a request_count of 1 and several seconds of time is making an outside call. Drill into it:

    wp profile hook init --fields=callback,location,time,request_count --orderby=time --order=DESC --spotlight

    Example output:

    +------------------------------+----------------------------------------+---------+---------------+
    | callback                     | location                               | time    | request_count |
    +------------------------------+----------------------------------------+---------+---------------+
    | Acme_License->check_remote() | acme-pro/includes/class-license.php:88 | 5.0127s | 1             |
    | wp_widgets_init()            | wp-includes/widgets.php:1857           | 0.0311s | 0             |
    +------------------------------+----------------------------------------+---------+---------------+

    WP-CLI profiles a front-end request, so admin-only hooks such as admin_init never fire here. It catches plugins that are slow everywhere. For admin-only code, rely on Query Monitor’s panels from step 2.

  8. Prove an outside call is to blame. On staging, add these lines to wp-config.php above the “stop editing” comment:

    define( 'WP_HTTP_BLOCK_EXTERNAL', true );
    define( 'WP_ACCESSIBLE_HOSTS', 'api.wordpress.org,*.wordpress.org' );

    Reload the slow screen. If TTFB drops from nine seconds to one, an outgoing request was the cause. Query Monitor’s HTTP API Calls panel now lists each blocked call with the error “User has blocked requests through HTTP.” and the plugin that made it. Remove both lines afterwards, or updates and licence checks will stop. The lasting fix is in the plugin: a setting to cache its licence or feed check, an update from the vendor, or a replacement.

  9. Isolate admin-only plugin cost without disrupting editors. Install the Health Check & Troubleshooting plugin from WordPress.org and start Troubleshooting Mode. It disables plugins for your browser session only, so editors keep working. Enable half the plugins, reload, and keep halving the group that holds the slowness. With 30 plugins this takes about five rounds. On staging, wp plugin deactivate <plugin-slug> gives the same answer:

    wp plugin deactivate acme-pro

    Example output:

    Plugin 'acme-pro' deactivated.
    Success: Deactivated 1 of 1 plugins.
  10. Find heavy list-screen queries. Do this when Query Monitor shows most of the time in the database. Load the slow list screen in one tab, and run this in a terminal while it is still loading:

    wp db query "SHOW FULL PROCESSLIST;"

    Example output:

    +-------+--------+-----------+-------+---------+------+----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | Id    | User   | Host      | db    | Command | Time | State                | Info                                                                                                                                                                     |
    +-------+--------+-----------+-------+---------+------+----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
    | 48213 | wpuser | localhost | wp_db | Query   |    7 | Creating sort index  | SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) WHERE wp_postmeta.meta_key = '_acme_priority' ORDER BY wp_postmeta.meta_value DESC LIMIT 0, 20 |
    | 48219 | wpuser | localhost | wp_db | Query   |    0 | starting             | SHOW FULL PROCESSLIST                                                                                                                                                    |
    +-------+--------+-----------+-------+---------+------+----------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

    A query running for several seconds that sorts or filters on meta_value is the classic pattern. The default wp_postmeta indexes cover post_id and meta_key, but not meta_value, so MySQL must sort every matching row. Query Monitor’s Slow Queries panel shows the same query and the plugin or custom admin column behind it. Fix it in this order: remove the sortable custom column or filter if nobody uses it, then ask the plugin vendor, then add an index on staging. The MySQL slow query log catches these over a full working day.

  11. Add a persistent object cache. A persistent object cache such as Redis keeps options, transients and query results in memory between requests. It makes the autoload and repeated-query costs much smaller on every admin page. It does not fix a slow outside call or a slow unindexed sort. Setup for cPanel servers is in Redis object cache for WordPress.

Validate it works

Repeat the measurement from step 1 on the same screen, with the same user, and with the cache disabled. TTFB should now be close to Query Monitor’s generation time, and both should be well below where you started.

wp option list --autoload=on --format=total_bytes

Example output:

489112

The autoload total is now under the 800 KB Site Health threshold, and the Site Health warning should be gone after a reload of Tools > Site Health. Rerun the access-log count from step 5 after a working hour: with a 60-second interval, each idle admin tab sends about one Heartbeat request per minute. Finally, check Query Monitor’s HTTP API Calls panel on two or three admin screens. It should show no call close to 5 seconds.

Troubleshooting

  • Query Monitor shows 1.2 seconds but the browser waits 8. The request waited before PHP started. Look in the PHP-FPM log for “server reached pm.max_children setting”. That warning means every worker was busy, often with Heartbeat and admin-ajax.php traffic. Reduce that traffic first (step 6), then raise pm.max_children only if the server has the memory.
  • The admin is fast for you and slow for editors. Some plugins add dashboard widgets or checks only for certain roles. In Query Monitor’s settings, set the authentication cookie, then log in as an editor in that browser. The panels now appear for that account too.
  • Autoload stayed high after set-autoload. A plugin rewrote the option on the next page load with autoload turned back on. Rerun the step 3 query after a few admin page loads. If the same option returns, the plugin’s own settings or the vendor are the only lasting fix.
  • Updates and licence pages broke on staging. WP_HTTP_BLOCK_EXTERNAL is still in wp-config.php. Remove it.
  • The block editor itself is slow to save. The block editor saves through the REST API (/wp-json/), not admin-ajax.php. Look for save_post callbacks in Query Monitor’s Hooks & Actions panel, and for slow /wp-json/wp/v2/posts requests in the Network tab.

When this is the wrong approach

If the front end is slow too, the problem is the server or the database as a whole, not admin code. Start with CPU, memory and the slow query log. If only one action is slow, such as saving an order or running an import, profile that action instead of the page load. On shared hosting with CloudLinux, admin pages can hit the account’s CPU limit (LVE, the per-account resource cap) no matter how clean the code is. Your host can show those limit hits. Finally, if the slowness comes from twenty plugins each adding 200 milliseconds, no single fix will win. Cut the plugin list, or give admin traffic its own PHP-FPM pool so editors stop competing with visitors.

Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.