SEO Audit (price of a coffee)Starting at $1 →
E-commerce

How to Improve the speed of a WooCommerce Store

March 16, 202613 min read
Performance dashboard showing speed metrics

Loading speed is the most critical factor for the success of an online store. 53% of mobile visitors leave a site that takes more than 3 seconds to load. Worse, each additional second of loading reduces conversions by 7% on average.

WooCommerce, while powerful, can become slow if necessary measures are not taken. Between plugins, unoptimized images, database queries, and inadequate hosting, there are many factors that can slow it down.

This guide covers the 10 most effective techniques to speed up your WooCommerce store, from hosting to monitoring, including caching and image optimization.

1. Choose the Right Hosting

Hosting is the foundation of performance. Poor hosting limits all your other optimizations. It's the first place to invest.

Why Shared Hosting Isn't Enough

Shared hosting at $3-5/month places your store on a server with hundreds of other sites. Resources (CPU, RAM, bandwidth) are shared, meaning traffic from other sites directly affects your site's performance. For a WooCommerce store handling products, user sessions, and transactions, it's insufficient.

Recommended Hosting Types for WooCommerce

  • Managed WordPress Hosting ($15-50/month): SiteGround, Cloudways, WP Engine. Servers optimized for WordPress with built-in caching, automatic backups, and specialized support.
  • Managed VPS ($30-100/month): DigitalOcean via Cloudways, Vultr. More power and control, ideal for stores with high traffic or many products.
  • Dedicated Hosting ($100+/month): for very large stores with thousands of products and high traffic.

Selection Criteria

  • PHP 8.1+ and OPcache : PHP 8.1 is up to 3 times faster than PHP 7.4
  • Servers in Canada : geographical proximity reduces latency for your Quebec visitors
  • NVMe SSD : NVMe drives are 5 to 10 times faster than regular SSDs
  • At least 512 MB of PHP memory : WooCommerce consumes more memory than WordPress alone
  • HTTP/2 or HTTP/3 : modern protocols for faster parallel loading

2. Implement a Caching System

Caching is the optimization technique with the best effort/result ratio. It stores static versions of your pages to serve them instantly without executing PHP or querying the database on each visit.

WP Super Cache

WP Super Cache is the most reliable caching plugin, developed by Automattic. It's simple to configure and works perfectly with WooCommerce.

  • Generates static HTML files
  • “Simple” mode recommended for most stores
  • Automatically excludes dynamic pages (cart, checkout, my account)
  • Cache preloading activatable
  • Free

LiteSpeed Cache

If your host uses the LiteSpeed web server (increasingly common), LiteSpeed Cache is the best choice. It offers page caching, object caching, CSS/JS minification, and image optimization in one plugin.

Redis Object Cache

Redis is an in-memory caching system that speeds up database queries. It's particularly effective for WooCommerce, which makes numerous database queries to display products, prices, and stock.

  • Reduces database queries by 50 to 80%
  • Significantly speeds up category and product pages
  • Requires your host to support Redis (most managed hosts do)
  • Recommended plugin: Redis Object Cache by Till Kruss

Important Caching Rules for WooCommerce

  • Never cache : the cart, checkout, “My Account” page, and payment process
  • Exclude logged-in users from page cache (or use fragmented cache)
  • Invalidate the cache automatically when a product is modified (price, stock)
  • Configure cache headers for static files (images, CSS, JS)

3. Optimize Images

Images account for 60 to 80% of the total weight of a WooCommerce page. It's the most impactful optimization lever after caching.

Convert to WebP

The WebP format offers 25 to 35% better compression than JPEG and PNG without visible quality loss. All modern browsers have supported WebP since 2020, so there's no reason not to use it.

Our plugin H1Site WebP Converter automatically converts all your WordPress images to WebP. It works in the background during upload and can also batch convert your existing images. It's the simplest solution to switch your store to WebP effortlessly.

Image Compression

Beyond format, compress your images to further reduce their weight:

  • ShortPixel : automatic compression on upload, 100 free images/month
  • Imagify : by the creators of WP Rocket, 25 MB free/month
  • Smush : unlimited compression in the free version (moderate compression)

Proper Sizing

