CAll Us: +1 888-999-8231 Submit Ticket

How To Boost WooCommerce Site Speed & Avoid Slow Queries

We all know the worst thing about shopping in person is waiting in line. As ecommerce has become the norm for many customers, the online shopping experience also has to meet certain criteria to keep customers engaged. Site performance and speed are crucial to user experience.

If you have noticed your WooCommerce site speed isn’t performing as well as you expected, there is a good chance your customers are noticing too. In this article, we’ll discuss the root causes of slow WooCommerce sites (as well as slow WooCommerce queries) and what you can do to fix them. 

Why Is My WooCommerce Site Speed So Slow?

Some reasons for WooCommerce site speed taking a hit include active plugins, themes, poorly written code, and content delivery speed. All of these factors can result in slow WooCommerce queries too.

👉 Why is My WordPress Site So Slow? >>

Having a significant number of queries or even duplicate ones can drain your site’s performance abilities. This can be caused by visitors navigating your site, tracking, or even social media extensions you’ve added to expand your reach.

If your WooCommerce site is a person carrying groceries at the bottom of a five story walk-up, each additional query is someone handing you another bag of groceries at each floor. Your WooCommerce site gets a little slower every time the database gets queried.

Here is what you can do about it.

How to Boost WooCommerce Site Speed & Queries

Look At Your Plugins

Quality matters more than quantity when it comes to plugins. However, it doesn’t actually matter how many you use if they’re running fast and you know what they do for your site.

👉 The Essential Guide to WordPress Plugins >>

There are plugins like Query Monitor that you can use to identify, analyze, and debug your query and PHP errors. Using an observability platform like New Relic APM is preferable because it is an externally hosted tool that allows you to monitor, analyze, and troubleshoot your WooCommerce site without contributing to your database’s resource usage. 

Make sure to:

  • Monitor plugins with New Relic APM or Query Monitor to find the cause of duplicate or slow queries.
  • Reduce slow queries by using caching like Redis Object Caching and Hostdedi page cache.
  • Create plugin stacks that are complementary and don’t create conflicts. After creating a stack, check performance and monitor for any issues. 
  • Keep your plugins updated. Remove any plugins you aren’t using. 
  • Avoid plugins that make AJAX calls on the front end of your database. This can add 500ms to 1 second of processing time. 

Check Your Themes

Many available themes do not actually work well for WooCommerce sites even if they look great. The code behind it and how well it translates to mobile are both factors that contribute to poor site performance.

If you’re using a free theme, you likely will not receive support from the developers. If it contains bad code, you may end up with a site that contains malware, redirects, or utilizes SEO that negatively affects your WooCommerce site ranking.

👉 15 Best WooCommerce Themes You Need Today >>

If you’re using a premium theme, it simply may just have bloated coding that creates slow queries. They can utilize templates which generate a number of queries to your database to display products, for example. The longer it takes to process your site content through your database, the slower your site loads. 

Make sure to:

  • Do research. Check if the developer provides support. Search for reviews. See what users have to say about their experience with it. 
  • Pick themes that are optimized, have few installed plugins, and aren’t full of bloated coding. 
  • Delete unused themes. Storing them in your database can cause admin panel slowdown and site speed issues. 

Give Your Code A Trim

Poorly written code that wastes resources will slow down your site and make it harder for visitors to access content quickly. WooCommerce sites generating slow queries may have some unnecessary elements in their code. Bulky code means it takes more time to process. Every millisecond adds up. 

Make sure to:

  • Minify your code. Remove extra spaces, lines, and characters. 
  • Use Autoptimize to optimize and aggregate CSS and JavaScript code and files. 

Make Sure You’re Using a Content Delivery Network

If you’re old enough to remember the days of images loading line by line, you likely appreciate the speed and accessibility of content delivery networks (CDNs).

Rendering your content quickly and reliably for visitors is a must. There are a number of options available, including some free ones, but it is important to choose one that meets your needs. 

Choose a CDN that:

  • Is geographically close to your customers. 
  • Offers 24/7 support.
  • Supports SSL.
  • Can support small files as well as larger payloads.

Improve WooCommerce Site Speed With Optimized Hosting

