A slow WooCommerce shop almost always comes down to the same few things: hosting that is too light and has no object caching, too many plugins that load on every page, unprocessed product images and an old order structure in the database. Start by measuring, find the worst bottleneck and fix it. This guide goes through the WooCommerce-specific things one by one.
Measure first
Set a target you can measure. Google recommends that 75 percent of visits meet the Core Web Vitals thresholds: LCP at most 2.5 seconds, INP at most 200 milliseconds and CLS at most 0.1 (source: web.dev, read 22/11-2026). Measure the front page, category page, product page, cart and checkout separately, because they have different problems.
Use Query Monitor to see which plugins and database queries take time, and PageSpeed Insights or field data in Search Console for the result itself.
Why WooCommerce can get slow
- Many database queries. A product page and an archive with many variations run many queries. Every new feature adds more.
- Plugins that load everywhere. Many add scripts and styles on every page, not only on the shop pages.
- Heavy images. Product images are often the heaviest thing on the page.
- Dynamic pages that cannot be cached. Cart, checkout and account pages are personal and cannot sit in a page cache.
Technique 1: cart fragments
wc-cart-fragments is a script that updates the cart indicator through an AJAX request (wc-ajax=get_refreshed_fragments) and bypasses the page cache. It used to be a well-known culprit on every page. In WooCommerce core I can now only see the script being loaded by the mini-cart widget (source: github.com/woocommerce/woocommerce, class-wc-widget-cart.php, read 22/11-2026), but themes and plugins can also load it. So check whether it is actually on your pages.
Open Chrome DevTools, the Network tab, and filter on wc-ajax. If you see get_refreshed_fragments on pages without shop content, it is time to clean up. If your cart indicator does not need to update without a page change, you can remove the script outside the shop pages:
add_action('wp_enqueue_scripts', function () { if (!is_woocommerce() && !is_cart() && !is_checkout()) { wp_dequeue_script('wc-cart-fragments'); }}, 20);Afterwards, test that the cart counter in the header still updates where you expect.
Technique 2: HPOS (High-Performance Order Storage)
Before version 8.2 orders lived in wp_posts alongside pages and posts. HPOS moves them to dedicated tables. From WooCommerce 8.2 (October 2023) HPOS is on by default for new installations (source: woocommerce.com/document/high-performance-order-storage, read 22/11-2026). Older shops have to switch themselves.
How to switch
- Go to WooCommerce, Settings, Advanced, Features.
- Turn on compatibility mode, which synchronises orders to the posts table.
- Wait until the synchronisation is finished.
- Choose HPOS as the authoritative storage.
Take a backup first, and try it on a staging copy. Under WooCommerce, Status you can see whether your plugins declare themselves compatible with HPOS. How much it matters depends on the number of orders: with few orders you will hardly notice a difference in the frontend, but order administration is clearly faster with many orders.
Technique 3: product images
- Originals: do not upload images 5000 pixels wide. A width around 2000 to 2400 pixels is plenty for most themes.
- Modern formats: convert to WebP or AVIF, for example with a plugin or through your CDN.
- Lazy loading: WordPress defers off-screen images by default. Avoid lazy-loading the top image (the LCP image) on the product page.
- Sizes: WordPress and WooCommerce create several image sizes per upload. Remove the ones your theme does not use:
add_filter('intermediate_image_sizes_advanced', function ($sizes) { unset($sizes['1536x1536'], $sizes['2048x2048']); return $sizes;});Regenerate thumbnails afterwards with WP-CLI (wp media regenerate), and check that the theme does not use the removed sizes.
Technique 4: database
Transients
Expired transients can pile up in wp_options. Delete only the expired ones, with WP-CLI:
wp transient delete --expired(source: developer.wordpress.org/cli/commands/transient/delete, read 22/11-2026). Do not delete transients with your own SQL line unless you know exactly what it hits.
Autoloaded options
Everything in wp_options with autoload = yes is loaded on every page request. Find the largest:
SELECT option_name, LENGTH(option_value) AS sizeFROM wp_optionsWHERE autoload = 'yes'ORDER BY size DESCLIMIT 20;If a plugin does not clean up after itself, a large, unused option can be a reason to turn off autoload or remove it. Take a backup, and only change things you recognise.
Lookup tables
WooCommerce has lookup tables for product price, rating and stock. If they are out of sync you can regenerate them under WooCommerce, Status, Tools.
Technique 5: checkout
Checkout is the most important page and often the slowest.
- Blocks checkout. For shops started after WooCommerce 8.3 (November 2023) the Cart and Checkout blocks are the default (source: woocommerce.com/document/cart-checkout-blocks-status, read 22/11-2026). Older shops can switch from the classic shortcode. Test thoroughly first, because plugins that change checkout may have been built for the classic version.
- Fewer payment gateways. Each gateway can add its own script. Offer the ones your customers actually use.
- Fewer fields. Remove fields you do not use, so the form is shorter and quicker to fill in:
add_filter('woocommerce_checkout_fields', function ($fields) { unset($fields['billing']['billing_company']); unset($fields['billing']['billing_address_2']); unset($fields['order']['order_comments']); return $fields;});Check that no integration (shipping, accounting) expects the fields you remove.
Technique 6: plugin audit
Go through plugins one at a time. The ones that most often cost the most:
| Type | What you do |
|---|---|
| Slider plugins | Replace with a single image or CSS |
| Popups and social proof | Remove, or load after user interaction |
| Chat widgets | Load after interaction or a delay |
| Heavy cookie banners | Choose a lightweight solution |
| Many analytics scripts | Combine them, and use fewer |
| Large page-builder plugins | Consider a lighter theme, see block themes |
Load only where it is used
The most effective thing is to let scripts and styles come along only on the pages that use them. For WooCommerce itself:
add_action('wp_enqueue_scripts', function () { if (!is_woocommerce() && !is_cart() && !is_checkout() && !is_account_page()) { wp_dequeue_style('woocommerce-general'); wp_dequeue_style('woocommerce-layout'); wp_dequeue_style('woocommerce-smallscreen'); wp_dequeue_script('wc-add-to-cart'); }}, 99);Test carefully: some themes and blocks show products on the front page and need the styling. Remove only what you have confirmed is not used.
Technique 7: object caching
Object caching stores the results of database queries in memory instead of looking them up again. It helps especially on pages that cannot be page-cached, such as cart, checkout and admin. Redis is the most common choice, and many hosts offer it as a setting in the control panel. How big the gain is depends on the shop, so measure TTFB on cart and checkout before and after.
Checklist in priority order
1. Measure and find the bottleneck
Query Monitor on the slowest pages, PageSpeed Insights and Search Console for field data.
2. Clean up plugins and scripts
Remove what you do not use, and let the rest load only where it is needed.
3. Images
Right size, modern format, no lazy loading on the LCP image.
4. Turn on HPOS if you do not have it
After a backup and a test on staging.
5. Object caching
Redis for cart, checkout and admin.
6. Checkout
Fewer fields and gateways, and consider Blocks checkout.
7. Database
Delete expired transients, look at autoloaded options, regenerate lookup tables.
Conclusion
WooCommerce is not slow by nature. It gets slow from plugins, images, hosting and a database nobody has tidied. Measure first, fix what costs the most, and measure again. For an assessment of your shop, see my page on speed optimisation, or the price guide for what a shop costs.