Never upload images of 4000 x 3000 pixels if they display at 800 x 600 pixels. Resize your images to the actual display dimensions before upload, or configure WordPress to generate the correct sizes automatically in Settings > Media.

  • Product Images : 800-1200 px wide (sufficient for zoom)
  • Thumbnails : 300-400 px wide
  • Banners : 1920 px wide maximum

4. Optimize the Database

Over time, the WordPress database accumulates unnecessary data that slows down queries. Regular cleaning can significantly improve performance.

What Clutters Your Database

  • Post Revisions : WordPress keeps all versions of each post/product by default
  • Expired Transients : temporary data that isn't always cleaned up
  • Spam Comments : even marked as spam, they remain in the database
  • Orphaned Tables : left by deleted plugins
  • Expired WooCommerce Sessions : old session data that accumulates
  • Logs and Analytical Data : some plugins store large logs

Recommended Cleaning Tools

  • WP-Optimize : database cleaning, image compression, and caching in one plugin
  • Advanced Database Cleaner : detailed cleaning with identification of orphaned tables
  • WP-Sweep : simple and effective cleaning of unnecessary data

Database Optimizations

  • Limit Revisions : add define('WP_POST_REVISIONS', 3); in your wp-config.php file to keep a maximum of 3 revisions per post
  • Clear Transients regularly (once a week)
  • Optimize Tables : run a MySQL table optimization monthly
  • Schedule Cleaning : set up automatic weekly cleaning with WP-Optimize

5. Use a CDN

A CDN (Content Delivery Network) distributes your store's static files (images, CSS, JavaScript, fonts) from servers around the world. Your visitors download these files from the server closest to them, reducing latency.

Cloudflare (recommended)

Cloudflare is the most popular CDN and offers a very generous free plan:

  • Global CDN with over 300 points of presence worldwide
  • DDoS protection included
  • Free SSL certificate
  • Automatic minification of CSS, JavaScript, and HTML
  • Static file caching
  • HTTP/3 and Brotli support
  • Customizable caching rules

CDN Configuration for WooCommerce

  • Enable Browser Caching : set a long TTL (1 month) for static files
  • Exclude Dynamic Pages : create rules to not cache the cart, checkout, and client area
  • Enable Development Mode during site changes
  • Purge the Cache after significant updates

6. Enable Lazy Loading

Lazy loading lazy loading delays the loading of images and videos until they are visible in the visitor's viewport. This drastically reduces the initial page load time.

Native Lazy Loading

WordPress 5.5+ includes native lazy loading for images via the loading="lazy". It's enabled by default. Ensure your theme hasn't disabled this feature.

Best Practices

  • Do not lazy-load images above the fold : the main product image and banners should load immediately
  • Lazy-load product grid images beyond the first screen
  • Lazy-load iframes (YouTube videos, Google Maps)
  • Use placeholders of appropriate size to avoid layout shifts (CLS)

7. Identify and Remove Heavy Plugins

Each plugin added to WordPress loads additional CSS and JavaScript files, makes database queries, and consumes PHP memory. Some plugins are particularly resource-intensive.

How to Identify Slow Plugins

  • Query Monitor : free plugin that shows the loading time of each plugin, the number of SQL queries, and memory consumed
  • P3 (Plugin Performance Profiler) : detailed analysis of each plugin's impact on loading time
  • New Relic : advanced application monitoring (for professional sites)

Common Problematic Plugins

  • Heavy Page Builders : some visual builders add 500 KB+ of CSS/JS on each page
  • Social Plugins : social sharing plugins often load heavy external scripts
  • Sliders : carousels with complex animations are often very heavy
  • Statistics Plugins : some record each visit in the database, making it grow rapidly
  • All-in-One Plugins : “suites” that do everything are rarely optimized — prefer specialized plugins

Cleaning Strategy

  • Inventory all your active plugins
  • Deactivate them one by one and measure the impact on speed
  • Replace heavy plugins with lighter alternatives
  • Delete (do not just deactivate) plugins you no longer need
  • Aim for a maximum of 15-20 active plugins for a WooCommerce store

8. Enable GZIP / Brotli Compression

GZIP or Brotli compression GZIP or Brotli reduces the size of HTML, CSS, and JavaScript files by 70 to 90% before sending them to the browser. It's a simple but extremely effective server optimization.

Check if Compression is Active

Use GiftOfSpeed GZIP Test to check if compression is already active on your site. Most modern hosts enable GZIP by default.

