WordPress now hold dominance over the CMS market. An excellent platform to express your website can be pretty slow just in case you have load of contents and have lot of visitors.
First of all, opt for a good host that comes with packages/plans having good resources as this essential factor directly play a vital role in speeding up your website. MilesWeb provides WordPress hosting plans to fill out this condition.
Here’s how you can optimize and boost your WordPress site.
1. How To Optimize Your WordPress Website:
– Setup LazyLoad Images
LazyLoad relates to lazily loading images in the viewer’s browser. It delays the loading of images on a descriptive webpage. Further images start loading in the same way one-by-one when the viewer starts scrolling down the webpage. Use plugins such as JQuery Image Lazy Load. It helps in loading pages faster as well as decrease server load.
– Optimize WordPress Database
In the course of time your WordPress database need optimization to free it from the bloats of unused tables, etc. It is alike disk fragmentation of your PC’s hard disk. It can be done by using phpMyAdmin in cPanel.
a. Log into cPanel and navigate to phpMyAdmin under ‘Databases’ section.
b. Open the related database and select all the tables by checking the ‘Check All‘ box
c. Now select Optimize table from the drop down menu. You’ll see as below after the process completion.
Plugins like WP DB Manager, WP-Optimize & Yoast Optimize DB can be useful to serve the purpose. These plugins simply clear out the bloats and help in boosting the speed of your site.
– Activate HotLink Protection
A form of bandwidth stealing when traffic from other sites where others place direct link to your site from images/pics and load the host server. This kind of content leeching can be stopped by enabling HotLink Protection in cPanel.
Bear in mind to back up your database before carrying out the DB optimization process with the help of plugins.
a. Log into your cPanel.
b. Go to HotLink Protection under Security tab.
c. Click Enable to activate the protection for your links.
– Optimize Homepage
You must pay special attention to your homepage as maximal of traffic hits are received there. For this reason it is of utmost importance to optimize it correctly for perfect speed, accessibility, etc.
a. Try minimizing database calls
b. Instead of using several plugins for the same purpose use only those necessary in order to keep the number of plugins to minimal.
c. Avoid placing social media and other widgets on your homepage as they overload the page. You can place them in blog/s.
d. Avoid placing too many posts, instead highlight the excerpts and links to the posts.
e. Get rid of inactive plugins.
f. Home page contents such as HTML, JS, CSSS, etc should be manually optimized.
g. Use speed tools like Webpage Analyzer, Webpagetest, Dynatrace, etc to pull out performance bottlenecks.
A tidy and clean homepage design really helps in boosting speed of your site.
2. How to Boost & Speed up WordPress Website:
– Optimize Images
While images play an important role in every website, it is essential to optimize them. WP Smush IT is such a plugin that compresses images without spoiling the quality. So, now you can as much images you like.
– Compress JS and CSS files
Compressing the CSS and JS files reduces the entire page size as it removes non-required data like comments, double space, etc. Eventually it helps in faster loading of a website.
Bear in mind combining CSS and JS files. Combining several files into single file helps in reducing the number of HTTP request to web server.
You can make use of several online tools who serve in compressing files.
On the other hand, cPanel do come with a function named Optimize Website that helps in achieving the goal. It deploys Apache’s mod_deflate function to compress content prior to sending it to the visitor’s browser.
a. Log into cPanel and go to Optimize Website under Software and Services.
b. Select ‘Compress All Content’ and hit the ‘Update Settings’ button.
– Choose A Theme
A perfect theme helps in boosting the speed of website, so should be chosen wisely after testing a few. A light weight theme should always be preferred over bloated ones with ample features, and hardly used.
– Deploy a CDN
Content delivery networks (CDN) clone sites on all the servers in its network worldwide. A visitor is served your site from the server in network close to visitor’s location rather than sending the query directly to the datacenter of the actual host server. This results in fast network speed of sites.
CDN is preferred for sites receiving high volumes of traffic, and where speed does matter.
CloudFlare is an example of CDN which MilesWeb offer with its every plan. Here’s How To Enable CloudFlare for A Domain Name In cPanel.
– Activate Caching plugins
WP plugins such as WP Super Cache, W3 Total Cache, WP Rocket, Hyper Cache are some of the popular cache plugins from the numerous out there. Caching amazingly enhance site speed which is useful for high traffic sites. These plugins create .html files for each page and every post which are served to visitors rather than querying database every time.
eTags are more of the caching options, however, its functionality should be disabled in case you have set an expire headers for the static contents.
You can add the code given below in .htaccess file to deactivate eTags
You can consider setting an Expire Header for browser caching to speed up the web site speed. Simply add the the code given below in the .htaccess file in the root of the domain.
## EXPIRES CACHING ##
ExpiresByType image/jpg “access plus 1 year”
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType video/mpeg “access plus 1 month”
ExpiresByType video/mp4 “access plus 1 month”
ExpiresByType text/css “access plus 3 month”
ExpiresByType application/pdf “access plus 2 month”
ExpiresByType application/x-shockwave-flash “access plus 2 month”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresDefault “access plus 3 days”
## EXPIRES CACHING ##
You can set different expiry dates depending upon how long you would like to cache the static contents, and how frequently you update the contents.
Yet there are numerous ways to improve the speed of a WordPress site. This article is not limited to number of suggestions as many more would be added in the course of time. Keep on checking !