Faster WordPress without buying a new theme

Most slow WordPress sites are not slow because of WordPress. They are slow because of too many plugins, oversized images, an old PHP version and a cache that does not work. This is the order we work in ourselves.

Last checked:

Where to click3. Images: the right size and WebP
  • Tools
    • Site Health
  1. Tools
  2. Site Health
  3. Info
  4. Media

Media

Measure first: the three numbers Google looks at

Google measures real visitors’ experience with three numbers, the Core Web Vitals. A site counts as good when 75 % of page loads are under the threshold, measured separately on mobile and desktop.

Core Web Vitals – ‘good’ thresholds

MetricWhat it measuresGoodTypical WordPress cause
LCP (Largest Contentful Paint)When the largest element is visible2.5 s or lesslarge hero image, slow server, no page cache
INP (Interaction to Next Paint)How fast the page reacts to a click200 ms or lessheavy page builders, chat widgets, many tracking scripts
CLS (Cumulative Layout Shift)How much the content jumps0.1 or lessimages without dimensions, a cookie banner that pushes the page, web fonts
Source: web.dev/articles/vitals, checked 19 Nov 2026. Measured at the 75th percentile.

Field data from real visitors appears in Google Search Console under Page experience once the site has enough traffic. A lab test is a snapshot – good for finding the cause – but field data is what counts. For a quick speed measurement alongside cookie and accessibility checks, use audit.best-choice.dk.

1. Remove plugins before you optimise

Every active plugin can add database queries, scripts and stylesheets to every page. When we scanned the sites we look after, we found 161 different plugins across 16 installations, and seven of the sites had a code-snippet plugin such as WPCode. Snippets in a plugin are not dangerous in themselves, but they are often forgotten and run on every page.

We went as far as building our own plugins with exactly the features we used. Our SEO plugin was built to remove Yoast from our own sites and covers only the SEO features we measurably use. The point is not that you should use our plugin. The point is to ask of each plugin: what does it do, and do we use it?

2. A cache that actually purges

There are three layers of cache, each doing a different job:

  • Page cache stores the finished HTML so PHP and the database do not work for every visitor. It gives the biggest LCP gain.
  • Object cache (Redis or Memcached) stores database query results. It helps most on shops and sites with many logged-in users.
  • Browser cache tells the browser it may reuse CSS, JavaScript, fonts and images.

The most dangerous cache is the one you think works. On one of our own sites the popular nginx-helper plugin had never purged the cache, because the server’s open_basedir setting blocked it. Changes did not reach visitors until the cache expired on its own. Our own product Lynbro Cache purges through a /purge address instead. Its browser cache sets a one-year lifetime on CSS, JavaScript, fonts and images, but never touches HTML or a service worker (sw.js), because a stale copy of those can lock visitors into an outdated page.

Test it yourself: change a heading, save, and open the page in a private window. If you still see the old text after a minute, the cache is not purging.

3. Images: the right size and WebP

The largest element on a page is almost always an image. Do not upload a 4,000-pixel photo into a slot shown 1,200 pixels wide. Set width and height on images so the page does not jump (CLS).

WordPress can save new uploads as WebP instead of JPEG and PNG with a small filter. The server’s image library must support WebP, so check Tools → Site Health → Info → Media handling before you switch it on.

<?php
/**
 * Plugin Name: WebP for new uploads (mu-plugin)
 * Save as wp-content/mu-plugins/webp-uploads.php
 */
add_filter( 'image_editor_output_format', function ( $formats ) {
    $formats['image/jpeg'] = 'image/webp';
    $formats['image/png']  = 'image/webp';
    return $formats;
} );

Existing images are not changed by the filter. Missing sizes can be generated with wp media regenerate --only-missing --yes, but back up the uploads folder first.

4. The PHP version

A newer PHP version is free speed and necessary security. PHP 8.1 has had no security fixes since 31 Dec 2025, and PHP 8.2 only gets them until 31 Dec 2026. PHP 8.3 is covered until the end of 2027 and PHP 8.4 until the end of 2028. Even so, 14.1 % of all WordPress sites still run PHP 7.4, and 8.9 % run 8.1.

Switch the PHP version on a copy of the site first. Plugins that break on a PHP upgrade are usually old and unmaintained – and then they are a risk anyway.

WP-CLI recipe: find what makes the site heavy

Run these in the site’s root folder. They only read, except the clean-up of expired transients, which is harmless.

# 1) The PHP version WP-CLI runs with (may differ from the web server's –
#    see the real one under Tools → Site Health → Info → Server)
wp eval 'echo PHP_VERSION . PHP_EOL;'

# 2) How much data is autoloaded on EVERY page? Investigate anything above ~1 MB
P=$(wp db prefix)
wp db query "SELECT ROUND(SUM(LENGTH(option_value))/1024) AS autoload_kb
  FROM ${P}options WHERE autoload IN ('yes','on','auto-on','auto');"

# 3) The ten largest autoloaded options – often leftovers from deleted plugins
wp db query "SELECT option_name, ROUND(LENGTH(option_value)/1024) AS kb
  FROM ${P}options WHERE autoload IN ('yes','on','auto-on','auto')
  ORDER BY LENGTH(option_value) DESC LIMIT 10;"

# 4) Largest tables (e.g. log tables nobody prunes)
wp db size --tables --human-readable

# 5) Is there an object cache?
wp cache type

# 6) Scheduled tasks piling up
wp cron event list --fields=hook,next_run_relative,recurrence

# 7) Clear expired transients
wp transient delete --expired

# 8) Active plugins with version and last wordpress.org update
wp plugin list --status=active --fields=name,version,wporg_last_updated

The wporg_last_updated and tested_up_to fields exist in recent WP-CLI versions. If you get an unknown-field error, update WP-CLI with wp cli update.

WP-Cron on a low-traffic site

WordPress runs its scheduled tasks when someone visits. On a small site that can mean a visitor waits for a backup or a newsletter job. Turn off the built-in cron and let the server run it every five minutes instead:

# wp-config.php: disable visit-triggered cron
wp config set DISABLE_WP_CRON true --raw

# crontab -e (the path is an example)
*/5 * * * * cd /var/www/example.dk && wp cron event run --due-now --quiet

What we check on our own sites

Our own guide sites run on a block theme without a page builder. Every change is checked at 375, 768 and 1,280 pixels, light and dark theme and three languages before it goes live. The theme was tested with 198 screenshots and zero errors in the axe accessibility check. Accessibility and speed go together: a theme with few scripts is both faster and easier to use with a keyboard and screen reader.

Questions about WordPress speed

Why is my WordPress site slow?

Usually a mix of many plugins, large images and no page cache. Start with the recipe above and remove what you do not use before buying a speed plugin.

Which cache plugin is best?

The one that fits your server – Apache and LiteSpeed need a different choice than nginx. Most importantly, test that the cache purges when you save a page. On one of our own sites it did not.

Will changing host help?

Only if the server is the bottleneck, for example if the first byte arrives late even with a page cache. See what to compare on the hosting and maintenance page.

What is a good LCP?

2.5 seconds or less for 75 % of page loads.

Sources

Last reviewed: 2026-12-04

Fixed price, no commitment

Get a free WordPress check

Tell us briefly what you use today and what you want to achieve. A person answers by e-mail with a proposal and a fixed price before any work starts.

  • A fixed price before we start
  • An answer by e-mail, no calls
  • Your details are used only to answer you

Fields marked with * are required.

What is it about?