how to Speed Up WordPress website
This article is about Ways to Speed up WordPress Websites, as WordPress is a great and famous platform so people are making tons of websites on it. But this CMS has a weak point too which is its slow speed, without taking proper steps while making your website on WordPress it will end up in a mess and ultimately you will lose your precious traffic due to this issue. So there are several ways to improve and speed up your WordPress websites such as:
- Choose a Good Theme:
Always choose good themes for your website and never use nulled themes for your website as it has many loopholes in it. There are several tools available where you can test the theme speed before choosing it for your website. Such as google developer speed testing or (https://tools.pingdom.com)
- Use effective Cache Plugin:
Always use cache plugin’s in your website such as W3 Total Cache, which will minimize your load time and make your website a faster one.
- Use a content delivery network (CDN):
Although CDN is a good thing for website but if you are expecting high traffic on your website’s then CDN is a most wanted thing to speed up your website and entertain your visitors with no delay. There are several CDN networks available but most preferred plugins are Cloudflare or MaxCDN. I personally tried MaxCDN and found it the best. Or you can go with any free or cheap solution if you can find any.
- Optimize your Images / Media:
Use optimized images in your website because a page with enriched media / graphics not only damaged your bandwidth but also cause slow loading issue. So it is preferred to use compressed images always. Use any software to compress images as there many applications which can convert 1MB pic to 100KB without losing its quality. Such as “Easy Graphic Convertor”
- Optimize your homepage to load quickly:
Reduce number of posts on home page and use excerpts instead of showing full posts to optimize your home page. You can remove side bar’s contents, or can use less images.
- Remove inactive plugins, un-approved or spam comments:
Keep clean your WordPress from in-active plugins, unapproved or spam comments, as these are taking space and increasing size of your database.
- Use alternative to big plugins:
Always preferred to use alternate to your big plugins such as Jetpack to Google Analytic. Because we always host several websites on a single server and trying to entertain visitors from our limited environment. In such way we have to reduce all possible load taking things. Jetpack is a most favorite plugin now a days but its a resource hunger too.
- Optimize your WordPress database:
Keep your WordPress database optimized to speed up your website. At some stage when you have hundreds of blog posts with enriched media which also increasing load in your database, you need to optimize your DB preferably on monthly basis. You can simply use the WP-Optimize plugin for this operation.
- Disable hot-linking and leeching:
Disable hot-linking and leeching of your content, it stop thieves to stop your precious bandwidth. At some stage your media cause slow speed issue for you.
- Add an expires header to static resources:
This way can cut your load time significantly for your regular users. You need to copy and paste the following code in your root .htaccess file:
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpg A2592000
ExpiresByType image/jpeg A2592000
The above numbers are set for a month (in seconds), you can change them as you wish.
- Add Lazy Load to your images
Lazy Load is the process of having only the images above the fold load (i.e. only the images visible in the visitor’s browser window), then, when reader scrolls down, the other images begin to load, just before they come into view. This will not only speed you page loads, it can also save bandwidth by loading less data for users who don’t scroll all the way down on your pages.
To do this automatically, install the jQuery Image Lazy Load plugin.
- Stop access to xmlrpc.php in your website.
Hope you have noticed tons of monthly attempts on your xmlrpc.php file which is not actually a real traffic, these are fake bots attempting to hack your website. So you have to disable access to your xmlrpc.php file.