Thursday, November 21, 2024
HomeEveryday WordPressHow To Optimize WPBakery Sites Using Free Smush And Hummingbird

How To Optimize WPBakery Sites Using Free Smush And Hummingbird


WPBakery is one of the world’s most popular WordPress page builders. Learn how to speed up and improve your site’s performance with the WPBakery plugin installed.

In this tutorial, I’ll show you how we took a site using WPBakery from this…

GTmetrix results for WPBakery site before optimization.

To this, using our free plugins Smush and Hummingbird

GTmetrix report
GTmetrix results for WPBakery site using free Smush and Hummingbird plugins.

And finally to this, after some additional tweaking*…

GTmetrix report.
GTmetrix results after full optimization. * These results include using Smush Pro features.

I’ll also talk about a new integration feature for WPBakery available in our award-winning image optimization plugin, Smush, and testing it along with everything else.

In this post, I’ll take you briefly through each of the following stages of my testing process so you can replicate this on your own site:

  1. WPBakery Overview
  2. Methodology
  3. WPBakery Site Setup
  4. WPBakery and Smush
  5. WPBakery and Smush with WPBakery Integration
  6. WPBakery, Smush, and Hummingbird
  7. WPBakery, Smush Pro, and Hummingbird
  8. WPBakery Optimization Remarks

Just follow the recipe below to speed up and improve your site’s performance with WPBakery.

It’s time to get cooking…

1. WPBakery Overview

While there are over a dozen page builders for WordPress, WPBakery remains one of the world’s most popular WordPress page builder plugins.

In fact, according to BuiltWith.com, WPBakery is a “mega” technology. It is used on over 3.6 million websites around the world and it’s the 5th most used WordPress plugin.

BuiltWith.com - WPBakery usage statistics.
Don’t think big…think Mega! WPBakery usage statistics source: BuiltWith.com

As many of our members use the WPBakery page builder plugin on their sites, we decided to look at ways to help improve site speed and performance.

Basic Optimization Tips for WPBakery WordPress Sites

Before we get into optimizing a WPBakery site using free plugins, let’s go over some basic optimization points.

Page Builders and Additional Code

A common characteristic of almost all page builders is that they add codes to your web pages’ main HTML file and additional files (e.g. CSS and JS files).

While these codes all help you “build nicer pages” using flexible layouts, a range of styling options, and wonderful design elements, they also affect your website speed, as it makes your pages heavier and slower to load in users’ web browsers.

While the extra codes added by page builders may not be necessary to load specific pages on your site and are generally only a few hundred kilobytes, they are necessary for your website as a whole.

The accumulated effect of these additional codes can increase your web page load time anywhere from a few hundred milliseconds to a few seconds, as web browsers not only have to download these additional codes but also execute them in order to display your pages to visitors.

If you plan to use WPBakery, you will want to stick with it for a very long time, as deactivating the plugin on your site will leave behind a long mess of shortcodes that you will need to remove from your posts and pages.

Page with WPBakery deactivated.
Yiikes…who’s gonna clean this up?

As you will see shortly, we will try to optimize WPBakery to reduce the additional load time caused by these extra codes using our Hummingbird plugins to minify our site’s HTML, CSS, and JS files.

Minification is the process of removing white space, carriage returns, and unnecessary characters. This results in smaller files which help your site load faster.

Theme

One of the best ways to start optimizing sites is by optimizing your theme first.

Some themes provide loads of optimization settings and tweaking these can make a massive difference.

If you use a theme like Avada, for example, there is a whole section of options to help improve performance (Avada > Options > Performance).

Avada WordPress Theme - Performance Options.
Optimizing your theme can make a huge difference to your site’s performance.

Go through your theme’s documentation and optimize its performance settings if available. And they do make a massive difference.

Hosting

Your hosting setup has a huge impact on your site’s speed and performance.

You don’t have to be a rocket scientist to work out that can reduce your page loading times significantly by choosing a fast web host.

