My WooCommerce shop is too slow to load. Backend is slow, frontend is slow, everything is slow. How to fix it?
There could be many reasons why your WooCommerce site is too slow in loading. You have to debug it step by step as described below
1) Check if host is slow
Setup and empty WordPress site and check the loading speed for that. If that loads fine then nothing to do with the host. If it loads slow then you will have to move to a new host or increase it’s RAM size to maximum.
If you are using shared hosting then it would be difficult to get any decent improvements. You should consider cloud hosting or dedicated hosting.
2) Plugins
Plugins are the most common culprits for slowing down any WordPress site including WooCommerce. Disable all plugins except WooCommerce and check if it loads fine. If not then move to the next step.
3) Theme
There may be issue with the theme which may be slowing down WooCommerce. Use WordPress’s default store theme and check if it makes any improvements? If not then move to next step
4) Disable wp-cron
If you site is getting a lot of traffic then disable wp-cron and see if it improves page loading.
Thanks for quick reply.
I don’t have many plugins, I’ve only 7 plugins and all of them are WooCommerce plugins.
I don’t have much traffic either.
I’m using default storefront theme.
I’ve a dedicated hosting and I’ve other WordPress installations on this dedicated host all of them load fine.
I don’t know what else to look for? Any more suggestions?
Looks like your case is complex then.
Check product Image sizes, if they are large reduce their sizes and delete old ones.
If that too doesn’t work out then install Query Monitor plugin and check out result from that plugin. fix any issue which is found.
You can read documentations on how to use Query Monitor Plugin
Have you create a child theme?
Thanks, I’ll check out this plugin.
My WordPress backend is too slow as well so not sure if any of the above will help me to fix the issues?
If you have tried all of the suggested things above and it still loads slow then try optimising images. As rule of thumb images should be in 100-200 KB sizes. Don’t let images exceed 500 KB.
Dude don’t use “WordPressSupport” as your user name or else Matt Mullenweg will sue you
I’m checking the image sizes right now, will update here soon with result. this may speed up front page loading, what about dashboard? How do I fix dashboard, it takes ages to load.
Hello, Yesterday I spent whole day doing everything I could from searching on Google but there has been no improvements at all.
Here are the things I tried
- Redis - Installed redis on my dedicated server and enabled it. Used Redis plugin on WordPress => WooCommerce still loads slow
- Installed Object Cache plugin, no improvements
- Reduces image sizes => No improvements
- Switched back to storefront default theme => WooCommerce still loads slow
My server already has SSD just n case someone points me to use SSD instead of HDD.
I’m not sure what else to try to speed up WooCommerce loading?
Looks like something is really messed up. Can you do an experiment? Add a new domain on your dedicated server, install fresh WordPress, Installed WooCommerce and check the loading speed. Don’t do anything else.
If it still loads slow then something to do with your server.
If it loads faster then your eCommerce store has some issues. Can’t think of anything else in this case to suggest you.
I’ve already tried that. As soon as I activate WooCommerce main plugin everything slows down.
Query Monitor Before activating WooCommerce plugin
Query Monitor After activating WooCommerce plugin
Above is for the dashboard loading.
Can you add following line in wp-config.php and try
define( 'WP_MAX_MEMORY_LIMIT', '1024M' );
Just tried, no significant improvement at all.
Can you login into your dedicated server via ssh and run top command or htop.
Keep the terminal window opened on the left side and on the right side open a browser and go do the dashboard. When WordPress dashboard loads observe the top/htop to find out what is going on. Report back here.
This account takes up almost 50% of the CPUs when dashboard is loaded. Similar pattern is observed when frontend is loaded.
Ok so we are getting closer to find the root cause of problem. WooCommerce is frying up your server. Problem is not with anything else but with WooCommerce plugin itself. It seems to be very poorly written.
Go to WooCommerce support and ask them to fix it.
Go to github and report the problem there too