Skip to content

Slow WordPress site: the real causes and how to check each one

· The AYT team · 6 min read

Man typing on a laptop at a wooden table, with a phone and notebook beside it

A slow WordPress site usually has one of two problems: the server responds slowly (PHP and the database do too much work for each page) or the page is too heavy for the browser (large images, lots of JavaScript). You tell them apart by measuring the time to the server's first response (TTFB): if it's over 0.8 seconds, the problem is on the server, and the most common causes are no page cache, a slow plugin, a bloated database or the hosting account's limits. If the server responds fast and the page still appears slowly, the problem is in the page.

Step 1: find out where the time goes

  1. Open the site in Chrome, press F12 and go to the "Network" tab.
  2. Reload the page and click the first row (the page's document).
  3. In the "Timing" tab, look at "Waiting for server response". That's the TTFB.

Repeat 2–3 times, once in a private window, logged out. The numbers point in different directions:

What you see Where the problem is
high TTFB only when logged in or in wp-admin plugins, the database, no Redis
high TTFB for logged-out visitors too no page cache, server at its limit
low TTFB, but the page appears slowly images, JavaScript, fonts
fast during the day, slow at certain hours traffic, bots, scheduled tasks

Google's guidance (web.dev) is to aim for a TTFB of 0.8 seconds or less. For the page side, read the Core Web Vitals guide for WordPress.

Cause 1: no page cache

Without a page cache, every visit runs PHP and makes tens or hundreds of database queries to build the same page. With a cache, the finished page is sent straight away. You can check in the "Network" tab, under "Response Headers": many caching systems add a header that says whether the page came from the cache (for example with the value HIT).

On nginx, caching plugins that rely on rules in .htaccess don't fully work. Details in the article on .htaccess on nginx.

Cause 2: a slow plugin

A single badly written plugin can double the response time. To find it:

  1. Install Query Monitor, made by John Blackbourn. On every page it shows the slow, duplicate or failing queries, grouped by the plugin that runs them, plus external HTTP calls and how long they took.
  2. Open a slow page and look at "Queries by Component". The plugin with the most time is the first suspect.
  3. Look at "HTTP API Calls" too. A plugin that asks an external server for something on every page load (licences, statistics, feeds) can add whole seconds.
  4. Confirm on a staging site: deactivate the suspect and compare the timing.

Uninstall Query Monitor when you're done; it isn't meant to run on the site permanently.

Cause 3: a bloated database

Over time the database collects things you no longer need: old post revisions, spam comments, expired temporary data (transients), options left behind by uninstalled plugins.

The biggest problem is autoloaded options: WordPress reads them on every page. Since WordPress 6.6, Site Health warns you when they pass 800 KB. You can check them in phpMyAdmin, in the "SQL" tab:

SELECT SUM(LENGTH(option_value)) / 1024 AS kb
FROM wp_options
WHERE autoload IN ('yes', 'on', 'auto', 'auto-on');

If the result is large, look for the biggest options (ORDER BY LENGTH(option_value) DESC) and see which plugin they come from. Delete only what belongs to plugins you have already uninstalled, after a backup. If you haven't used phpMyAdmin before, start with the beginner's guide.

Cause 4: WP-Cron runs on every visit

WordPress runs its scheduled tasks (publishing, emails, cleanups) during visits to the site. On a busy site, or with a plugin that schedules many tasks, this slows down the visits it happens on. The fix is to stop WP-Cron from running on visits and run it from a server cron instead; the steps are in the article on WP-Cron.

Cause 5: the hosting account is at its limit

On shared hosting, the account has memory, CPU and process limits. When it reaches them, requests wait in line and the site slows down at traffic peaks, with no visible error. Check the resource graphs in your hosting panel. If the peaks match the slowdowns, you have three options: a page cache (it cuts usage a lot), less useless traffic (aggressive bots, blocked at the firewall) or a plan with more resources.

Cause 6: old PHP and no object cache

An old PHP is slower and no longer gets security updates; see how to change the PHP version. For a slow wp-admin and for WooCommerce stores, an object cache with Redis cuts the number of database queries. Stores have their own guide too: slow WooCommerce store.

Frequently asked questions

Does the number of plugins matter?

Less than you'd think. 30 small, well-written plugins can be faster than one bad one. What matters is what each one does when the page loads.

Does an optimisation plugin fix everything?

It fixes the page side (caching, minification, images) and sometimes the page cache. It doesn't fix a slow plugin, a bloated database or hosting at its limit.

Why is only wp-admin slow?

wp-admin pages don't go through the page cache, and some plugins run heavy checks in wp-admin (licences, statistics, notices). Query Monitor and Redis are the first steps.

A slow site on AYT hosting

On AYT, the panel's Site Performance report shows each site's slow plugins, queries and pages, without installing anything in WordPress. The resource graphs show the account's CPU, memory and processes, and email alerts tell you when a plugin slows the site down or PHP runs out of memory. We check every site every minute.

The Site Performance report in the panel

The nginx page cache, Redis and OPcache are switched on in the WordPress Toolkit, on the site's Performance tab. When the account reaches its resource limit, the site doesn't stop: extra requests wait in line until the peak passes. The plans and their resources are on the WordPress hosting page.

More articles

All articles