How to Improve Speed of a WordPress Website

You are here : Home / How to Improve Speed of a WordPress Website

 

The next goal after developing your website is to get traffic. Speed of WordPress Website is responsible to either stick a user to your site or bounce him back. If your website takes more than a few seconds to load than you may lose your visitors. 

Google has recently added “Speed” as one of the important factors to increase the site’s page ranking and make it more popular. Therefore speed is an important factor to gain more traffic and grab success. Though it may seem to be complicated but a few simple steps can radically improve the speed of your wordpress website.

 

A Proper Hosting Server

Getting internet space for your wordpress website from a good host is very important. Choose a web host that is reliable and have strong servers. Using of a shared host is not a bad idea. But take care it does not hinder your website’s performance. Before you go for a host just don’t look the storage space but also consider other performance factors like bandwidth, processor speed/type, databases allowed, domains allowed and PHP and MySQL versions compatible with your WordPress.

Use Light WordPress Themes/Frameworks

Your flashy cool theme can definitely be the reason of the slow website performance. Speed of WordPress website is associated with simplicity. Use themes that are simple, CSS based, with optimized code and less images. WordPress provides you with some pre-installed themes like Twenty Thirteen and Twenty Twelve that are sleek, simple and speedy and can be easily modified and used. If not the default ones, you can also find bounty of such themes without compromising with the “look” of your website.

Use Content Delivery Network (CDN)

A CDN or Content Delivery Network is a network of servers across the globe that plays a vital role in boosting a website’s performance. It decreases load time of web pages resulting in lower bounce rates. It keeps a copy of your website and all its static files including CSS, javascript and images. As a visitor request’s a page from your website the CDN delivers your website’s files from the nearest server to him. Since the speed of a wordpress website directly depends upon the distance between the user and server so by downloading from a closer location, the speed of wordpress website increases.

Cache Content using Plugins

A WordPress Website run dynamically generated PHP code to generate the content and so each time a page is loaded, wordpress executes a query making the website perform slower. To prevent the repeated execution of the same script, caching allows you to save the static version of the dynamic content ensuing faster wordpress speed and more efficient usage of server resources. To enable caching you can use some commonly used caching plugins like W3 Total Cache or WP Super Cache.

Use .htaccess File for Browser Caching

Browser caching enables the browser to store your website’s content for a given period of time. When a same file is requested again, the browser delivers it from the local cache without fetching it from the server again and thereby saving bandwidth and increasing the wordpress website’s speed.

Subsequent HTTP requests are made to the server for downloading a file when it is requested for the first time. But these repeated requests can be avoided by making the files cacheable using Expires or Cache-Control headers in the .htaccess files. For the Apache Servers it can be done through the mod_expires and mod_headers modules

To set up the Expires Header for copy the following code:


and .htaccess rules for setting up Cache-control header:


The corresponding .htaccess settings to cache files for 50 hours for the Nginx Server are:

Keep WordPress and Plugins Updated

WordPress regularly releases its newer versions with performance improvements, bug fixes and better security. So you must not avoid the upgradation of your WordPress to its newer stable version.

Similarly plugin developers release newer versions of their plugins with improved features and better functionalities. So it would be a big performance boost for your website if you leave the outdated versions and stay updated.

Optimize Images

Despite of the fact that images are important to attract traffic you also know that images increases the load time of a page. But since images are vital part of making a page popular so somehow you have to include them without affecting the performance. So in order to use the image optimally and increase the speed of WordPress Website you can compress it without dropping it quality using plugin like WP Smush.it

You can also try the Lazy Load Technique to enable the images load only when they are needed at the viewpoint of the monitor or appear to the visitor while scrolling down the page using the Lazy Load Plugin. This technique not only speeds up your wordpress website, it also saves bandwidth by loading fewer images for visitors who don’t scroll the pages.

Optimize Database

Before modifying the database in any way, remember to take its backup. Now optimizing the database can be a very easy task if you use a database administration tool like phpMyAdmin, you can simply select all tables and click “Repair” and then “Optimize”. You may also scan for outdated tables associated with the removed plugins.
WP-DBManager Plugin can also be used for the optimization of database by factor of single click.

Avoid Repeating 301 Redirects

A 301 redirect is is considered a good practice when a domain or page with a high authority (determined by age, size and popularity factors) is permanently shifted from one location to another. But it can also hamper the speed of your wordpress website and especially if used in a row of redirects which can significantly decrease the load time speed of your webpage. So whenever possible, it is advisable to avoid the number of redirects. However you should also know how and when to use the 301 redirect optimally.

Keep a Clean Home Page

The most significant page of your wordpress website is the homepage where most visitors land often and so it is important to ensure that this page loads speedily. Some very simple “points-to-remember” can accomplish this goal:

  • Do not publish entire posts on the home page, instead keep excerpts
  • Limit the no. of post excerpts on the first page
  • Avoid displaying unnecessary widgets
  • Eliminate the use of any extra and unused plugins.

A neat and clean home page will certainly speed up your wordpress website.

Prevent Hotlinking

Hotlinking can largely hamper the speed of any wordpress website. Hotlinking refers to bandwidth theft i.e. when some other website do not upload images using its its own bandwidth but direct link to the images on your website through its posts/articles. This results in slowing down of your website’s server. In order to prevent hotlinking, you can place the below given code in your .htaccess file:


Some hosting providers like BlueHost gives “Hotlink Protection” option directly from the hosting dashboard.
 

Gzip File Compression using .htaccess

Gzip compression is the zipping of HTML documents, scripts and stylesheets. These compressed files help to decrease HTTP response times, save server bandwidth and reduce amount of time for browser to download the files. To Gzip the files you need to code in the .htaccess file.

For Apache (mod_pagespeed module supported)


For Apache (mod_deflate module supported)


For Nginx Servers

 How to Improve Speed of a WordPress Website

Flipper Code

We have been building WordPress Plugins at flipper code since 2008. We follow wordpress coding standard that ensures we deliver the excellent wordpress plugins and services.

More Posts - Website

Follow Me:
twitter How to Improve Speed of a WordPress Websitefacebook How to Improve Speed of a WordPress Websitegoogleplus How to Improve Speed of a WordPress Website

Customize Product according to your requirements?

We will be glad to discuss any of your needs related to our wordpress plugins . if any of functionality you'd like to see in products, you can reach us by via email hello@flippercode.com.