Your WordPress host could be lightning fast, but it isn’t always a magic wand for horribly coded or un-optimized plugins and themes. We see this all the time here at Kinsta. Sometimes even just one bad plugin or snippet of code can be your site’s worst enemy, and bring everything to a crawl. That is why we monitor our customer’s sites constantly with New Relic tracking and even have a banned plugin list. Today we are going to share with you some handy, lesser-known WordPress performance plugins that can help you troubleshoot and speed up your site.
8 WordPress Performance Plugins in 2019
It might sound ironic to fix a plugin or script with another plugin. That might not the best way to solve a problem. But for those that aren’t WordPress developers, in many cases, this might be what you have to resort to. There is no such thing as a perfect plugin or developer, and so sometimes having a few tricks up your sleeve to get them to operate better and faster can come in quite useful. A lot of these plugins listed below are not as popular, some only having a couple thousand installs, but they definitely deserve some extra recognition, along with their developers.
- Query Monitor
- Complete Analytics Optimization Suite
- Disqus Conditional Load
- Lazy Load for Comments
- Query Strings Remover
- Disable Emojis
- Disable Embeds
And remember, adding more plugins isn’t necessarily bad, as long as they are lightweight and developed correctly. We have see many sites with 60+ plugins easily load in under 1 second. It comes down to choosing the right ones and then optimizing them.
Tired of hassling with slow WordPress hosting and 500 errors?
The first WordPress performance plugin we recommend checking out is Query Monitor, a free debugging and development plugin. You can use it to identify and debug slow database queries, AJAX calls, REST API requests, and much more. In addition, the plugin reports back website details such as script dependencies and dependents, WordPress hooks that fired during page generation, hosting environment details, conditional query tags met by the current page, and a lot more.
The plugin was developed by John Blackbourn, a core WordPress committer who is currently a developer at Human Made and was previously employed by WordPress.com VIP. As of writing this, it currently has over 20,000 active installs with a 5 out of 5 star rating. You can download it from the WordPress repository or by searching for it within your WordPress dashboard under “Add New” plugins.
You can use this for all sorts of things. Developers will love this plugin as you can narrow down each query that is happening on a page. If you are a developer you could even see if the plugin is making the most efficient query possible. And it’s not only for the front-end, you can also use it to troubleshoot performance issues in your WordPress dashboard.
Here is an example of a larger site’s WordPress dashboard. We can instantly see that the Pretty Link plugin is the heaviest hitter.
You can check out our full in-depth tutorial on how to use Query Monitor, along with more use case scenarios.
The second plugin we recommend checking out is the free Complete Analytics Optimization Suite, created and developed by Daan van den Bergh. This plugin allows you to host Google Analytics locally on your WordPress website.
Some benefits to hosting your analytics script locally is that you reduce your external HTTP requests to Google from 2 down to 1 and you now have full control over the caching of the file. You also can get rid of that annoying leverage browser caching warning, ironically caused by Google’s own script.
Just install the plugin, enter your Google Analytics Tracking ID, and the plugin adds the necessary tracking code for Google Analytics to your WordPress website, downloads and saves the analytics.js file to your server and keeps it updated using a scheduled script in wp_cron(). We recommend also setting it to load in the footer. Note: This plugin won’t work with other Google Analytics WordPress plugins and is not supported or the recommended method by Google.
If you do use Disqus, it’s pretty critical that you lazy load Disqus comments. If you don’t, Disqus can be a real hindrance to your site’s load speed. Why? Because by default it has to load every single avatar, and all the additional scripts they are now including due to the changes with Disqus ads. So we definitely recommend checking out the free Disqus Conditional Load plugin by Joel James.
We ran some quick tests so you can see the difference. In our example, we have a blog post with 35 comments on it. We tested it with the official Disqus plugin first and then ran tests with the Disqus Conditional Load plugin.
Official Disqus Plugin
We first ran 5 tests in Pingdom and took the average. As you can see the total load time was 917 ms with 113 requests.
Disqus Conditional Load Plugin
We then switched to the Disqus Conditional Load plugin and ran 5 tests again in Pingdom. As you can see our load time dropped down to 685 ms and we now have only 88 requests! Talk about a major difference with one little free plugin swap. For large news sites using Disqus, this could do wonders.
Perhaps you aren’t a fan of Disqus at all. It definitely has its pros and cons. If you prefer to use the native WordPress comments, this also has a similiar problem. By default, it loads all the gravatars on each page load. The ability to lazy load comments isn’t built into the WordPress core. However, a great lightweight and free solution that we recommend is the Lazy Load for Comments plugin. This is also developed by James Joel.
This is a newer plugin, and currently has only 100 active installs with a 5 out of 5 star rating. You can download Lazy Load for Comments from the WordPress repository or by searching for it under “Add New” plugins in your WordPress dashboard.
It is very simple to configure. Simply install and under the Discussion settings, there are two options. By default, it is set to “On Scroll” which is what most people will probably prefer. You can also set it to “On Click” which will created a button for visitors to click on before the comments load.
We ran some quick tests so you can see the difference. In our example, we are again using the same blog post with 35 comments on it. We tested it with the native comments first and then ran tests with the Lazy Load for Comments plugin.
We first ran 5 tests in Pingdom and took the average. As you can see the total load time was 827 ms with 106 requests.
Lazy Load for Comments Plugin
We then switched to the Lazy Load for Comments plugin and ran 5 tests again in Pingdom. As you can see our load time dropped down to 685 ms and we now have only 87 requests! This is awesome. Such a small tweak to native comments and instantly way faster.
Make sure to check out our post on other ways to speed up WordPress comments.
ache-control:public header is present. So by removing them you can sometimes improve your caching. This will also fix that warning you see in Pingdom and GTmetrix called “Remove query strings from static resources.”
As of writing this, the plugin has over 7,000 active installs with a 4.4 out of 5 rating. You can download Query Strings Remover from the WordPress repository or by searching for it within your WordPress dashboard under “Add New” plugins. The great thing about it is that there is no configuration necessary. Just install and your good to go. Make sure to clear your cache after installing though to see the changes. You can see a before and after below.
With Query Strings (before plugin)
Without Query Strings (after plugin)
You can also check out our in-depth post on how to remove query strings from static resources without the use of a plugin. It is also important to note that if you are using a newer CDN provider or web host, some are capable of caching query strings, which in turn means you might not need the plugin above. Both Cloudflare and KeyCDN, for example, can cache query strings.
When they released WordPress 4.2, they added support for emojis into core for older browsers. The big issue with this is that it generates an additional HTTP request on your WordPress site to load the wp-emoji-release.min.js file. And this loads on every single page. While this file is only 10.5 KB, things like these add up over time. And for most businesses, they are never going to use emojis. The great news is there is a free plugin called Disable Emojis, developed by Ryan Hellyer.
Below is an example of the script that it will disable on your WordPress site.
You can also check out our tutorial on how to disable Emojis without the use of a plugin.
We then have embeds. When they released WordPress 4.4, they merged the oEmbed feature into core. You have probably seen or used this before. This allows users to embed YouTube videos, tweets and many other resources on their sites simply by pasting a URL, which WordPress automatically converts into an embed and provides a live preview in the visual editor.
WordPress has been an oEmbed consumer for a long time, but with the update WordPress itself became an oEmbed provider. This feature is useful for a lot of people, and you may want to keep it enabled. However, what this means is that it also generates an additional HTTP request on your WordPress site now to load the wp-embed.min.js file. And this loads on every single page. While this file is only 1.7 KB, things like these add up over time. The request itself is sometimes a bigger deal than the content download size.
- Prevents others from embedding your site.
- Prevents you from embedding other non-whitelisted sites.
You can still embed things from YouTube and Twitter using their embed iframe scripts. You can also check out our tutorial on how to disable embeds without the use of a plugin.
There is also a new plugin on the block called perfmatters, which allows you to actually combine three of the plugins mentioned above. This makes it much easier when it comes to management and updating. The perfmatters plugin is actually developed by one of the Kinsta team members!
This is a premium plugin and allows you to easily implement numerous web performance optimizations with a single click. Below are just a few of the many optimizations you can make:
- Disable Emojis
- Disable Embeds
- Remove Querystrings
- Remove jQuery Migrate
- Disable and or limit post revisions
- Change autosave interval
- Disable pingbacks and trackbacks
- Disable XML-RPC
- Remove RSS feed links
- Disable WordPress Heartbeat API
- DNS prefetching
- Disable WooCommerce scripts and styles
- Disable WooCommerce cart fragments (AJAX)
A lot of these optimizations help reduce HTTP requests on your site and reduce database bloat. It is important to note that it doesn’t remove any files from your site, it simply disables them with WordPress hooks. This is completely safe.
And one of the most powerful features included is the script manager. This allows you to load CSS and JS conditionally depending on the page you’re visiting. It’s a simple and lightweight plugin which allows to get rid of useless CSS and JS files registered by themes and plugins. Even if you are running over HTTP/2, you can still shave some time of your page loads.
Just as a quick example of the script manager functionality, we fired up our development site and installed the following plugins, which are typical ones you might find on a client’s site or blog:
- Contact Form 7
- Disqus Comment System
- Q2W3 Fixed Widget
- Social Warfare
- Table of Contents Plus
Before perfmatters Plugin
We then ran 5 tests in Pingdom and took the average. As you can see, our total page size is 264.4 kB, our load time is 469 ms, and we have a total of 24 requests.
Configuring perfmatters Plugin
We then configured the perfmatters plugin. To do so, simply browse to a page on your site, in this case the home page, and click into “Script Manager” in your WordPress admin bar.
One of the biggest issues with a lot of WordPress plugins is that they load their scripts across your entire site. Even popular plugins such as Contact Form 7 do this. For a majority of people, they really only need scripts for Contact Form 7 loading on their contact page. The same goes for plugins like Social Warfare and Disqus. Social Warfare provides social media buttons, which really you only want loading on your blog posts. And for Disqus, the same. With perfmatters you can configure them to load on certain pages, certain posts, disable them altogether, etc. Pretty much any configuration.
In this example we are disabling the following 12 scripts from loading on our home page, as they are not needed. Your home page is after all one of the most important pages of your site, and one that visitors usually see first. perfmatters lets you disable scripts with a click of a button.
/wp-content/themes/twentyseventeen/assets/js/html5.js /wp-content/plugins/contact-form-7/includes/css/styles.css /wp-content/plugins/table-of-contents-plus/screen.min.css /wp-content/plugins/social-warfare/css/style.min.css /wp-content/plugins/tablepress/css/default.min.css /wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js /wp-content/plugins/contact-form-7/includes/js/scripts.js /wp-content/plugins/table-of-contents-plus/front.min.js /wp-content/plugins/social-warfare/js/script.min.js /wp-content/plugins/q2w3-fixed-widget/js/q2w3-fixed-widget.min.js /wp-content/plugins/disqus-comment-system/media/js/count.js /wp-includes/js/wp-embed.min.js
After perfmatters Plugin
We then ran 5 tests again in Pingdom and took the average. As you can see, our total page size now is 231.7 kB, our load time is 424 ms, and we have a total of 12 requests. We literally cut our total requests in half with this plugin! And there is no concatenation being done, which means this is completely within the best practices for better HTTP/2 performance. It utilizes native WordPress hooks, which is how it should be done.
Now of course, this is just an example on a small site. On much larger sites you could disable certain WooCommerce scripts that aren’t needed, EDD scripts, all sorts of things. You probably get the idea of how powerful this is. Generally, if something is not being used or needed, it is best practice not to load it for the user. This ensures the best load times possible. And for those of you not running over HTTP/2 supported servers yet, you will see even bigger speed gains with this plugin. Another free alternative you can try, which is very similiar, is the Plugin Organizer plugin.
Additional Resources on Speeding Up WordPress
Besides all the great performance plugins mentioned above, here are some additional resources to help you further speed up your site.
As you can see, a lot of these WordPress performance plugins above are just small little tweaks. But if you start implementing all of these, they can definitely add up to a faster site. We highly recommend the perfmatters plugin and also checking your WordPress comments to ensure your are loading them in the most efficient way. Did we miss any other good performance plugins? If so, let us know below. (We didn’t include P3 Profiler in this post because it has shown performance issues)