WooCommerce Checkout Slow: Payment Gateway Scripts and Database
Find the bottleneck.
Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.
A slow checkout loses sales. The usual causes are slow payment scripts, heavy plugins, a busy database or caching problems.
Step 1: Measure it

Open checkout, press F12, open Network and reload. Sort by time and find the slowest requests.
Step 2: Check gateway scripts

Each enabled payment method loads scripts. Disable methods you do not use.
Step 3: Check plugins

Install Query Monitor and look for slow queries and plugins on the checkout page.
Step 4: Clean the database

Remove expired transients, old sessions and large logs.
Step 5: Check hosting resources

CPU, memory and PHP workers limit checkout speed. Look at your host's usage graphs.
Step 6: Cache correctly

Cache all pages except cart, checkout and My Account.
Step 7: Test again

Time a full checkout before and after.
Still stuck?
If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.
Related guides
- WordPress: Remove Query Strings From Static Resources: Pros and Cons
- WordPress Plugin Bloat: How Many Plugins Are Too Many?
- WordPress: Optimize Images in Bulk Without Changing URLs
- WordPress: Delete Expired Transients Safely
Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.