How To Optimize Wordpress website

 Loading Speed of a Website plays the most important role in its success. According to a report by the Microsoft Bing search team, a 2-second longer delay in page responsiveness reduced user satisfaction by 3.8%, increased lost revenue per user by 4.3%, and a reduced clicks by 4.3%. The Website performance also influences your rankings on search engines as well as User Experience.

WordPress is a great platform with lot’s of its benefit, but optimizing WordPress is one of the major issues. In this post, I will cover one of best tips, techniques, and methods which will help you in boosting your Website speed.

1. Selecting Right Hosting Provider and Hosting Plan

Hosting Provider plays one of the most important roles in Website Optimization. If your Hosting Provider is not good, then all other techniques and tweaks will go in vain. So choose the hosting provider. Select your Plan whether you are using a Shared hosting plan or a Dedicated Hosting Plan according to your traffic. Royalclouds have inbuilt Wordpress Optimizer  we use LiteSpeed Web Server this is the best web server in world

FEATURE RICH OF LiteSpeed With RoyalClouds

  • Apache compatible .htaccess support
  • Apache compatible URL rewrite engine
  • mod_security compatible request filtering
  • Built-in Anti-DDoS
  • Support for HTTP/2 and SPDY
  • SSL, IPv4, IPv6
  • Built-in page caching and ESI support
  • GZIP compression
  • CloudLinux CageFS compatible
  • PHP, Servlet/JSP, Perl, Ruby, Python
  • CGI, FastCGI, LSAPI, Proxy, AJPv13, suEXEC
  • Virtual Host-Level Bandwidth Throttling
  • WebSocket proxying


  • Up to 6 times faster than Apache
  • 3 times faster than Apache in SSL
  • Serves Magento pages up to 75 times faster with LiteMage cache
  • PHP performance increases 50%

2. Using The Best Caching Plugin

Before getting into Cache Plugins, First, let’s find out the meaning of Cache and how it helps in optimizing your Website or a Blog.

In a computing context, a cache is a place to temporarily store data. Whenever a visitor visits your website or blog, Active data is often cached to reduce load times. When you return to a frequently accessed web site, the chances are that your browser will have a good portion of the site’s files stored within its cache. This means that the browser needs to receive less ‘fresh’ information from the site, resulting in a faster load time.

Now there are thousands of cache plugins available in the market and it’s quite hard to test every plugin. So we tested a lot of cache plugins and found 3 Plugins which are used by million of people. Below are the three plugins which you can use for cache.

  • W3 Total Cache (Free)

 W3 Cache is one of the most used plugins in WordPress directory with the rating of 4 out of 5.  W3 Total Cache is the second most downloaded caching plugin in the Market.  Having a lot of customizations and features, W3 Total Cache utilizes file minification and GZIP compression. Like WP Super Cache, W3 Total Cache also supports Content Delivery Networks and allows you to export your settings for future use.

WP Fastest Cache (Free)

WP Fastest Cache is active on more than 100,000 websites and has managed to maintain a rating of 4.8 out of 5 stars. It supports CDN integration, HTML and CSS minifications, CSS and JS combination, Gzip compression, and browser caching.

WP Rocket ( Paid)

3. Use Content Delivery Network (CDN)

To minimize the distance between the visitors and your website’s server, a CDN stores a cached version of its content in multiple geographical locations (a.k.a., points of presence, or PoPs). Each PoP contains a number of caching servers responsible for content delivery to visitors. There are two most used CDNs available, free and paid in the market, let’s have a short review.

CloudFlare (Free)

CloudFlare started as a project to track spammers who would harvest email addresses from websites. CloudFlare has free and paid plans as well.


MaxCDN is another paid Content Delivery providing the network with a lot of great features. If you want to use CDN of your e-commerce or Bussiness website then I will advise you to use MaxCDN.

Enable gZIP compression

To decrease the size of data that’s being transferred between your server and your visitors, you can enable the gZIP compression for your images, CSS and JavaScript files. The easiest way to enable the gZIP compression for your images, CSS and JS files is to add these lines to your .htaccess file in the root WordPress folder.

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

Leverage browser caching

Leveraging the browser caching means that you can specify for how long your visitors’ browsers should cache your images, CSS, JS and flash files. However, if any of those resources is set, your server will notify the visitors browser and the cached content will be replaced with the new one. To use this feature on your website, you can edit your .hta access file with the following below code.

<IfModule mod_expires.c>
ExpiresActive On
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 application/pdf "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"

Use PHP 7
As of the time of writing this post, PHP7 and EasyApach4 are not quite released for production. According to support, EA4 is ready for 95% of the people. Based off outstanding bugs, I felt they didn’t affect my usage, therefor it was reasonably safe to upgrade. If you read this and you’re running WHM 58, then EA4 is ready for you!

So this was the Ultimate tutorial to optimize your website, I am pretty much sure that if you followed this tutorial, you will able to boost your website speed.

Was this answer helpful? 2 Users Found This Useful (4 Votes)