Skip to content

WordPress speed optimization, in order of impact

Most WordPress speed advice comes as a flat list: caching plugin, image compression, a CDN, minify everything. Each item is true. The order is what goes wrong. People spend a weekend minifying CSS on a site whose server takes a second to answer, see the score move three points, and conclude speed is a dark art.

Speed work has an order because some fixes save seconds and others save milliseconds. This is the order we work in, starting with how to find which kind of slow you have, because the answer decides where to start.

Find the bottleneck before you change anything

Run the page through PageSpeed Insights and read the top section first. If Google has enough traffic data for your site, that section is field data from real visitors over the last 28 days, and it is what counts for search. The lab score underneath is one simulated load on one simulated phone. Then look at which number is failing, because each one points somewhere different:

  • Slow Time to First Byte (TTFB) means the server takes too long to build the page. Look at the host, the page cache and the database.
  • Fast TTFB but slow Largest Contentful Paint (LCP) means the HTML arrives quickly and the main image or heading does not. Look at images, render-blocking CSS and fonts.
  • Poor Interaction to Next Paint (INP) means clicks feel sticky because too much JavaScript runs at once.
  • Poor Cumulative Layout Shift (CLS) means content jumps while it loads, usually because of images without dimensions or embeds that arrive late.

For the server side, the free Query Monitor plugin shows which database queries and which plugins take the time on a given page, so the server side stops being guesswork.

Hosting sets your ceiling

The host decides how fast the server can answer, and every other fix stacks on top of that. Google’s guidance (web.dev) treats a TTFB under 0.8 seconds as good. On cheap, oversold shared hosting the server alone can use up most of that budget, and no plugin can win it back.

A properly resourced server with a page cache answers in well under that. We run the sites on our own servers on OpenLiteSpeed with LSCache, because the web server itself serves the cached page and PHP never runs for it. If your TTFB is above half a second on a cached page, fix the host before anything else. If you are weighing a managed AWS box against a plain server, we compared AWS Lightsail and a cheap VPS.

One server-side setting people forget is the PHP version your site runs on. It does little for a cached homepage, but uncached requests (the admin, the cart, the checkout) get faster on a current PHP release.

Caching: page cache, object cache, then the browser

Caching is where most of the remaining gain is, and there are three layers worth turning on, in this order:

  1. Full-page cache. A finished copy of each page is stored and served without rebuilding it. A plugin such as WP Rocket does this from inside WordPress; server-level caching such as LSCache does it before the request reaches PHP at all, which is faster and uses less memory. We put the two head to head in LiteSpeed Cache versus WP Rocket.
  2. Object cache. Redis or Memcached keeps the results of repeated database queries in memory. It matters most on pages that cannot be fully cached: logged-in users, the cart, the checkout, the admin.
  3. Browser and edge cache. Static files get long cache lifetimes, and a CDN keeps copies near visitors who are far from your server. If the CDN is Cloudflare, we use a short list of Cloudflare rules for the edge cache.

On a brochure site or a blog, the full-page cache alone often takes a three-second page under one second. Caching also keeps the site up under load: a cached page survives the traffic spike that would otherwise take the server down, which we cover in what 99.9% uptime takes.

The database: autoloaded options and old revisions

WordPress loads every option marked as autoload on every single request, cached or not. Plugins that have been removed often leave their options behind, and some store large blobs there. On older sites this list can grow into megabytes, and then it slows every uncached page and the whole admin.

The rest of the usual bloat is post revisions, expired transients and, on WooCommerce, old sessions and finished scheduled actions. On a site that is a few months old none of this matters. On a site that has been running for years with plugins coming and going, cleaning the autoloaded options is one of the bigger server-side wins, and it is invisible in any lab score because the lab test hits a cached page.

Theme, plugins and page builders

The number of plugins matters less than what each one loads. A slider plugin that adds its CSS and JavaScript to every page, when the slider sits on the homepage only, costs every other page something for nothing. Page builders are the heaviest case: their front-end CSS and scripts often weigh more than the content they lay out.

