You can test your pagespeed here . Just add your site url and hit the analyze button.
NOTE: Remove unnecessary plugins and don’t use google ads (adsense) when testing (you can add them after that).
The list of speed recommendations:
- we recommend that you use WP Super Cache with default settings.
- you can also use the APC full page cache if you have a lot of ram on your server
If you have a dedicated server / VPS:
- make sure that you have APC installed or another ‘op cache’ for PHP. This will reduce your server response time. We have received some reports that the accelerator has some problems in some specific configurations with our theme and Nginx
- make sure that you have compression enabled on your site for HTML/JS/CSS but not for images
- Leverage browser caching https://developers.google.com/speed/docs/insights/LeverageBrowserCaching Google PageSpeed requires that you set an expiring cache of 7 days or more
If you are on a shared hosting or a low power VPS, please update to a more powerful server for better speeds.
You could also check the WordPress official optimization guide here.
Before you make any changes to your site please backup the files on which you intend to apply the modifications. In this case, we’re going to modify the .htaccess file so I advise that you save a copy of the file on your hard-drive before you start modifying it, if something goes wrong you can use it to return to the previous state.
1. Enabling Gzip compression
This will compress the HTML and CSS and will improve the page loading speed and reduces bandwidth usage.
The setup is different from one server to another so you may have to look on your host instructions section to see how you can enable it on your site.
The theme demo server is set like this:
<IfModule mod_deflate.c> <filesMatch "\.(js|css|html|php)$"> SetOutputFilter DEFLATE </filesMatch> </IfModule>
2. Set the Leverage Browser Caching
By setting this you’ll tell your visitors browsers to remember (caching) some of your website resources that you don’t change so often (like the logo or the CSS/JS libraries, posted images, etc.) and only refresh them after a defined period of time.
To set it you have to add something like this on your .htaccess file.
NOTE: the setup may differ based on what resources you want to include.
Setup from the theme demo server:
3. Optimize images
Images are one of the largest resources on your pages and the larger they are the longer it will take to download slowing the page loading speed.
To reduce their size and increase the page loading speed image compression and optimization is required. There are plenty of guides our there on how you can optimize the images (using software like Photoshop or similar).
Add the following code at the end of the functions.php which is located in the theme folder, the code will automatically compress each thumbnail to 50%:
add_filter( 'jpeg_quality', create_function('', 'return 50;' ) );
After you add the code you need to regenerate the thumbs, for that you could use the Force Regenerate plugin.
The value 50 stands for 50% if you want a better compression or better quality modify it and regenerate the thumbs. Experiment until you get the optimal value.
4. Use a cache plugin (WP Super Cache)
The plugin installation and configuration is presented here – link
5. Plugin Load Optimization (optional – advanced)
Look for methods which allow you to control plugins, for Contact Form 7 check this one.