Slow WordPress website: causes and fixes
A slow site costs visitors and patience, including your own when you work in the admin. It is rarely one thing, usually a sum of several. This is how I find out, and how you can too.
- One dedicated contact
- Reply within a few hours
- 15+ years of experience
Measure first, then fix
Before I change anything, I measure. Otherwise you never know afterwards what helped. Google’s PageSpeed Insights gives a first picture. Look at two things above all: how long the server takes to send back the first byte (the TTFB), and how long it takes for the largest element on the page to appear (the LCP).
If the TTFB is high, the problem is on the server side: hosting, PHP, the database or plugins doing a lot of work on every page. If the TTFB is low but the page still loads slowly, it is what the browser has to download: images, scripts and fonts. Measure a few different pages, not just the home page, and measure logged out too: as an admin you often get no cache.
Cause 1: hosting and PHP version
Cheap shared hosting shares the server with many other sites, and you notice it at busy times. Also check which PHP version your site runs: newer versions are faster and still get security updates. You can see the version in WordPress under Tools > Site Health.
Moving to a newer PHP version is usually a setting with your host, but test it first: old plugins and themes can throw errors on a new version.
Cause 2: heavy plugins
It is not about the number of plugins, but what they do. One plugin that calls external services or runs heavy database queries on every page view weighs more than ten small ones. Page builders, sliders, statistics plugins and social media widgets are often the worst offenders.
With the free Query Monitor plugin you can see per page which plugin takes the most queries and time. Only keep it on while you measure. Plugins you do not use are better removed than just deactivated.
Cause 3: images
A photo straight from a phone or camera is easily a few megabytes, while your site shows it only a few hundred pixels wide. Resize images before you upload them, or let a plugin do it, and use modern formats such as WebP or AVIF. WordPress already loads images further down the page only when they come into view. The large image at the top is the one you do not want to delay.
Cause 4: no cache, or the wrong one
Without a page cache, WordPress builds every page again from PHP and the database on every visit. A cache keeps the finished page. Which one works best depends on your server: on LiteSpeed hosting LiteSpeed Cache is the obvious choice, elsewhere for example WP Super Cache or your host’s own cache. Use one, not two: two cache plugins get in each other’s way.
In a shop, the cart, checkout and My account pages must not be cached. The well-known cache plugins exclude those pages themselves, but check it.
Cause 5: a bloated database
After a few years the database collects all sorts: dozens of revisions per page, expired temporary data (transients), spam comments and leftovers from plugins long gone. Especially the options loaded on every page (autoload) can grow until every page suffers. Make a backup first and then clean up, with a plugin such as WP-Optimize or by hand if you know what you are doing.
Cause 6: external scripts
Chat widgets, embedded videos, fonts from other servers, ad and tracking codes: every script that comes from another server costs time. Look critically at which ones you really need, host fonts on your own server and load a video only when someone clicks play.
My order of work for a slow site
This is how I tackle it, step by step:
- Measure: TTFB and LCP on a few pages, logged in and logged out
- Check the PHP version and hosting
- Go through the plugins with Query Monitor
- Set up one cache properly
- Resize and convert images
- Clean up the database, after a backup
- Measure again and compare
Rather not sort it out yourself?
Speed is part of my WordPress maintenance (€5 a month) and WooCommerce maintenance (€10 a month), both paid six months upfront: I keep cache, database and images tidy. If your site is badly out of date, I start with a one-off clean-up and update for €49.
Order directly, fixed price
You get your invoice right away and your own project page in My account. Need something else or bigger? Ask for a fixed price.
Good to know
Is your question not here? Feel free to send me a message.
How fast should a WordPress site be?
Google calls an LCP under 2.5 seconds good. Test on your phone over mobile data above all, not just on your computer with fast wifi.
Does a cache plugin always help?
For visitors who are not logged in it usually does. But if the server itself is slow, or the slowest pages are exactly the ones that must not be cached, such as the checkout, it will not solve it.
Should I move to other hosting?
Not always. Look at plugins, cache and images first. If the TTFB stays high while the site itself is tidy, the hosting is often the limiting factor.
Say hello
A question, an idea or a job? I reply usually within a few hours, between 08:00 and 20:00.