Something you may not be aware of, however, is that Google recently updated PageSpeed Insights to improve scores based on the faster HTTP/2 protocol.

Hummingbird - Your server is runng the HTTP/2 protocol notification.
HTTP/2 servers provide a performance boost to sites and improve Google PageSpeed Insights scores.

So, make sure that your server supports the HTTP/2 protocol if you want faster site performance and better speed test scores.

CDN

A Content Distribution Network or CDN can further reduce your page load time by serving your site’s files from multiple data centers that are closer to your users.

As we are testing with our free plugins first and CDN is a feature of the “Pro” versions, we’ll keep CDN disabled during the initial test phase. We’ll turn it back on later when we look at ways to further optimize our test site.

Caching

Additional ways to further reduce your page load time include caching.

It’s important to note, however, that caching distorts page loading test results because it serves users a stored version of the site’s page, so any tests using caching turned on are not actually measuring the delivery of a page from an initial request to the original server where the site is stored.

For this reason, we’ll start our testing with Page caching disabled. We’ll then enable page caching later on just to see what kind of a difference in overall performance it can make to our test site with WPBakery installed.

Image Optimization

Compressing images helps your pages load faster and your site perform better by reducing image size without loss of image resolution.

We’ll be testing our site using our free image compression and optimization plugin, Smush.

Remove Unnecessary Elements

Some additional things that can affect the speed and performance of a WordPress site using WPBakery include removing any unnecessary elements like widgets, fonts, plugins, themes, etc.

For example, social media widgets often load an excessive amount of JavaScript and CSS files, which can slow down your server.

Widget optimization includes not only deleting unnecessary widgets that you don’t need but also removing them from places where they don’t need to appear (e.g. include widgets on your blog posts but remove them from pages like your home page, contact us, about us page, etc.)

Additionally, make sure that you are using the most up-to-date version of WPBakery and that your site, theme, and plugins are also all up-to-date. Outdated themes and plugins can conflict and slow down WPBakery performance.

Now that we have looked at various factors that can affect site optimization, let’s look at the specific methodology used to test our WordPress WP Bakery site.

2. Methodology

As this post is all about speeding things up, I’ll skip the parts where we show you how to set up hosting for your site, how to fully configure our Smush and Hummingbird plugins, and how to use page speed testing tools like GTmetrix and Google PageSpeed Insights to save time and get to our testing results faster.

If you need help with the above, see our in-depth tutorials below:

Additionally…

Please go through the sections on this post before optimizing your WPBakery sites: We recently published a tutorial on how to optimize Elementor sites. It contains a detailed walkthrough of all the steps we recommend using to configure and optimize our Smush and Hummingbird plugins.

Now, to the methodology used in this test:

  • I set up a brand new WordPress installation hosted on our basic WPMU DEV Managed WordPress hosting plan (Bronze).
  • WordPress version = 5.6.2
  • PHP version = 8.0
  • The only plugins we’ll install on our test site are Smush and Hummingbird (Note: The WPMU DEV Dashboard plugin is installed automatically on sites hosted with WPMU DEV).
  • Page caching and hosting and Pro plugin optimization features like Static server caching (Fast CGI) and CDN were disabled during our initial test phase.
  • The same WordPress theme (Shopkeeper) and theme configurations and options were used throughout all tests. Note: This theme doesn’t have its own optimization settings, so this will be done using the plugins.
  • WPBakery Builder plugin version = 6.5.0 (note: the plugin came bundled with the theme and that was the highest version of the plugin I could update to.)
  • The same GTmetrix default server location and browser were used throughout the test (test server location = Vancouver, Canada. Browser = Chrome (Desktop) 86.0.4240.193, Lighthouse 6.3.0).

Essentially, everything remained the same through the test. I simply turned on more options incrementally before re-testing, as detailed in the results section below.