The fix is usually to stop assets loading where they are not used, and to throttle the WordPress Heartbeat, which keeps calling the server from open admin tabs. Swapping a page builder for a lighter theme gives the biggest gain of all, but it is a rebuild, so price it before you commit to it.

Images: where most of the bytes are

Images are usually the largest part of a WordPress page by weight, and this is the work you can do yourself without touching the server:

  • Serve modern formats. WebP or AVIF often cuts a JPEG to a fraction of its size at the same visible quality. Before you bulk-convert a whole library, read choosing between WebP and AVIF on WordPress, because the wrong choice can keep a small server busy for an afternoon.
  • Resize before upload. A 4000-pixel photo shown in a 600-pixel column sends far more data than the layout can use.
  • Lazy-load below the fold, and not above it. WordPress lazy-loads images by default but leaves out the first large image in the content, so the main image can load straight away. Themes that put the hero in a slider or a CSS background lose that, and the LCP image ends up waiting.
  • Set width and height on every image, so the browser reserves the space and the layout does not jump.

Fonts, CSS and JavaScript

Web fonts loaded from another domain delay the first readable text. Hosting the font files yourself, preloading the one or two you use above the fold and setting font-display: swap fixes most of it.

For CSS, the gain comes from inlining the small amount needed for the first screen and loading the rest without blocking. For JavaScript, it comes from deferring or delaying scripts by what each one does: a chat widget can wait for the first interaction, the menu script cannot. This is also where INP is won or lost. INP replaced First Input Delay as a Core Web Vital in March 2024, and it punishes exactly the pile of tracking and widget scripts many sites carry. Analytics and pixels are the usual culprits, so we wrote up keeping Google Tag Manager from dragging down performance.

Core Web Vitals: what Google measures

Three numbers, judged at the 75th percentile of real visits, so three page loads out of four have to meet each limit: LCP within 2.5 seconds, INP under 200 milliseconds, CLS under 0.1. A site can score 95 in the lab and still fail, because real visitors are on mid-range phones and patchy mobile data. Chase the field data, not the green number.

What rarely earns its effort

Some popular advice produces a satisfying checkmark and almost no change you can feel. Minifying CSS and JavaScript saves a few kilobytes once compression is on. Removing query strings from static files does nothing measurable. Cutting HTTP requests mattered far more under HTTP/1.1 than it does under HTTP/2. Do these last, if at all.

The same goes for a rebuild. If someone has suggested going headless to fix load times, price that route first: we broke down the bill behind a headless WordPress project, and for most sites the work on this page gets there for a fraction of it.

A realistic target, and when to hand it over

For most business sites, the goal is a page that loads in under two seconds on mobile and passes all three Core Web Vitals in the field data. That is reachable without exotic engineering: a decent host, the three cache layers, a clean database, lighter assets and properly sized images, plus a CDN such as Cloudflare for visitors far from the server.

If you would rather not spend the weekend on it, our WordPress Performance Pack is this order done as a fixed-scope job: we find the bottleneck, fix the server and caching layers, clean the database and the assets, and hand back before-and-after numbers from Lighthouse and the field data. It pairs with ongoing WordPress support if the site needs more than speed.

Common questions

Can I speed up WordPress without a plugin?

Partly. The biggest gains, a better host and server-level caching, are not plugins at all, and you can resize and convert images before upload yourself. On a host without server-level caching, a caching plugin is still the easiest way to get a page cache, so most sites use one.

Which matters more, the PageSpeed score or Core Web Vitals?

Core Web Vitals. The PageSpeed number is a lab test on a simulated device. Core Web Vitals come from your real visitors over 28 days, and that is the data Google uses for search. A green lab score with failing field data means the work is not done.

What is a realistic load time to aim for?

Under two seconds on mobile, with all three Core Web Vitals passing. Under one second is possible on a normal business site, but it usually needs server-level caching and a lean theme.

How many plugins are too many?

There is no safe number. Thirty small plugins that load nothing on the front end can be lighter than one page builder. Check what each plugin adds to the pages it does not need to touch, and remove or restrict those first.

Start here

Hit this one
yourself?

If any of the above is happening on your stack, send us the symptoms. We triage the same working day and quote before we start.

Which layer is on fire?
Your details stay with us. Always.