How to Speed Up WooCommerce: A Step-by-Step Guide
If you want to speed up WooCommerce, start with this: a slow store usually isn’t slow for one reason. It’s a stack of small costs: pages that can’t be cached, scripts loaded on every page, a database full of old order and scheduler data, oversized product images, and plugins doing work on every request. The good news is that most of it can be fixed without changing your design or your theme.
This guide walks through the fixes in the order I use on client stores: measure first, fix the server and caching, then the front end, then the database, and finally cart and checkout.
Quick answer: the fixes with the biggest effect
- Measure your product, category, cart and checkout pages separately, on mobile.
- Use good hosting with PHP 8.2+ and enough PHP workers for logged-in and cart traffic.
- Cache every page except cart, checkout and My Account, and add an object cache (Redis).
- Resize and convert product images to WebP, and don’t lazy-load the main product image.
- Stop WooCommerce and plugin scripts loading on pages that don’t need them.
- Switch on High-Performance Order Storage and clean up Action Scheduler and transients.
- Remove plugins you don’t need, especially heavy filters, sliders and page-builder add-ons.
Why WooCommerce is slower than a normal WordPress site
A blog page is the same for every visitor, so it can be cached once and served in milliseconds. A store isn’t:
- Cart, checkout and My Account are personal. They can’t be served from page cache, so every visit runs PHP and database queries.
- Logged-in customers often bypass page cache entirely.
- Products carry a lot of data: prices, stock, variations, attributes, reviews and images, all stored in the database.
- Extensions add work to every request: payment gateways, shipping calculators, filters, wishlists, reviews and marketing pixels.
So a WooCommerce store needs two kinds of speed work: making cached pages (home, shop, categories, products) fast, and making uncached pages (cart, checkout, account) cheap to generate.
Step 1: Measure the right pages
Don’t test only the homepage. Run PageSpeed Insights on mobile for:
- a category page,
- a simple product and a variable product,
- the cart with a product in it,
- the checkout.
Note LCP, INP, CLS and TTFB for each. If the field data section (“Discover what your real users are experiencing”) shows numbers, trust those over the lab score. They come from real Chrome users.
For the server side, install Query Monitor temporarily. It shows how long the page took to generate, how many database queries ran, and which plugin caused the slow ones. Remove it when you’re done.
Step 2: Fix the server first
No front-end trick fixes a slow server. If TTFB is above about 0.8 seconds on uncached pages, start here.
- PHP version: use PHP 8.2 or newer (check with your host that your plugins support it). Newer PHP versions run WordPress noticeably faster than 7.x.
- PHP workers: each uncached request (cart, checkout, AJAX) needs a free PHP worker. Cheap shared plans often have too few, so checkout queues up during busy hours.
- Location: host close to most of your customers, and put a CDN in front for images, CSS and JavaScript.
- Object cache: Redis or Memcached stores repeated database results in memory. On a store this helps exactly the pages page caching can’t: cart, checkout, account and the admin.
My guide on how to reduce server response time covers hosting and TTFB in more detail.
Step 3: Set up caching correctly
A page cache (LiteSpeed Cache, WP Rocket, FlyingPress or your host’s built-in cache) should serve your shop, category and product pages from cache to logged-out visitors. Check three things:
- Cart, checkout and My Account are excluded. Good caching plugins exclude them automatically when they detect WooCommerce, but confirm it in the settings.
- The cache isn’t cleared by every stock change. If every order purges the whole cache, your store is mostly uncached. Purge only the product that changed.
- The cache is preloaded, so the first visitor after a purge doesn’t get the slow version.
Step 4: Optimise product images
Product images are usually the LCP element on product and category pages, and the heaviest thing on the page.
- Upload at a sensible size. 1200 to 1600 px wide is plenty for most product photos. A 4000 px camera original wastes bandwidth even if WordPress creates smaller copies.
- Use WebP (or AVIF). Most optimisation and caching plugins can serve WebP automatically. You can also compress and convert images for free with my image compressor and image converter before uploading.
- Set WooCommerce image sizes to match your theme (Appearance → Customize → WooCommerce → Product Images), then regenerate thumbnails so the browser isn’t scaling down huge files.
- Don’t lazy-load the main product image or the first row of category images. Lazy-loading the LCP image delays it. Lazy-load everything below the fold instead.
- Watch gallery and zoom plugins. Some load every full-size gallery image up front.
Step 5: Cut unused CSS and JavaScript
WooCommerce, your theme and your plugins all add stylesheets and scripts. Many load on every page even when they’re only needed on a few.
- Cart fragments: older stores loaded the
wc-cart-fragmentsscript, which makes an uncached AJAX request on every page view, everywhere. Since WooCommerce 7.8, WooCommerce no longer loads it on every page by default; it now loads only where the classic Cart widget is used, or when a theme or plugin asks for it (WooCommerce developer blog). Check whether your theme or a plugin still loads it everywhere. WooCommerce recommends the Mini-Cart block instead of the old widget, because the block doesn’t use cart fragments. - Plugin scripts on every page: contact forms, sliders, review widgets and payment gateways often load sitewide. Use a script manager (Perfmatters, Asset CleanUp, or your caching plugin’s options) to load them only where they’re used.
- Delay third-party scripts such as chat widgets, heatmaps and marketing pixels until the visitor interacts. This helps INP and the main thread a lot.
- Remove unused CSS with your caching plugin, then test the cart, checkout and mobile menu carefully. This is the setting that breaks stores most often.
Step 6: Clean up the database
Stores collect data fast. A heavy database slows every uncached page and the admin.
Switch on High-Performance Order Storage (HPOS)
Older WooCommerce stores keep orders in the WordPress posts and postmeta tables, alongside your blog posts and pages. HPOS moves orders into dedicated tables built for them. According to WooCommerce’s documentation, HPOS has been enabled by default for new installations since WooCommerce 8.2, released in October 2023. Older stores have to switch it on themselves.
To enable it: back up the site, go to WooCommerce → Settings → Advanced → Features, turn on compatibility mode so the old and new tables sync, wait for the sync to finish, then select High-Performance Order Storage. Check first that your extensions are marked compatible; WooCommerce shows a warning if they aren’t.
Clean up Action Scheduler
WooCommerce uses Action Scheduler for background jobs (emails, webhooks, analytics, subscriptions). Its tables (actionscheduler_actions and actionscheduler_logs) can grow into millions of rows. By default it removes completed and cancelled actions after about 30 days, and Action Scheduler 4.0, bundled with WooCommerce 11.0, also clears failed actions by default (WooCommerce developer blog).
If your tables are huge, check Tools → Scheduled Actions for stuck or failing jobs first. They usually point to a broken plugin. Then you can shorten the retention period with the action_scheduler_retention_period filter, or clean up from the command line:
wp action-scheduler clean --batch-size=500 --batches=100Other database cleanup
- Delete expired transients and orphaned postmeta (WP-Optimize or Advanced Database Cleaner can do this safely).
- Limit post revisions on products.
- Remove data left behind by plugins you’ve uninstalled.
Always take a full database backup before cleanup.
Step 7: Fix slow cart and checkout
Cart and checkout can’t be cached, so they depend on the server, the object cache, and how much code runs on them.
- Count the plugins that load on checkout. Every shipping, payment, upsell and field-editor plugin adds queries and scripts.
- Disable payment methods you don’t use. Each gateway can load its own scripts on checkout.
- Check shipping calculations. Live carrier rates call an external API; a slow API means a slow checkout. Cache rates where your plugin allows it.
- Test the Checkout block. WooCommerce’s block-based checkout is now the default for new stores. Test it against your current checkout with your own extensions before switching.
- Watch AJAX calls. Open Chrome DevTools → Network, filter by
admin-ajaxandwc-ajax, and add a product to the cart. Slow calls there are often the real cause of a “laggy” cart, and show up as a poor INP.
Step 8: Variable products and filters
- Large variable products: if a product has more variations than the AJAX threshold (30 by default), WooCommerce loads variation data on demand instead of all at once. Products with hundreds of variations can still be slow; consider splitting them.
- Product filters: filter plugins that count products for every attribute can run very heavy queries on category pages. Choose one built for performance, or limit how many filters show.
- Related and upsell products: each block runs extra queries. Show a few, not twenty.
Step 9: Remove plugins you don’t need
Make a list of every active plugin and ask what each one earns you. On most slow stores I audit, a few plugins cause most of the load: page-builder add-on packs, sliders, social feeds, multiple analytics plugins, and old marketing tools nobody checks. Removing one heavy plugin often helps more than any caching setting.
A WooCommerce speed checklist
- PHP 8.2+, enough PHP workers, a CDN, and Redis object cache.
- Page cache on, with cart, checkout and My Account excluded.
- Product images resized, in WebP, and the main image not lazy-loaded.
- Cart fragments not loading everywhere; Mini-Cart block instead of the old widget.
- Plugin scripts loaded only where needed; third-party scripts delayed.
- HPOS enabled; Action Scheduler and transients cleaned up.
- Unused payment methods and plugins removed.
- Cart and checkout tested on mobile after every change.
A real example
On one WooCommerce store I worked on, mobile PageSpeed went from 52 to 100, LCP from 11.2 s to 0.5 s, and INP from 560 ms to 64 ms, without changing the design. The biggest gains came from exactly the steps above: caching rules, product images, unused scripts and plugin cleanup. You can see more results on my case studies page.
Want this done for your store? My WooCommerce speed optimization service covers product images, cart and checkout, database tuning and a mobile check, with a fixed price. Not sure where to start? Get a $25 speed audit first.
FAQ
Why is my WooCommerce site so slow?
Usually a mix of slow hosting, pages that can’t be cached (cart, checkout, account), heavy product images, scripts loading on every page, and a large database. Measure product, cart and checkout pages separately to see which one is the real problem.
Should I disable WooCommerce cart fragments?
Since WooCommerce 7.8 it no longer loads on every page by default. If your theme or a plugin still loads it everywhere, switch to the Mini-Cart block or limit it to shop pages, and test that the cart count still updates.
What is HPOS and should I enable it?
High-Performance Order Storage keeps orders in dedicated tables instead of the posts table. It’s the default for new stores. For older stores it’s worth enabling once your extensions are compatible. Back up first and use compatibility mode to sync.
Which caching plugin is best for WooCommerce?
Use the one that matches your server. LiteSpeed Cache is the natural choice on LiteSpeed hosting; WP Rocket works well on most others. Both exclude cart and checkout automatically.
Can I cache the WooCommerce checkout page?
No. Cart, checkout and My Account show personal data and must not be served from page cache. Make them faster with better hosting, an object cache and fewer plugins instead.
How fast should a WooCommerce store be?
Aim for Google’s “good” Core Web Vitals on mobile: LCP under 2.5 s, INP under 200 ms and CLS under 0.1, on product and category pages as well as the homepage.
Sources
- Best practices for the use of the cart fragments API, WooCommerce Developer Blog
- High-Performance Order Storage, WooCommerce Developer Docs
- What’s changing in Action Scheduler 4.0.0, WooCommerce Developer Blog
Article By
Shahab Ud Din
I’m a WordPress speed and Core Web Vitals specialist. Over 5+ years I’ve optimized 150+ sites, fixing slow load times, failing Core Web Vitals and poor mobile scores. Best result: mobile LCP from 30.7s to 2.4s in 3 days. No fix, no fee.







