How to Make WordPress Faster
These easy tips will help make WordPress faster. A good way to test the speed of your site is through GTmetrix. GTmetrix will analyze your website’s scripts and images and help you narrow down the reasons why your WordPress installation is slow.
Select a Good Hosting Company
Choose a hosting company that offers WordPress specific hosting.
Evoke Webworks managed WordPress is fast and reliable.
Use a Caching Plugin
Caching plugins can help boost page speed. Here are a few good caching plugins
- Better WordPress Minify
- W3 Total Cache
- Wp Fastest Cache
- Zen Cache
These plugins will help you minify JS and CSS files. Some of these also defer parsing for you. If you’ve entered scripts into your pages manually, you will have to defer parsing manually.
Enable GZIP, DEFLATE & EXPIRE HEADERS in Your htaccess File
Most WordPress installations use a .htaccess file located in the root folder. Add this script to your htaccess file
Header unset ETag
# BEGIN Expire headers
ExpiresDefault “access plus 2592000 seconds”
ExpiresByType image/x-icon “access plus 2592000 seconds”
ExpiresByType image/jpeg “access plus 2592000 seconds”
ExpiresByType image/png “access plus 2592000 seconds”
ExpiresByType image/gif “access plus 2592000 seconds”
ExpiresByType application/x-shockwave-flash “access plus 2592000 seconds”
ExpiresByType text/css “access plus 604800 seconds”
ExpiresByType application/xhtml+xml “access plus 600 seconds”
ExpiresByType text/html “access plus 1 day”
# END Expire headers
# BEGIN Cache-Control Headers
Header set Cache-Control “public”
Header set Cache-Control “public”
Header set Cache-Control “private”
Header set Cache-Control “private, must-revalidate”
# END Cache-Control Headers
# BEGIN GZIP (May not work on all servers)
# mod_gzip compression (legacy, Apache 1.3)
mod_gzip_item_include file \.(html?|xml|txt|css|js)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
# END GZIP
# DEFLATE compression
# Set compression for: html,txt,xml,js,css
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0 no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Set header information for proxies
Header append Vary User-Agent
# END DEFLATE
# using commands,filters etc
Delete Plugins You Don’t Need
Deleting plugins that you don’t need can help make your site faster by keeping your database as light as possible. Some plugins load unnecessary scripts on pages that don’t utilize certain plugins. You can figure out which plugins are causing slow loading of your pages with plugins like P3 Profiler
Your images should be as light as possible. Heavy images will slow down loading of page. Make sure your images are saved for web at 72 resolution. Depending on quality the weight of the image will vary. Try and compress your image down to under 400kb.
Optimize Your Database
Your database stores all your sites information/content. When you delete a plugin, sometimes the plugin database tables & content remain in your database and just takes up space. Make sure you delete any unnecessary tables. A good plugin to use is WP Optimize. This plugin allows you to delete
- post revisions
- unused drafts
- posts in trash
- unapproved comments
Use Lazyload for Your Images
If you don’t have a theme that uses LazyLoad, you can install a LazyLoad plugin. This will improve page speed by loading images only when users scroll pages. This means that pages are not loaded all at once.
Use a Content Delivery Network(CDN)
You can also use Max CDN.
Read article on how to set up a free CloudFlare account to make your site faster.
Thanks for Reading! Please share these easy quick tips for making WordPress faster.