WordPress runs a huge share of the web, and it can be very fast. The trouble is that every plugin adds more database queries, more CSS and more JavaScript. After a few years, most sites carry a lot of weight they don't need.

These are the fixes that make the biggest difference on the sites I work on.

1. Turn on page caching

Without caching, WordPress runs dozens of PHP files and database queries every time someone opens a page. Page caching saves the finished HTML, so the next visitor gets a ready-made page straight away.

On a decent server this can bring response times down from several hundred milliseconds to under 50. If your host runs LiteSpeed, the free LiteSpeed Cache plugin does this very well. On other servers, a plugin like WP Rocket or server-level caching does the same job.

2. Clean up the options table

The wp_options table holds settings, and anything marked "autoload" is loaded on every single page. Plugins you deleted years ago often leave their settings behind, sometimes megabytes of them.

Check how much autoloaded data you have:

SELECT SUM(LENGTH(option_value)) FROM wp_options WHERE autoload = 'yes';

If it's more than about 1 MB, look for leftovers from old plugins and remove them (after taking a backup). It's a quick win that speeds up every page.

3. Defer scripts that aren't needed right away

When the browser finds a script at the top of the page, it stops and waits for it before showing anything. Deferring scripts that aren't needed straight away lets your headline and layout appear first, which improves First Contentful Paint.

Most caching plugins have a "defer JavaScript" option. Test it carefully, because some sliders and page builders break when their scripts load late.

4. Remove plugins before adding new ones

The fastest code is the code that never runs.

Before installing a plugin to fix a speed problem, look at what you already have. I often find sites running twenty plugins where a few lines of code would do the same job. Removing plugins is often the biggest speed boost of all.

Speed also depends on your server, not just WordPress. I explain how the two fit together in why website speed depends on more than hosting.