Enable Compression

  • Via Cache Plugin : WP Super Cache, LiteSpeed Cache, and W3 Total Cache include compression options
  • Via Cloudflare : Brotli compression is automatically enabled on the free plan
  • Via .htaccess : add mod_deflate directives for Apache servers

GZIP vs Brotli

Brotli is the successor to GZIP, developed by Google. It offers 15 to 25% better compression than GZIP for text files. If your server and CDN support Brotli, use it. Cloudflare automatically enables Brotli.

9. Optimize CSS and JavaScript Code

Unoptimized CSS and JavaScript block page rendering and increase loading time. Here's how to optimize them without breaking your store.

Minification

Minification removes spaces, comments, and unnecessary characters from code to reduce its size by 10 to 30%.

  • Autoptimize : minifies and combines CSS, JavaScript, and HTML. Free and reliable.
  • WP Rocket : minification, concatenation, deferred loading, and unused CSS removal (paid but excellent)

Deferred JavaScript Loading

JavaScript not necessary for the initial page rendering should be loaded deferred with the defer or async.

  • defer : the script is downloaded in parallel and executed after HTML parsing (recommended for most scripts)
  • async : the script is downloaded and executed as soon as it's ready (for independent scripts like Google Analytics)

Remove Unused CSS

Many themes and plugins load CSS on all pages, even when it's not used. For example, WooCommerce CSS loads on your homepage even if it doesn't display products.

  • Asset CleanUp : disable loading of specific CSS/JS on pages where they are not needed
  • Perfmatters : simple interface to manage script loading per page

10. Monitor and Test Regularly

Speed optimization is not a one-time project. Plugin updates, new products, and content changes can degrade performance over time. Regular monitoring is essential.

Speed Testing Tools

  • Google PageSpeed Insights : performance score and Core Web Vitals for mobile and desktop. Aim for a score above 80.
  • GTmetrix : detailed loading analysis with a visual “waterfall” of each request. Test from the Montreal server for relevant results in Quebec.
  • WebPageTest : advanced tests with browser, connection, and location choice. Ideal for in-depth testing.
  • Google Search Console : Core Web Vitals report based on real data from your Chrome visitors.

Metrics to Monitor (Core Web Vitals)

  • LCP (Largest Contentful Paint) : loading time of the largest visible element. Goal: less than 2.5 seconds.
  • INP (Interaction to Next Paint) : responsiveness to user interactions. Goal: less than 200 ms.
  • CLS (Cumulative Layout Shift) : visual stability of the page. Goal: less than 0.1.

Recommended Monitoring Routine

  • Test speed after each major plugin or theme update
  • Check Core Web Vitals in Google Search Console once a month
  • Run a monthly GTmetrix test and compare with the previous month
  • Clean the database once a month
  • Check the impact of new plugins before keeping them

WooCommerce Speed Checklist

Summary of actions to implement to speed up your store:

  • Migrate to managed WordPress hosting with PHP 8.1+
  • Install and configure a caching plugin (WP Super Cache or LiteSpeed Cache)
  • Enable Redis Object Cache if available
  • Convert all images to WebP with H1Site WebP Converter
  • Compress and resize images
  • Clean the database (revisions, transients, orphaned tables)
  • Set up Cloudflare as CDN
  • Enable lazy loading for images below the fold
  • Identify and remove heavy plugins
  • Enable GZIP or Brotli compression
  • Minify CSS and JavaScript
  • Defer non-critical JavaScript loading
  • Regularly test with PageSpeed Insights and GTmetrix

Conclusion

The speed of a WooCommerce store is an investment that directly translates into revenue. A fast site converts better, ranks higher on Google, and offers a better user experience. The techniques presented in this guide can easily cut your loading time by 2 or 3.

Start with the most impactful optimizations: good hosting, a caching plugin, and image optimization. These three actions alone can radically transform your store's performance.

If you want a complete performance audit of your WooCommerce store with personalized recommendations, our team at H1Site can help you. We analyze your site, identify bottlenecks, and implement necessary optimizations. Contact us to discuss.

H1

H1Site

Web Agency Vaudreuil

Back to Blog

Is Your WooCommerce Store Too Slow ?

Our team conducts a complete performance audit and implements all necessary optimizations to speed up your WooCommerce store.