How to Speed Up WooCommerce: A Developer's Guide to a Fast Store
WooCommerce slow? A developer's guide to speeding it up: measuring first, HPOS, Redis, safe caching rules, database cleanup, and a faster checkout.
By Pavle AleksicE-Commerce27 min read
On this page
- Why WooCommerce gets slow
- Step 1: Measure before you change anything
- Field data vs lab data
- Query Monitor for the request in front of you
- The MySQL slow query log
- Profiling PHP
- Step 2: Hosting, PHP version, and OPcache
- Step 3: Turn on High-Performance Order Storage (HPOS)
- Step 4: Add a persistent object cache with Redis
- Step 5: Page caching without breaking the cart
- What must bypass the cache
- Cart fragments, and why they used to hurt so much
- Step 6: Database optimization
- Autoloaded options
- Transients
- Postmeta bloat
- Indexes
- Step 7: Audit plugins by measured cost
- Step 8: Images, front end, and Core Web Vitals
- Step 9: Action Scheduler and WP-Cron
- Step 10: Use a CDN, properly
- Step 11: Make checkout fast
- When it's time to go headless
- A prioritized checklist
- Frequently asked questions
- Why is my WooCommerce store so slow?
- Does HPOS make WooCommerce faster?
- Should I use a caching plugin or server-level caching?
- Is Redis worth it for WooCommerce?
- How many plugins is too many for WooCommerce?
- How much does it cost to hire a developer to speed up WooCommerce?
- When should I move away from WooCommerce?
- Working with me
If your WooCommerce store is slow, the cause is almost never "WooCommerce is slow." It is usually a short list of things: underpowered hosting, no object cache, a page cache that is misconfigured or switched off, a wp_options table carrying megabytes of autoloaded junk, years of order data sitting in wp_postmeta, and a few plugins doing expensive work on every request. Fix those in the right order and most stores get dramatically faster without a rebuild.
This guide is for two people: the store owner who knows the site is slow and is losing sales because of it, and the developer they hire to fix it. I'll walk through how I approach WooCommerce performance optimization on stores I take over: measure first, then fix the server, the database, caching, plugins, and the front end, in roughly that order. There is real SQL, PHP, nginx, and shell along the way.
The short version, if you only read one paragraph: measure with field data and a profiler before touching anything, run a supported PHP version with OPcache, enable High-Performance Order Storage, add Redis as a persistent object cache, page-cache everything except cart, checkout, and my-account, clean up autoloaded options and stale transients, move WP-Cron and Action Scheduler to a real system cron, and audit plugins by measured cost rather than by gut feeling.
Why WooCommerce gets slow
WooCommerce sits on WordPress, and WordPress was built around a generic content model: posts, and a key-value side table called wp_postmeta. For a blog that is fine. For a store with 40,000 products, each with 30 meta rows, plus (on older stores) every order stored as a post with dozens more meta rows, it means a lot of queries hitting a table that was never designed for this workload.
On top of that, carts, sessions, per-customer prices, stock levels, and checkout all resist the "cache the whole page and forget it" approach that makes WordPress content sites fast.
The patterns I see most often when I inherit a slow store: cheap hosting with an old PHP version and no object cache; page caching disabled "because the cart broke once"; megabytes of autoloaded options; orders still in the legacy posts tables; dozens of plugins making queries or remote calls on every page load; and a page builder shipping hundreds of kilobytes of JavaScript to product pages. None of these requires a new platform. All of them require measuring before fixing.
Step 1: Measure before you change anything
The most expensive mistake in WooCommerce speed work is installing a "speed plugin," seeing a better Lighthouse score, and declaring victory. You need two kinds of data, and they answer different questions.
Field data vs lab data
Field data is what real visitors experience. Google's Core Web Vitals are assessed at the 75th percentile of real page loads, split by mobile and desktop, with "good" thresholds of LCP ≤ 2.5s, INP ≤ 200ms, and CLS ≤ 0.1. Check the Core Web Vitals report in Search Console and the field section of PageSpeed Insights for your homepage, a category page, and a product page.
Lab data (Lighthouse, a WebPageTest run) is a single synthetic load. It is a debugger, not a verdict. I covered the difference in detail in Core Web Vitals in 2026, and it matters even more for stores, because the pages that make money (cart and checkout) are rarely in CrUX at all and are never what Lighthouse tests by default.
For a store, I also want server timing for the pages that cannot be cached. Time to first byte on an uncached product page, the add-to-cart AJAX request, and the checkout update_order_review request tell you more about backend health than any front-end score.
# TTFB for a page, bypassing any cache by adding a throwaway query string
curl -s -o /dev/null -w "TTFB: %{time_starttransfer}s total: %{time_total}s\n" \
"https://shop.example.com/product/blue-hoodie/?nocache=$(date +%s)"If an uncached product page takes 2 seconds to produce the first byte, no amount of image optimization will save you. That is a backend problem.
Query Monitor for the request in front of you
Query Monitor is the first plugin I install on any slow WordPress site (on staging when possible). It shows every database query on the current request, flags slow and duplicate queries, and groups them by the responsible component: core, theme, or a specific plugin. It also shows HTTP API calls with their timing, which is how you catch a plugin phoning home to a licensing server on every page load.
What I look for:
- Total query count and total query time per page. A product page doing 400+ queries is a smell.
- "Queries by component." This is the fastest way to see which plugin is expensive.
- Duplicate queries, which usually mean a plugin calling
get_optionorget_post_metain a loop without caching. - Remote HTTP requests during a front-end page load. These should almost never happen.
The MySQL slow query log
Query Monitor only sees the request you load. The slow query log sees everything, including admin pages, cron, and AJAX endpoints that nobody is watching. Turn it on temporarily:
-- MySQL 8 / MariaDB: log anything slower than 0.5 seconds
SET GLOBAL slow_query_log = 'ON';
SET GLOBAL long_query_time = 0.5;
SET GLOBAL log_queries_not_using_indexes = 'OFF';
SHOW VARIABLES LIKE 'slow_query_log_file';Let it run for a day of normal traffic, then summarize it with mysqldumpslow or pt-query-digest instead of reading it raw:
pt-query-digest /var/log/mysql/mysql-slow.log | head -100The output ranks query fingerprints by total time consumed. The top three entries are usually where your work is.
Profiling PHP
When Query Monitor says the database is fine but the page is still slow, the time is in PHP. That needs a profiler: an APM agent like New Relic or Tideways in production, or Xdebug's profiler or SPX on staging. A flame graph or call tree will show you, for example, that 600ms of a product page is a related-products plugin computing recommendations from scratch on every request. You cannot guess that from the outside.
My rule: don't change anything until you can name the top three costs on the slowest uncached page, with numbers.
Step 2: Hosting, PHP version, and OPcache
Hosting is the floor. You can't optimize your way out of a server that is starved for CPU or shares a MySQL instance with 300 other sites.
Check the basics against WooCommerce's own server requirements. At the time of writing they list PHP 8.3 or newer (tested up to 8.4), MySQL 8.0+ or MariaDB 10.6+, and a WordPress memory limit of at least 256 MB for current WooCommerce versions. Also check the PHP project's supported versions page: if your store runs a PHP branch that no longer receives security fixes, that is both a performance and a security problem. Newer PHP versions are generally faster, and upgrading is usually the cheapest speed win available, as long as you test plugins on staging first.
What I look for in hosting for a store doing real volume:
| Item | What you want | Why it matters |
|---|---|---|
| PHP | A supported 8.x branch, PHP-FPM | Speed and security fixes |
| OPcache | Enabled, enough memory for all scripts | Avoids recompiling PHP on every request |
| Object cache | Redis available | Cuts repeated database reads |
| Database | Dedicated resources, MySQL 8 / MariaDB 10.6+ | Shared DB servers are a common bottleneck |
| Page cache | Server-level (nginx, Varnish, or host-provided) | Anonymous traffic never touches PHP |
| Staging | One-click clone | You need to test every change below |
OPcache is enabled by default on most hosts, but it is often undersized for WooCommerce plus a large plugin stack. If opcache_get_status() shows the cache full or a low hit rate, give it more room:
; php.ini / conf.d/opcache.ini
opcache.enable=1
opcache.memory_consumption=256
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=20000
opcache.validate_timestamps=1
opcache.revalidate_freq=60Keep validate_timestamps on unless your deploy process explicitly resets OPcache. Turning it off and then wondering why a plugin update "didn't apply" is a classic.
Step 3: Turn on High-Performance Order Storage (HPOS)
High-Performance Order Storage moves orders out of wp_posts and wp_postmeta into dedicated tables (wc_orders, wc_order_addresses, wc_order_operational_data, and wc_orders_meta). Orders stop competing with products and content in the same generic tables, and order queries can use proper columns and indexes.
According to WooCommerce's HPOS documentation, HPOS has been enabled by default for new installations since WooCommerce 8.2 (October 2023). Stores created before that are often still on the legacy posts storage, and that is exactly the group that tends to have years of order history bloating wp_postmeta.
Check where you stand under WooCommerce → Settings → Advanced → Features. If you are still on "WordPress posts storage," plan the switch:
- Check plugin compatibility. WooCommerce flags incompatible plugins on the Features screen. Anything that queries orders directly via
WP_Queryorget_post_metaon order IDs needs an update or a replacement. - Enable compatibility mode (sync) so both storages are kept in step during the transition.
- Let the sync finish, or run it yourself from the CLI on large stores.
- Verify the data, switch the authoritative storage to HPOS, and keep sync on for a while so you can roll back.
- Once you are confident, turn sync off and eventually clean up the legacy data.
The HPOS CLI tools make this manageable on stores with hundreds of thousands of orders:
wp wc hpos status # enabled? compatibility mode? unsynced orders?
wp wc hpos count_unmigrated # orders still pending sync
wp wc hpos sync # migrate in batches, faster than waiting on cron
wp wc hpos verify_data # compare both datastores (reports, does not fix)
wp wc hpos enable --with-syncDo this on staging first, with a production-sized copy of the database. The migration itself is safe if you follow the steps; the risk is always a custom snippet or an abandoned plugin that reads order meta the old way.
Step 4: Add a persistent object cache with Redis
WordPress has an object cache built in, but by default it lives only for the duration of one request. Every new request starts cold and re-reads options, product data, term relationships, and user meta from MySQL. A persistent object cache keeps those results in memory between requests.
This matters most for exactly the pages you cannot page-cache: cart, checkout, my-account, logged-in browsing, and wp-admin. Page caching helps anonymous visitors; object caching helps everyone else, including your staff processing orders.
The common setup is Redis plus the Redis Object Cache plugin by Till Krüss. Configuration goes in wp-config.php:
// wp-config.php
define( 'WP_REDIS_HOST', '127.0.0.1' );
define( 'WP_REDIS_PORT', 6379 );
define( 'WP_REDIS_DATABASE', 0 );
define( 'WP_REDIS_PREFIX', 'shop_prod:' ); // unique per site if Redis is shared
define( 'WP_REDIS_MAXTTL', 86400 ); // force expiry so stale keys don't live foreverwp plugin install redis-cache --activate
wp redis enable
wp redis statusTwo things to watch. First, set a maxmemory and an eviction policy in Redis (allkeys-lru is the usual choice for a pure cache) so it does not grow until the server runs out of RAM. Second, check the hit rate after a day. A low hit rate usually means a plugin is writing unique keys per request or flushing the cache constantly, and Query Monitor's object cache panel will help find it.
If you want the broader reasoning on when an in-memory cache is worth the operational cost, I wrote about it in Do you actually need Redis?. For a WooCommerce store with real traffic, the answer is almost always yes.
Step 5: Page caching without breaking the cart
Full-page caching is the biggest single speed win for a store, because most traffic is anonymous visitors browsing the homepage, categories, and products. Those pages can be served from cache in milliseconds without touching PHP. The trick is knowing exactly what must never be cached.
If the layers of caching (browser, CDN, server) are fuzzy, Web caching explained covers them; here I'll focus on the WooCommerce-specific rules.
What must bypass the cache
- The cart, checkout, and my-account pages (and their endpoints, like order-received and view-order).
- Any request where the visitor has items in the cart or an active WooCommerce session.
- Logged-in users (customer pricing, wholesale roles, and account data differ per user).
POSTrequests, and WooCommerce's AJAX endpoints (?wc-ajax=...).- Query strings that change content per user, such as
add-to-cart.
WooCommerce sets cookies you can key on: woocommerce_items_in_cart, woocommerce_cart_hash, and wp_woocommerce_session_*. Here is a trimmed nginx FastCGI cache setup that applies those rules:
fastcgi_cache_path /var/cache/nginx/shop levels=1:2 keys_zone=SHOP:100m inactive=60m max_size=2g;
fastcgi_cache_key "$scheme$request_method$host$request_uri";
server {
# ...
set $skip_cache 0;
if ($request_method = POST) { set $skip_cache 1; }
if ($query_string ~* "add-to-cart|wc-ajax") { set $skip_cache 1; }
# Cart, checkout, account (adjust to your actual page slugs)
if ($request_uri ~* "^/(cart|checkout|my-account)(/|$)") { set $skip_cache 1; }
if ($request_uri ~* "/wp-admin/|/wp-login.php|/wp-json/") { set $skip_cache 1; }
# Logged in, or anything in the cart / active session
if ($http_cookie ~* "wordpress_logged_in|woocommerce_items_in_cart|woocommerce_cart_hash|wp_woocommerce_session_") {
set $skip_cache 1;
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_cache SHOP;
fastcgi_cache_valid 200 30m;
fastcgi_cache_bypass $skip_cache;
fastcgi_no_cache $skip_cache;
add_header X-Cache $upstream_cache_status;
}
}If you use a managed host or a caching plugin, it likely implements these exclusions already. Verify rather than assume: load a product page twice in a private window and check the cache header, then add something to the cart and confirm the next page load is a BYPASS or MISS.
You also need purging. When a product's price or stock changes, its page and the category pages listing it must be purged. Most good caching plugins hook into WooCommerce product updates for this; a hand-rolled nginx cache needs a purge module or a helper plugin.
Cart fragments, and why they used to hurt so much
Classic themes show a mini-cart in the header with an item count. Because that header lives inside a cached page, WooCommerce updates it with a script called cart fragments, which fires an AJAX request (?wc-ajax=get_refreshed_fragments) to fetch the current cart HTML. That request runs PHP, loads the session, and cannot be page-cached.
For years that script loaded on every page of every store, even when no mini-cart existed. WooCommerce's own developer post on cart fragments best practices explains that before 7.8 this caused "unnecessary additional AJAX requests to the server" and could "severely impact the load on the server" on busy stores. Starting with WooCommerce 7.8, the script is no longer enqueued on all pages by default. It loads only where the legacy Cart widget is active, where another script declares it as a dependency, or where code enqueues it explicitly. The block-based Mini-Cart does not use the cart fragments API at all.
So on a modern store, check whether it is still running. Open DevTools, filter the network tab for get_refreshed_fragments, and browse a few pages. If it fires everywhere, a theme or plugin is enqueueing it. You can restrict execution to shop pages with the filter WooCommerce suggests:
add_filter( 'woocommerce_get_script_data', function ( $script_data, $handle ) {
if ( 'wc-cart-fragments' === $handle ) {
if ( is_woocommerce() || is_cart() || is_checkout() ) {
return $script_data;
}
return null; // script still loads, but does not execute here
}
return $script_data;
}, 10, 2 );The better long-term fix is a header cart that doesn't need it: the Mini-Cart block, or a theme that updates the count from a lightweight cookie on the client.
Step 6: Database optimization
Most WooCommerce database problems fall into four buckets: autoloaded options, transients, postmeta bloat, and missing indexes. Take a backup before any of this. Every query below assumes the default wp_ prefix; change it to match yours.
Autoloaded options
Every request to WordPress loads all autoloaded rows from wp_options in one query and keeps them in memory. When plugins store large blobs (logs, cached API responses, settings for plugins you deleted years ago) as autoloaded options, every request pays for it.
Since WordPress 6.6, the autoload column holds more values than yes/no. Per the core announcement, legacy yes/no are treated as on/off, new values like auto, auto-on, and auto-off exist, and Site Health flags a critical issue when total autoloaded options exceed 800 KB. Old audit queries that filter on autoload = 'yes' now undercount. Use this instead:
-- Total autoloaded size
SELECT ROUND(SUM(LENGTH(option_value)) / 1024) AS autoload_kb, COUNT(*) AS rows_count
FROM wp_options
WHERE autoload IN ('yes', 'on', 'auto-on', 'auto');
-- The 20 biggest offenders
SELECT option_name, ROUND(LENGTH(option_value) / 1024, 1) AS kb, autoload
FROM wp_options
WHERE autoload IN ('yes', 'on', 'auto-on', 'auto')
ORDER BY LENGTH(option_value) DESC
LIMIT 20;For each large row, find out which plugin owns it (the prefix usually tells you). If the plugin is gone, delete the option. If it is in use but only needed on a specific admin screen, set it to not autoload:
wp option set-autoload some_plugin_big_cache offThat command exists in recent WP-CLI versions; on older ones, an UPDATE wp_options SET autoload = 'off' WHERE option_name = '...' does the same thing. Then flush the object cache, because Redis is holding the old alloptions blob.
Transients
Transients are temporary cached values. Without a persistent object cache they live in wp_options, and expired ones are not always cleaned up promptly. On stores I take over, it is common to find tens of thousands of transient rows. Once Redis is enabled, new transients go to Redis instead, but the old rows stay behind.
-- How many transient rows are sitting in the options table?
SELECT COUNT(*) FROM wp_options WHERE option_name LIKE '\_transient\_%';Ideally, run wp transient delete --expired before enabling Redis, while transients still live in the database. Once an object cache is active, WP-CLI's transient commands act on the cache, so leftover rows have to be removed with a targeted DELETE (after a backup).
WooCommerce also has its own tools under WooCommerce → Status → Tools for clearing transients and expired transients, which are safe to run.
Postmeta bloat
wp_postmeta is where WooCommerce stores product data, and on pre-HPOS stores, order data too. Look at what is actually in it:
SELECT meta_key, COUNT(*) AS n
FROM wp_postmeta
GROUP BY meta_key
ORDER BY n DESC
LIMIT 30;
-- Orphaned meta: rows whose post no longer exists
SELECT COUNT(*) FROM wp_postmeta pm
LEFT JOIN wp_posts p ON p.ID = pm.post_id
WHERE p.ID IS NULL;The usual findings: meta keys from plugins that were uninstalled years ago, orphaned rows from deleted products, and order meta that has now been migrated to HPOS. Delete orphans and dead keys in batches (a DELETE ... LIMIT 5000 loop) rather than one giant statement that locks the table during trading hours. Old revisions and auto-drafts are also worth trimming, and setting WP_POST_REVISIONS to a small number stops the growth.
Indexes
The default wp_postmeta indexes are thin for store-sized data. The meta_key index is a prefix index, and a common WooCommerce query pattern (filter by key, compare by value) can't use it well. The slow query log from Step 1 tells you which queries are doing full scans; EXPLAIN tells you why.
EXPLAIN SELECT post_id FROM wp_postmeta
WHERE meta_key = '_sku' AND meta_value = 'HOODIE-BLU-M';You can add indexes by hand, but for WordPress core and WooCommerce tables I'd use Index WP MySQL For Speed, which adds better keys to tables including wp_postmeta, wp_options, and WooCommerce's order meta tables, and has a WP-CLI mode with a dry run so you can see the SQL first. The reasoning behind composite and covering indexes is the same as in Postgres, which I go through in PostgreSQL indexing explained; the syntax differs, the thinking does not.
Step 7: Audit plugins by measured cost
"Delete plugins" is the most repeated and least useful advice in WordPress performance. Plugin count matters less than plugin behavior. One badly written plugin can cost more than thirty well-written ones.
Here is the methodology I use:
- Inventory. List every active plugin with
wp plugin list --status=active. For each, write down what business function it serves and who asked for it. You will find several nobody can explain. - Measure on staging. With Query Monitor and a profiler, record query count, query time, and PHP time for four pages: home, category, product, and checkout. That is your baseline.
- Attribute cost. Use Query Monitor's "Queries by component" and the profiler's call tree to rank plugins by the time they add. Look for remote HTTP calls and for plugins that load their assets on every page.
- Bisect what you can't attribute. Deactivate plugins in halves on staging and re-measure. Tedious, but conclusive.
- Decide per plugin. Keep, replace with a lighter alternative, replace with a 30-line custom snippet, or remove.
- Restrict asset loading. Many plugins enqueue CSS and JS sitewide even when they are needed on one page. Dequeue them where they aren't used.
// Example: only load a form plugin's assets on the contact page
add_action( 'wp_enqueue_scripts', function () {
if ( ! is_page( 'contact' ) ) {
wp_dequeue_style( 'some-forms-plugin' );
wp_dequeue_script( 'some-forms-plugin' );
}
}, 100 );The repeat offenders I see: related-product and recommendation plugins computing results live, product filters running unindexed meta queries, page builders on product templates, analytics and marketing plugins each adding their own tag, and security plugins doing heavy work on every front-end request.
Step 8: Images, front end, and Core Web Vitals
Once the backend is fast, the front end decides what your visitors feel. WooCommerce stores have three recurring front-end problems.
Images. Product photos uploaded straight from a camera or a supplier feed at 4000px and several megabytes. Make sure WordPress is generating appropriately sized thumbnails for your theme, serve modern formats (WebP or AVIF) through your image plugin or CDN, and give images explicit width and height so they don't shift the layout. The main product image on a product page is usually the LCP element, so it should not be lazy-loaded; gallery thumbnails below it should be.
JavaScript. Sliders, page builders, quick-view popups, chat widgets, and three different tracking tags all compete for the main thread, and that is what hurts INP on mobile. Defer what can be deferred, delay third-party tags until interaction where your consent setup allows it, and question every widget on the product page.
Layout shift. Late-loading banners, cookie notices, and price or stock elements that render after the page are the usual CLS sources.
A quick checklist for a product page:
- Main product image is not lazy-loaded and has a preload or high fetch priority
- Gallery images below the fold are lazy-loaded
- All images have width and height attributes
- No render-blocking CSS or JS from plugins that aren't used on the page
- Third-party scripts deferred or delayed
- Fonts self-hosted, subset, and preloaded if they are the LCP text
- Field INP checked on mobile, not just desktop Lighthouse
The detailed fixes for each metric are in Core Web Vitals in 2026.
Step 9: Action Scheduler and WP-Cron
WP-Cron is not a real cron. It runs scheduled tasks opportunistically during page loads, which means two things on a store: tasks are late when traffic is low, and visitors pay for background work when traffic is high.
WooCommerce leans heavily on Action Scheduler for background jobs: emails, webhooks, subscription renewals, analytics imports, and plenty of plugin work. Go to WooCommerce → Status → Scheduled Actions and check two things: how many actions are pending or past due, and how big the completed and failed lists are. A queue that never drains is a real problem (late emails, missed renewals). A table with millions of completed rows is a database problem.
The fix is to run both from a real system cron:
// wp-config.php: stop running cron during page loads
define( 'DISABLE_WP_CRON', true );# crontab -e (as the web user)
* * * * * cd /var/www/shop && wp cron event run --due-now --quiet
* * * * * cd /var/www/shop && wp action-scheduler run --batch-size=100 --quietThe Action Scheduler WP-CLI docs describe the run command and its options, including --group and --exclude-groups for dedicating runners to specific work. Don't set DISABLE_WP_CRON without adding the system cron; scheduled tasks simply stop, and nobody notices until a customer complains that renewals failed.
Completed actions are purged after a retention period (30 days by default). On high-volume stores I usually shorten it:
add_filter( 'action_scheduler_retention_period', function () {
return 7 * DAY_IN_SECONDS;
} );Step 10: Use a CDN, properly
A CDN does two jobs for a store. It serves static assets (images, CSS, JS, fonts) from locations close to visitors, and, if configured for it, it can cache full HTML pages at the edge. The first is easy and almost always worth it. The second needs the same bypass rules as your server cache: never cache cart, checkout, my-account, logged-in users, or requests carrying WooCommerce session cookies.
What goes wrong with CDN setups on stores: edge HTML caching that ignores WooCommerce cookies (one customer's cart count shows up for everyone), purging not wired to product updates (stale prices and stock), short cache lifetimes on versioned assets, and bot protection challenging payment gateway webhooks so orders sit in "pending payment." If you enable edge HTML caching, test the cart flow, a logged-in customer, and a full payment from a clean browser before calling it done.
Step 11: Make checkout fast
Checkout is the page that pays for everything else, and it is uncacheable by definition. Every keystroke in the address fields can trigger an update_order_review AJAX request that recalculates shipping, taxes, and totals. If that takes 1.5 seconds, the checkout feels broken.
How to speed up WooCommerce checkout:
- Profile the checkout AJAX requests specifically. In DevTools, look at
?wc-ajax=update_order_reviewand?wc-ajax=checkout. Their server time is your real checkout performance. - Watch for live rate lookups. Shipping plugins that call a carrier API on every recalculation are a common cause of slow checkouts. Cache rates per cart and address where the plugin allows it.
- Reduce what runs at checkout. Fraud tools, upsell popups, address autocompletes, and marketing scripts all stack up. Each one needs to earn its place.
- Trim the form. Fewer fields means fewer recalculations and less work for the customer.
- Consider the block checkout. If you are still on the shortcode checkout, test the Checkout block on staging. Compatibility with your gateway and extensions is the deciding factor.
- Move post-order work to the background. Emails, CRM syncs, and webhooks should go through Action Scheduler rather than run inline when the customer clicks "Place order."
Object caching (Step 4) and a lean wp_options (Step 6) pay off most here, because checkout is the one page that always runs the full stack.
When it's time to go headless
Headless WooCommerce (WordPress and WooCommerce as the backend, a separate Next.js or similar storefront as the front end) can produce a very fast store. It is also a much bigger project, with a second codebase to host and maintain, and you lose some of the plugin ecosystem's front-end features, which now have to be rebuilt.
I only recommend it when:
- The backend is already healthy (everything above has been done) and the theme or page builder is the remaining bottleneck.
- The business needs a front-end experience a WordPress theme can't reasonably deliver.
- There is budget and a team to maintain two systems.
If the store is slow because of a 6 MB autoload blob and no object cache, going headless just moves the slowness into an API. Fix the backend first. When headless does make sense, the tradeoffs between headless WooCommerce, Shopify Hydrogen, and custom Next.js storefronts are covered in Headless commerce in 2026.
A prioritized checklist
If you want the order I'd work in on a typical slow store:
| Priority | Fix | Effort | Typical impact |
|---|---|---|---|
| 1 | Measure: field data, Query Monitor, slow log, profiler | Low | Tells you where the rest goes |
| 2 | Supported PHP version, OPcache sized properly | Low to medium | Backend speed across every page |
| 3 | Page caching with correct WooCommerce exclusions | Medium | Anonymous browsing becomes near-instant |
| 4 | Redis object cache | Low to medium | Cart, checkout, account, and admin |
| 5 | Autoloaded options and transients cleanup | Low | Every request |
| 6 | System cron for WP-Cron and Action Scheduler | Low | Removes background work from page loads |
| 7 | HPOS migration | Medium | Order queries, admin, postmeta size |
| 8 | Plugin audit and asset restriction | Medium to high | Varies; often the largest single win |
| 9 | Images and front-end JavaScript | Medium | LCP, INP, CLS |
| 10 | Checkout-specific profiling | Medium | Conversion |
The impact column is directional, from my experience, not a benchmark. Your measurements in Step 1 decide the real order.
Frequently asked questions
Why is my WooCommerce store so slow?
The most common causes are underpowered hosting, no page or object cache, a bloated wp_options table with large autoloaded data, order history stored in wp_postmeta on pre-HPOS stores, and plugins doing expensive work on every request. A slow admin usually points to the database and plugins; slow product pages for anonymous visitors usually mean caching is not working. Measure with Query Monitor and the slow query log before guessing.
Does HPOS make WooCommerce faster?
It moves orders into dedicated tables built for order queries, which helps order-heavy operations like the orders screen, reports, and lookups, and stops order data from bloating the tables products use. It doesn't directly speed up an anonymous product page that is served from cache. New stores have used it by default since WooCommerce 8.2; older stores need to migrate after checking plugin compatibility.
Should I use a caching plugin or server-level caching?
Server-level page caching (nginx FastCGI cache, Varnish, or your host's built-in cache) is faster because cached requests never reach PHP. A caching plugin is fine when your host doesn't offer server caching, and many plugins handle WooCommerce exclusions and purging well. Whichever you use, verify that cart, checkout, my-account, and visitors with cart cookies bypass the cache.
Is Redis worth it for WooCommerce?
For a store with real traffic, yes. Page caching only helps anonymous visitors, while cart, checkout, logged-in customers, and wp-admin always run PHP and benefit from a persistent object cache. Size Redis with a memory limit and eviction policy, and check the hit rate after enabling it.
How many plugins is too many for WooCommerce?
There is no magic number. A store with 60 lightweight plugins can be faster than one with 15 heavy ones. What matters is the measured cost of each plugin on your key pages, which you can find with Query Monitor's component view and a profiler.
How much does it cost to hire a developer to speed up WooCommerce?
It depends on scope. As a rough estimate, a focused audit plus the low-effort fixes (caching, Redis, PHP, autoload cleanup, cron) is often a few days of senior developer time, while an HPOS migration on a large store, a plugin replacement project, or a theme rebuild can take weeks. What moves the cost most is the size of the database, how much custom code exists, and whether a proper staging environment is already in place.
When should I move away from WooCommerce?
Rarely just for speed. A well-tuned WooCommerce store on decent hosting handles a lot of traffic and catalog size. Consider a headless front end or another platform when the business needs outgrow WordPress's model (complex multi-region catalogs, a front-end experience themes can't deliver), not as the first response to a slow site.
Working with me
WooCommerce performance work is a mix of database tuning, server configuration, and careful plugin surgery, and most of it should happen on staging with a production-sized copy of the data. If your store is slow and you want someone to measure it properly and fix it in the right order, take a look at my e-commerce development services or, if the bottleneck is clearly the database, my database work. Or just get in touch with your store URL and what you're seeing, and I'll tell you where I'd start.