WordPress Performance Optimization

WordPress performance out of the box (a new, blank installation) is fairly fast, but as you add content, themes & plugins, the performance typically drastically decreases. The options below are what we recommend for some basic optimizations for your WordPress site that can help decrease load times on your site. Before hand, there’s a few prerequisites we recommend for all WordPress sites:

1. Limit the number of plugins being used

This cannot be stressed enough. We typically recommend at the most, 10-15 WordPress plugins. Depending on what plugins you are using, this number could still be high. The quality of the plugin being used is also very, very important.

2. Bloated themes

The theme you choose can also play a large role in the performance of WordPress. there are good themes & there are bad themes. We recommend that you keep a close eye on the number of “features” included in your themes – generally, the lighter the theme is in terms of features/bells & whistles, the better the theme will perform.

gZIP Compression

## GZIP COMPRESSION ##
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
## GZIP COMPRESSION ##

Browser Caching

## BROWSER CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
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 application/pdf “access 1 month”
ExpiresByType application/x-javascript “access 1 month”
ExpiresByType application/x-shockwave-flash “access 1 month”
ExpiresByType image/x-icon “access 1 year”
ExpiresDefault “access 2 days”
</IfModule>
## BROWSER CACHING ##

Image Optimization

Before uploading images to your site, you want to ensure they are properly optimized for use on your website. This means the images should be as small in file size as possible without compromising the quality of the image.

Image Dimensions: Avoid uploading images that are larger than their display size. For example, if the display are on your site for the image in question is 300 x 300 pixels, don’t upload an image that is 800 x 800. Using html to scale the images uses additional resources which can increase the load time of your site.

WordPress Caching Plugin

We recommend using WP Super Cache as a caching plugin for WordPress. Based on testing & performance of customer use cases, we’ve seen the best performance yielded from WP Super Cache. We also recommend this plugin in addition to the above steps.

You can view our guide on installing WordPress WP Super Cache 

If WP Super Cache proves to be too complicated for you to use, you can consider looking at Cache Enabler. While this plugin is nowhere near as popular as WP Super Cache, it is the simplest caching plugin of its kind that even novice users will not have any trouble setting up.

Database and Other Optimization Measures

As your website grows, your database too grows. Post revisions, cached remarks, and other such data can make your WP database too large and cumbersome. This can slow down your website.

WP Optimize is a highly popular plugin that lets you clean up your database. It can remove unwanted spam comments, post revisions, transient options, and other orphaned metadata (such as tags that have zero posts under them).

For additional optimization, such as JavaScript and CSS minification, you should also look at Autoptimize. This plugin combines and minifies your website’s CSS and JS, making your site consume less server resources and load faster.

Bear in mind that you should always backup your website before making changes to the database.


 
  • Email, SSL
  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Related Articles

WordPress SMTP & Contact Forms

In this tutorial we’ll go over the steps to add an SMTP plugin to your WordPress site &...

How to reset WordPress admin password

There may be times when you’ve misplaced or forgotten your password to log into your WordPress...

Password Protect wp-login.php Against Brute Force Login Attempts

You can utilize .htaccess rules to password protect your wp-login.php file from brute force...

Default WordPress htaccess rules

Below, you can find the default htaccess rules for a WordPress website. # BEGIN...