Although, WordPress is an open source CMS controlling 74,652,825 ( and plus ) websites worldwide A major issue with the wordpress websites is that sometimes these websites are slow to load.
Some steps which help the developers in solving this issues and improve the performance of the WordPress website are as mentioned below
- Plugin Optimization
- Theme Optimization
- Caching issue
- Selection of hosting providers
- Selection of themes
- Turning off Pingbacks / Trackbacks
- Leverage Browser Caching
- Use of the Content Delivery Network (CDN)
These steps are mentioned in details below:
- Plugin Optimization : To increase the wp website performance, the web developers need to delete the unnecessary plugins which takes up a lot of memory and also the page loading time is increased.
- Theme optimization : WordPress has a vast collection of themes. The wordpress developers should select the theme considering some loading time for the particular theme. After selecting the theme with appropriate plugins the theme provides the developers should do the following things:
- Optimize all the images of the website using tinypng.com and/or tinyjpg.com websites.
- Remove unnecessary images from the website.
- Combine multiple CSS files into a single file.
- Remove unnecessary functions from the website and code the static items like: Header, Navigation menu and Footer.
- Remove dummy entries from the database of the website.
- Caching issue : Sometimes it may happen that the posts the users add from the wp admin panel don’t load properly and quickly due to the wordpress Cache. To solve this issue the developers need to use any WordPress caching plugins like: W3 Total Cache which renders the web pages faster and also improves the page loading time.
- Selection of hosting providers : The website needs to be hosted on a standard server. A few hosts which are available for this purpose, such as: GoDaddy, WP Engine they have server optimised for wordpress specially. The down time of the websites hosted on these servers is minimum as compared to common shared hosting providers. The page load times are also reduced to milliseconds from seconds if the website is hosted on standard servers.
- Selection of themes : WordPress website themes play an important role in the overall performance of the website. It is important to select a theme which has the minimum pagespeed. Pingdom is the tool used to check the pagespeed of any wordpress theme. It is believed that the theme with the page speed in milliseconds is coded properly.
- Turning off Pingbacks / Trackbacks : The pingbacks /trackbacks should be turned off as they may increase the pagespeed of the website. To turn off the pingbacks / trackbacks please go to WordPress Admin area and Settings > Discussion> Allow link notifications from other blogs (pingbacks & trackbacks) and uncheck this box.
- Leverage Browser Caching : Another common issue happening with most wordpress websites is the issue of Leverage Browser caching.You need to configure your server setting the header caching and apply them to all cacheable static resources, your site will appear to load much faster. The .htaccess file is located in the root folder of your website. You need to add the following code in the .htaccess file of your website.
- Use Content Delivery network (CDN) : A content delivery network (CDN) is a system of distributed servers (network) that deliver web pages and other Web content to a user based on the geographic locations of the user, the origin of the webpage and a content delivery server.
A CDN stores the static files in a cache and delivers these files to the users of the website in such a way that the users of this website can easily download these files.
## EXPIRES CACHING ##
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 text/html “access 1 month”
ExpiresByType application/pdf “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 1 month”
## EXPIRES CACHING ##