Additional Notes and Disclaimer:

  • The site is hosted on WPMU DEV hosting, so installing Smush and Hummingbird using WPMU DEV’s Dashboard (a members-only feature) automatically upgrades all plugins to Pro. I performed my initial tests with Pro features disabled to simulate using our free plugin versions.
  • Hummingbird optimizes sites using different caching types (e.g. Page caching, Browser caching, RSS caching, and Gravatar caching) and compression features (e.g. GZip compression). As mentioned earlier, we started with Page caching disabled. We also disabled Gravatar caching and RSS caching. Browser caching and gzip compression are turned on by default on most hosts. There’s no easy way to turn these off without modifying web server configurations, so these were left on for the duration of the test
  • As our developers like to continually remind us, many variables can affect the performance and results of testing sites. This includes using different themes, plugins, hosting environments, configurations, the alignment of the planets, etc. We’ll discuss this a little more at the end of this post.
  • If you want, you can create a full backup of your site, but it’s not necessary, as Smush and Hummingbird will not break your website.

[Editor’s note: The tests below were done with earlier versions of Smush and Hummingbird. Our plugins have been redesigned to allow for white labeling and reselling].

Now, for the test results.

3. WPBakery Site Setup

As stated, All tests were performed on a brand new WordPress installation on WPMU DEV’s managed WordPress hosting.

Brand New WordPress Installation
My brand new WPBakery site…hot and fresh out of the WordPress oven!

I then uploaded the Shopkeeper eCommerce theme.

Shopkeeper - eCommerce Theme for WordPress.
Shopkeeper is a popular WPBakery eCommerce Theme for WordPress.

Although WPBakery is a standalone premium plugin, many themes come bundled with the plugin (including Shopkeeper).

Shopkeeper Installation Wizard.
WPBakery comes bundled with this theme.

I then imported the theme’s demo content, as I wanted loads of pages and large images.

Shopkeeper Demo Content Import screen.
Let’s import everything into the site and push this baby to the max!

With the WPBakery plugin installed and activated and my demo store’s content imported, my test site was now ready for testing.

Shopkeeper demo content.
Toss in lots of pages with loads of images…now we’re cooking!

Before touching anything, I ran some page speed tests on my site using Google PageSpeed Insights and GTmetrix.

Here are my initial Google PageSpeed mobile test results…

Google PageSpeed Insights - Initial Mobile results.
My initial PSI mobile results.

My initial Google PageSpeed desktop test results…

Google PageSpeed Insights - Initial Desktop results.
My initial PSI desktop results.

And my initial test results on GTmetrix.

GTmetrix report
What GTmetrix thinks of my non-optimized site.

With these initial benchmarks recorded, the next step was to install our free Smush and Hummingbird plugins.

We’ll do it one at a time and see how these affect my site’s scores.

4. WP Bakery and Smush

[Editor’s note: Since this post was written, we’ve made significant improvements to our Smush plugin and introduced new features like Ultra Smush for even better performance.]

I started by activating Smush, WPMU DEV’s image optimization and compression plugin.

Smush Setup
Hey Smush, thanks for offering to do the heavy lifting, but let’s keep it simple for now.

After installing Smush, I ran a check to see if any images needed compressing.

Smush automatically compressed over 2,300 images and detected additional attachments that needed re-smushing.

Smush Dashboard after setup.
I’ll just bulk smush these few additional attachments.

After Bulk smushing all images, the test site was ready for another round of page speed testing.

Smush dashboard - all images are smushed.
Over 2330 images smushed. Nice work, Smush!

By simply turning on Smush and leaving everything else on the site untouched, I got a slightly better score on Google PageSpeed Insights’ mobile test results.

Google PageSpeed Insights - Mobile results after setup.
According to Google’s mobile PSI score, I’ve reached my 30s.

And an increase in my Google PageSpeed Insights’ desktop score (plus the score has gone from red to yellow…yay!).

Google PageSpeed Insights - Desktop results after setup.
And thanks to Google’s desktop PSI score, I’m now into my early 50s…

My GTmetrix grade has also gone up from “D” to “C”.

GTmetrix results after initial setup.
That looks more like a C+to me!

Okay, that wasn’t bad for just turning on Smush.