You’re using a WooCommerce site for its ease, convenience, and flexibility. When all of that is compromised by slow site speed, your customers are going to start looking elsewhere. 

Because your hosting provider is the single biggest factor for site speed, consider fully managed WooCommerce hosting.

Remove the fuss of thinking about updating plugins and daily backups. Focus on what really matters 一 selling 一 while still having all the flexibility of customization. 

With fully managed WooCommerce hosting from Hostdedi, you get:

  • A built-in CDN.
  • High-quality security and support.
  • The latest cart abandonment technology.
  • Performance testing at your fingertips.

And most importantly, you’ll get an ultra-fast site thanks to instant auto scaling and visual comparisons.

Try fully managed WooCommerce hosting with Hostdedi. Experience faster site speed with a free two-week trial of fully managed WooCommerce hosting.

Source link

WooCommerce Performance Optimization: 5 Things You Should Be Doing Right Now

Building a blazing fast WooCommerce store used to be a full-time job. Now, basic WooCommerce performance optimization is simply a matter of knowing what technologies and plugins to use to keep your store speedy and your customers engaged. Here’s an intro to five performance topics and related resources for successfully optimizing your online store.

Shouldn’t I start with caching?

When looking at WooCommerce performance optimization, it’s easy to gravitate towards caching. While caching is a necessary technique for speeding up a WooCommerce website, it’s important that what you’re caching is also optimized.

Protip: Optimize your online store before enabling caching to make troubleshooting easier!

Page optimization

How quickly a page loads can mean the difference between a sale and a bounce. It’s important to make sure that the visible area of the page loads as quickly as possible. That means that graphical flourishes, fonts, and tracking scripts should either be some of the last things to load or should load asynchronously.

Even if you defer the loading of certain parts of the website, it’s still critical that you pay attention to how a page loads. Are external resources being loaded? Are those resources fonts or something more mission critical like CSS? Make sure critical resources are loaded quickly and/or asynchronously.

A couple great plugins for this type of optimization are Async JavaScript and Autoptimize.

Database optimization

Optimizing database queries and table types is a great way to see big performance gains with minimal effort. 

Create a new Index

Indexes help the MySQL database server find information quicker. Think of it as the index at the back of an old encyclopedia, or a table of contents in a book. While too many indexes can actually slow down the database, some strategically created indexes can have dramatic performance benefits.

Consider applying this index to your WordPress website to see a lift in performance.

MyISAM vs InnoDB

Usually referred to as storage engines, MyISAM and InnoDB are two different table types available within MySQL. For WordPress, tables should be in InnoDB format to get the best performance from your database. Of course, before making any changes, remember to back up your database.

Need to convert your database tables to InnoDB? This plugin should help.

Image optimization

While it might be hard to believe, large images can dramatically decrease the performance of your website or store. It might be tempting to think that lazy loading images can fix the problem, but remember that every image within the currently viewable area of a website must load for your user to have a good experience. In-fact, image size makes an even bigger difference when a user is visiting your website from their mobile device because network conditions and speeds are different in every place on earth. Luckily there are great plugins that can help optimize your images!

TinyPNG, Imagify, EWWW, Shortpixel, and Robin Image Optimizer are a few great image optimization plugins.


WordPress used to be just a blogging platform. As WordPress has evolved into a capable platform for building stores, learning sites, etc, so has the need for caching. You can learn about this important aspect of WooCommerce performance optimization by checking out the caching in WooCommerce article on the Hostdedi blog.


If you’ve ever been in a busy supermarket wishing they’d open up another checkout lane, you already understand the idea behind multi-threading. Because a PHP process works on commands in a linear way, a growing site will eventually grind to a halt as a single PHP process becomes overwhelmed. If you add more processes, the website is capable of responding to more requests concurrently, and the system starts to move again. WordPress hosts like Hostdedi use PHP worker processes to enable multi-threading for fast concurrent requests. For a more in-depth look at worker processes and how they work, check out this article. If you’re feeling extra cool, you can even try your hand at implementing workers using the official PHP documentation.

Remember to test your optimizations

As a final thought, remember to test the speed of your website before and after optimizations. While there are many resources for testing page speed, GTMetrix is a great place to start your journey. And remember, if you need help along the way, get in touch. We are here to help!

Source link