Are you facing slow wordpress site speed?
You’re in the right place. As of today I’m going to share some great wordpress speed optimization tips which helped me to increase my blog speed and also helped me to see a reduction in bounce rate.
Why is WordPress so slow?
So there are many factors by which the wordpress is slow but I don’t want to waste your time on knowing about this. For now, I would like to proceed directly with the wordpress speed optimization tips.
I’ll be sharing everything by which I used to optimize my blog speed. I’m using WPX Hosting but don’t worry you can achieve the same speed as I’m getting. If you are a beginner and want good hosting on a budget. You can go with Siteground, A2Hosting, and GreenGeeks. So whoever is reading this can achieve very good speed for their blog.
We’ll be using different platforms to check the speed of the blog but we will only follow Gtmetrix to do all optimization. So let’s first start with this blog speed.
Speed Report :
My GTmetrix Results :
I always prefer GTmetrix for optimizing your website speed as it shows everything from image optimization to plugin minification.
It also shares problems with CDN and can use Waterfall to check why the speed is being slow.
My Pingdom Report :
Pingdom is correct in all details according to WP Rocket. I’m also getting a very good response in pingdom.
Google Page Insights :
WordPress Speed Optimization Tips:
Some Industry Experts also Use or Suggest Siteground:
Siteground is also recommended by WordPress.org
There are many more people in the industry who use Siteground web hosting and are very happy with it. Check out some poll answers from industry people.
Use Cache Plugin
Your hosting and cache plugin are the main factors for increasing your blog speed.
There are many cache plugins out there but I recommend WP Rocket as I’ve been using it for too long and getting amazing results with it.
When I shifted to WP Rocket it automatically increased my blog speed a lot. WP Rocket costs $49/year and I think it is worth increasing your blog speed.
There are more cache plugins like WP Fastest Cache and W3 Total Cache but after using all of the cache plugins I found WP Rocket to be the best cache plugin. This is also recommended by WordPress experts.
Some of the more people from industry :
WP Rocket comes with a lot of built-in plugins that don’t require any other cache plugin to be used with. It has everything inside it from database optimization to CDN.
It provides the best and all features as compared to other cache plugins :
I feel that WP Rocket is easy to use as compared to all other cache plugins.
WP Rocket Settings
Since you must have WP Rocket with you, let’s get started with the WP Rocket settings.
Cache (Basic Cache Settings)
Enable cache for mobile devices as this is going to help you in increasing your mobile site. Also enable “separate cache for mobile devices” if your website has something different for mobile and tablet devices.
If your website is the same as on a desktop then you should not enable Separate cache files for mobile devices. Unticking it will help you increase mobile speed.
File Optimization (Optimize CSS & JS)
Minify HTML – This will minify all your html code on your website and will remove extra spaces from the code.
Optimize Google Fonts – As you must be using google fonts and some of you must be using different fonts. This will optimize them all and combine them.
Remove Query Strings – Removing query string is very important and it has been working for so long in the speed field. Just enable this to remove strings like “?ver=1.0” from the URL.
Minify CSS – This step will be the same as it did in minify html. It will minify all your css and remove spaces into it.
Combine CSS Files – Combining CSS files will combine all of your site css files into 1 file which will help the server to call only 1 file while opening the website. (Important : Only enable it if your site is not using HTTP/2)
Click here to check if your website is using HTTP/2
Exclude any CSS file if you don’t want to combine it with all.
Optimize CSS Delivery – It will render the CSS and add it in above the fold by which the browser will download the files which aren’t needed for the current page.
Remove jQuery – This will remove the jquery file from WordPress which will help you to increase the speed as now it is not required that much.
Exclude any JF file if you don’t want to combine it with all.
Here’s a bit of work for image optimization.
Enable LazyLoad for images if you want to improve the page speed.
Enable LazyLoad for iframes and videos as if you add any video it will slow up your speed. So to prevent your page from slowing down. Turn it on. Lazyload will do its best for the video to get the right speed.
Disable Emoji – As this adds a new link from WordPress which will impact your external resources. Also, a lot of people don’t even use emoji’s so it just makes your speed worse and nothing else.
Disable WordPress Embeds – This will prevent others from embedding content from your site.
Enable WebP Caching – Only enable this if you’re not using any other WebP plugin.
Activate Preloading – This will generate a cache of links on your site as specified in the sitemap.
Prefetching DNS Requests
Add all your Reduce DNS lookup urls to this box. It can make all those files load faster.
If you don’t know where to find these urls. You can easily analyze your website with GTmetrix and in YSlow score you’ll see Reduce DNS lookups. Example :
Enable this if you’re using any CDN. I’m using WPX Hosting so I don’t need to use any other CDN as they provide WPX Cloud. If you’re using any other hosting that doesn’t provide CDN then I would recommend using StackPath or RocketCDN from WPRocket. Using CDN Url you can serve the Images, CSS & JS files with that url which will help to get rid of Cookie domain.
Note : Cloudflare never provided you with CDN CNAME Url.
You can enable this if you want to, I’ve also enabled this to control the resources to prevent high CPU usage.
These are very good add-ons provided by WP Rocket. It helps to host some of the external scripts to host on your server.
I’ve enabled Google Tracking, Facebook Pixel, and Varnish. Google and Facebook scripts to load locally on your server and Varnish will clear all caches to make them up-to-date.
Remember : If you want to benefit from these add-ons. Add GA Code and Facebook Pixel code to the website head only. If you add in a Google Tag Manager. It will not show you any results.
You can download the WP Rocket settings configuration.
Update WordPress to Latest Version
Keep your WordPress updated to its latest version. This will help you to get the best speed for your blog. As the update only comes when there is a new feature or a bug in the older version.
Also, keep your themes & plugins upto date. This will also help give you the best speed for your WordPress blog.
Use Latest PHP Version
Update the PHP version of your website as this helps a lot in speeding up the version. There are many hosts who have the latest versions of PHP but they do anything till you ask them to do.
So, first check your PHP version and check the latest PHP version is going on.
[note] Remember: Check PHP Compatibility of all themes & plugins. This will not cause any technical issues. Do check it before upgrading your PHP version. [/note]
You can easily ask your Hosting support them to update the PHP version of your website as I told you hosting providers will not update it automatically.
If you want to check your PHP version, easily follow the steps below.
- Go to your WordPress Dashboard.
- Install Display PHP Version plugin to check the latest version running on your blog.
- Once you install the plugin, you’ll be able to see the latest PHP version of your blog at the home of the WordPress dashboard.
If you’re a techy guy and you know very much about hosting cPanel then you can easily go to your hosting cPanel and then search for PHP Version Manager and you can easily update PHP version according to you.
Optimize your blog images with ShortPixel or Imagify. Both have free plans with monthly limits.
These are both the best tools in image optimization I’ve used till now. There are many more plugins also but I’ve tried them also but never got the awesome results as I’ve got in these two.
I use Shortpixel on this blog so i would recommend you shortpixel more. It also gives an option for .webp images which will increase your website speed by 25% as this is the modern image format which provides super lossless access to your images.
- Sign up on Shortpixel.
- Install ShortPixel Image Optimizer WordPress plugin.
- Once you’re done with the installation, add your API key which you got after signup.
Serve Scaled Images
Images are the ones which decrease the website speed and there are many different ways to scale it best. So here we are with Server scaled images for the blog.
You can see I’ve optimized them all on my blog :
What Server Scaled Images means is that there are some images which are shown small but pick up the large image size to show.
Example: You have an image with size 600×300 pixels and that size image is showing in a box of 300×150 pixels. So a large image is stretched to a small size which will increase your blog speed.
As you can see in the above screenshot, it is picking up a size of 640×360 but can fit in size of 370×210.
So there are many ways to do it. If you’re using any Drag & drop builder there must be a setting to which image it should pick. I’m sharing a code that you can add to your functions.php file.
add_image_size( 'custom-size', 370, 210, true ); // 370 pixels wide by 210
pixels tall, hard crop mode
You can change the image size according to your requirements. I’m using 370×210 for my featured images.
If you still have Serve scaled images issue comments below or post in our community.
Specify Image Dimensions
This is very easy to do but it also affects a lot on site speed.
So what you have to do is specify the width and height of every image on your blog. This mainly happens when you add custom code of your blog like in Widgets if you add any custom HTML code. The WordPress editor automatically takes care of this for the article images.
If you’re confused which size you should use in the image to get the perfect one. Use GTmetrix, it will tell you the exact size.
If you’re using WP Rocket then the above settings will take care of this. We’ve already done the settings for it in the WP Rocket Settings.
Google Tag Manager
I’m using Google Tag Manager to combine all small scripts which I’m using on my blog to call it all in 1 file.
You can also use this if you’re using different scripts, tags or codes on your website head. Like CrazyEgg, Hotjar, Pinterest tag, any theme script, etc.
Remember : Don’t use it if you’re using only 1 script.
It is very easy to setup and you don’t need any technical coding skills for it.
Steps to Add a Tag to Google Tag Manager :
- Once you have created your Google Tag Manager account, you will see the option to add a tag to your front screen.
- Click on add a new tag button and then tab on Tag configuration.
- Once you’re there you’ll see a Search button where you can search for the tag you want to add and if you don’t have that tag option there you can add it in Custom HTML by searching it in the search box.
- Once you have added all the tags, click on the Submit button in the right corner and Publish your changes.
Remove Unwanted Plugins & Themes
So, this is the easiest step. You don’t need any tech skills. Just go to your WordPress Dashboard and delete all your Unwanted plugins & themes.
Also, if you’re using any plugin just to add any single script or code that you can easily add manually, then use the steps above Google Tag Manager.
Add Expires Headers
Most cache plugins take care of these expiry headers. If you’re using WP Rocket then you don’t have to think about it.
If you still get that, your expiry headers score low. Add the below code in your .htaccess file. Add the code at the top of .htaccess file.
## EXPIRES CACHING ##
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
## EXPIRES CACHING ##
Use Lightweight Theme
There are many WordPress themes out there which have a very good loading time. You can use those themes or you can easily use a Custom WordPress Theme made by me. I’m going to update it from time to time and will be adding more and more features to it soon.
Find Slow Pages by GA
We will find slow pages on Google Analytics. It’s very easy to find your slow pages and check them in GTmetrix and work on what they’re up to.
So, first open your GA account and then go to Behavior > Site Speed > Speed Suggestions. You can check the recommendations under PageSpeed Suggestions for different pages.
Hire Me For WordPress Speed Optimization
If you need any kind of WordPress speed optimization tips you can email me at firstname.lastname@example.org.
Aksshit has been a really good help for me for optimizing my sites. His website speed optimization strategies and attention to detail is so good that I ended up ordering for my another site after the first one. If you are looking for a complete website speed optimization from a web developer who also happen to know the business side of things in blogging and affiliate marketing, look no further.
I hope you all enjoyed this article. I want to share something with you before ending it. I’ve shared all the wordpress speed optimization tips that I use to increase my blog speed. I want to share that this article is also getting 100% GTmetrix Score :
Share if you got any kind of help from this post or if you liked the post. If you’re still facing any speed issues comment below.
FAQs on WordPress Speed Optimization Tips
? How can I Speed Up my WordPress Site?
I was also facing WordPress site speed problems but after trying and implementing I am able to make my site speed very fast and shared all my tips in this blog post. It will help you to speed up your WordPress site.
? Why is WordPress Site so Slow?
? How can I Optimize my Website Speed?
Use good quality hosting like siteground and the best cache plugin like WP Rocket It will optimize your website automatically.
? How can I speed up my WordPress site without a plugin?
Without plugins you can achieve a good speed score by using high reputed hosting but once you start getting traffic you need something for cache. So using basic plugins is necessary to achieve the fast loading WordPress site.
? How can I make WordPress load faster?
? Does Elementor slow down your website?
No, Elementor will never slow down your website. But the only thing is that the developer who is building website should know properly. How he is making a site through elementor. As he/she has to take care of the image ratio, fonts and many more things.