When a WooCommerce store gets slow, the first suggestion is nearly always better hosting. Sometimes that's right. More often, the shop is slow for reasons that a bigger server won't fix, and you end up paying more every month for the same sluggish checkout.
These are the things I check first, roughly in order of how often they turn out to be the cause.
First, work out which bit is slow
"The site is slow" can mean very different things:
- The homepage and product pages load slowly for everyone. Usually page weight, images or too many scripts.
- Pages are fast logged out but slow logged in, or in the basket and checkout. Usually the database, plugins or something uncached doing heavy work on every request.
- The admin is painfully slow. Usually the database, scheduled tasks or a plugin calling home.
- It's slow at certain times of day. Often a scheduled import, a backup or a sync job running at the same time as customers.
That distinction matters because the fixes are completely different. A caching plugin won't help a slow checkout, because checkout pages can't be cached.
1. Page weight and images
Run the product page through the page weight checker. It lists every file the page downloads and who serves it.
The usual culprits are product images uploaded straight from a camera at 4,000 pixels wide, sliders loading five full-size banners, and video embeds loading a player before anyone presses play. Converting images to WebP and sizing them properly is often the single biggest improvement, and the image compressor will show you how much there is to save.
2. Too many scripts
Every chat widget, review badge, tracking pixel and "frequently bought together" plugin adds JavaScript that has to download and run before the page feels usable. I regularly see stores loading three analytics tools, two of which nobody looks at.
The page weight checker splits files into your own and third parties. Anything third-party that nobody can explain is a candidate for removal.
3. Plugins doing work on every page
WooCommerce sites gather plugins over the years. Each one is reasonable on its own, but some load their code and database queries on every single page, including ones where they do nothing.
The tell-tale sign is a store that's slow even with a simple theme and a small catalogue. The fix is usually removing what isn't needed and replacing two or three overlapping plugins with something simpler. I've written separately about when custom code beats another plugin.
4. The database
WooCommerce stores a lot of data, and older stores in particular build up years of junk: expired sessions, old transients, revisions, orphaned order data and logs from plugins that were removed long ago. A bloated wp_options table with large autoloaded entries slows down every request, front end and admin alike.
On stores with lots of orders, moving to WooCommerce's High-Performance Order Storage (HPOS) makes a big difference to admin and order queries, but it needs testing first because some older plugins don't support it.
If you can get a slow query log, the slow query finder will point out the worst offenders and missing indexes.
5. Scheduled tasks and imports
WooCommerce and its plugins run background tasks through Action Scheduler. If thousands of tasks have piled up, or a stock import runs every five minutes and takes four, the whole site suffers. Have a look under WooCommerce, Status, Scheduled Actions. A long list of failed or pending actions is worth investigating.
6. Then, and only then, hosting
If the site is lean, the database is tidy and it's still slow under load, then yes, the hosting is probably the limit. Things that genuinely help a WooCommerce store: a recent PHP version, object caching with Redis, enough PHP workers for your traffic, and a server close to your customers.
Cheap shared hosting is a false economy for a shop that takes real money. But it's the last thing to change, not the first.
How to tell if it's worth fixing
Speed affects conversion, especially on mobile and especially at checkout. If customers are dropping out between basket and payment, a slow checkout is one of the first things to rule out. Running the WooCommerce health check and a speed test gives you a quick, free starting point.
Need someone to look at it?
I work on WooCommerce stores that have grown complicated: lots of plugins, custom pricing, integrations, years of history. If yours has got slow and you'd like someone to find out why before you spend money on hosting, have a look at WooCommerce rescue or get in touch.