A slow store loses sales. Shoppers leave when pages take more than a few seconds to load. Also, Google uses Core Web Vitals as a ranking signal. So WooCommerce speed optimization pays off twice: more sales and better rankings.

I have built and tuned many WooCommerce stores over the years. Below are the 12 fixes I apply first, ordered roughly by impact. Most of them need no code at all.

First, measure before you speed up WooCommerce

Do not guess. Test three page types: the home page, a product page and the cart or checkout. Use PageSpeed Insights for real-user data. Then use the Query Monitor plugin to find slow queries and heavy plugins.

Write the numbers down. Then test again after each fix, so you know what helped.

Server-side WooCommerce speed optimization

1. Choose hosting built for a faster WooCommerce store

Cheap shared hosting is the most common cause of a slow store. WooCommerce needs PHP workers for carts, checkouts and the admin. Look for a host with PHP 8.2 or newer, NVMe storage and object caching. As a result, a good host often cuts server response time in half.

2. Use page caching, the right way

Page caching serves ready-made HTML to visitors. However, cart, checkout and my-account pages must never be cached. Good caching plugins exclude them for you. Also, keep logged-in users out of the cache.

3. Add an object cache

WooCommerce runs many database queries per page. Redis or Memcached keeps the results in memory. As a result, the database does less work, and the admin feels faster too.

4. Put a CDN in front of the store

A CDN such as Cloudflare serves images, CSS and JS from a location near each shopper. In addition, it protects you from bad bots that waste server resources. For most small stores, the free plan is a good place to start.

Front-end fixes to speed up WooCommerce

5. Compress and resize product images

Product photos are usually the heaviest part of a page, so start here. Serve WebP or AVIF, resize images to the size they display at and lazy-load everything below the fold. However, never lazy-load the main product image. It is often your Largest Contentful Paint.

6. Control cart fragments

WooCommerce calls wc-ajax=get_refreshed_fragments to update the mini cart. On many sites it runs on every page, even for empty carts. Instead, load it only where the cart widget appears, or switch to a lighter mini cart.

7. Remove unused CSS and JavaScript

Many plugins load their files on every page. For example, a contact form plugin does not need to load on product pages. Use an asset manager plugin to unload files where they are not used. Then defer the remaining JavaScript. Finally, test the checkout after every change, because a missing script there can break payments. After all, a fast store that cannot take orders is worse than a slow one.

8. Pick a lightweight theme

Heavy multipurpose themes load sliders, icon fonts and builders you never use. In contrast, a lean block theme or a well-coded custom theme is far faster. Moreover, it is easier to maintain.

Database cleanup to speed up WooCommerce

9. Clean the database

Over time, the database fills with expired transients, old revisions and orphaned meta. So clean them on a schedule. Also, remove stale action scheduler logs. On busy stores, they can grow to millions of rows.

10. Turn on High-Performance Order Storage

HPOS stores orders in dedicated tables instead of the posts table. As a result, order queries are much faster, especially on stores with many orders. First check that your plugins support it. Then enable it under WooCommerce → Settings → Advanced → Features.

11. Audit your plugins

Each plugin adds code that runs on every request. List them all and ask: do I still need this? Replace heavy plugins with lighter ones. In some cases, a small custom plugin can replace three generic ones.

12. Keep everything up to date

New versions of PHP, WordPress and WooCommerce bring real speed gains. For example, PHP 8 alone is noticeably faster than PHP 7.4. Test updates on a staging site first, then roll them out.

A quick WooCommerce speed optimization checklist

  • Server response under 600 ms.
  • Largest Contentful Paint under 2.5 seconds.
  • Interaction to Next Paint under 200 ms.
  • Cumulative Layout Shift under 0.1.
  • No cart fragments on pages without a cart widget.

How long does WooCommerce speed optimization take?

For most stores, the quick wins take one or two days. Hosting, caching, image compression and a CDN fall into this group. Because they need no custom code, the risk is low.

However, deeper work takes longer. Replacing a heavy theme, rewriting slow custom queries or untangling plugin conflicts can take a week or more. In my experience, the first day of fixes often brings the biggest jump in scores. After that, each extra gain needs more care.

Therefore, plan the work in rounds. Fix the biggest problem, measure, then move on to the next one.

Conclusion: speed is a habit, not a project

WooCommerce speed optimization is not one big trick. Instead, it is a list of small, steady wins. Start with hosting and caching, then fix images and scripts, and finally clean the database. Measure after each step.

Is your store still slow after all this? I can audit it and fix the real bottlenecks, from custom code to server setup. Take a look at my services or contact me to talk about your store.