A few months ago Google announced that it has decided to take into account the speed of the site in the ranking of search results, in addition to the 200 other factors that determine the position in the search results. This move by Google makes us all worry about the speed to optimize a website. The optimization of the speed not only makes Google happy, but it makes your readers feel more comfortable with your site, they are more participatory, plus save bandwidth and hosting costs.
There are different ways to optimize the speed of WordPress, here I leave you a guide as complete as possible for your WordPress site is as fast as lightning.
Before you start optimizing your site, you need to know which parts of it have to improve, as it takes to load and what is the total weight of it. To do this I recommend Pingdom or use tools like Firebug (for Firefox) with plugins PageSpeed or YSlow. With these tools you will see the progress of the changes that go by, that is, lower the loading time of your website.
1 .- Choose a Quality Hosting
Maybe what I’m saying may sound obvious, but do not expect your site to run as a meteor from the Formula One if your site is hosted on a shared server of poor quality. When choosing a good hosting must be very careful, because that depends on the speed of your site and satisfaction of your readers.
As I said on several occasions, this blog is hosted on HostGator and have not had any problems with them, I recommend it widely. Anyway here I let some other hosting providers I recommend:
* Blue Host
2 .- Keep updated WordPress
Be updated with the latest version of WordPress is very important. In each update, in general, there are many performance enhancements. WordPress developers do not release new versions just for fun, but because with each update WordPress better and better.
3 .- Eliminate unnecessary plugins and other updates
If you’re using more than 15 plugins to your blog, then you need to check whether you really need them all. If you do not need, delete them. Also make sure you keep the plugins, are updated to the latest version.
4 .- Optimize your Database
You will be surprised how much you can decrease the load time of your website, simply optimizing your database. You can do this manually or you can do with plugins.
If you want to do it the easy way to install the plugin or WP Optimize Optimize DB. If you want to manually do the following:
Optimize your Database
1. You must open the database manager PHPMyAdmin.
2. Select your databases.
3. Clicking “Check All / as” at the bottom of the page.
4. Choose the option “Optimize table” in the drop-down list next to it.
5. And presto!
5 .- It catches your Database
Queries to the database are made every time a person visits your blog. The cache is vital to reduce the number of consultations and also increase the speed of your blog. To minimize your queries to the database easily need to install the Cache DB Reloaded plugin.
6 .- Disable and Delete the Post Reviews
Post Revisions were made from WordPress 2.6. but they are really useful when a blog is managed by several authors and is used to view changes to an article and the date of the exchange or return an item to an earlier version. However, this will make your database is full of reviews of articles, making it heavier. If you do not need this feature, you must add the following line to the config.php file of your WordPress installation:
define (‘WP_POST_REVISIONS’, FALSE);
If you want to delete all revisions of your database you must execute the following query:
DELETE a, b, c FROM wp_posts to
Wp_term_relationships LEFT JOIN b ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id)
WHERE a.post_type = ‘revision’;
7 .- Disable Hotlinking
The hotlinking, also known as bandwidth theft is when someone copies and paste the URL of your image by putting your pictures on your own site, which makes the load on your server up a lot.
There are several ways around this by putting the following into the file. Htaccess, located in the root folder of your server, as follows:
# Disable hotlinking of images
RewriteCond% (HTTP_REFERER)! ^ $
RewriteCond% (HTTP_REFERER)! ^ Http (s )?://( www \.)? Stroke-web.com [CN]
RewriteCond% (HTTP_REFERER)! ^ Http (s )?://( www \.)? Google.com [CN]
RewriteCond% (HTTP_REFERER)! ^ Http (s )?://( www \.)? Feeds2.feedburner.com/TrazosWeb [CN]
RewriteRule \. (Jpg | jpeg | png | gif) $ – [NC, F, L]
You can enable your feed, because otherwise your feed readers will not see any image.
8 .- Use a WordPress Plugin Cache
Using a plugin like WP Super Cache Cache Cache Total W3 or makes you save a copy in html of your blog and that this copy is the one you show your readers. This greatly increases the loading speed of your website.
9 .- Optimize your images
If you edit your images in Photoshop, always use the “Save Web torque and devices, or use some of the tools to optimize your images that I present below:
* Online Image Optimizer
* Image Optimization SiteReportCard
* Shrink O’Matic
10 .- Compress your content
If the version of your server is Apache 2.x, you can use the mod_deflate as well:
11 .- Add all your cache static content
Add Headers End (Expire Headers) and Cache Control headers (Cache-Control Headers) have performed less HTTP requests which will reduce the loading time of your website. Expiration Headers are usually used with images, but can be used with style sheets, scripts, flash components, etc.
Here I leave an example of what you should put in your file. Htaccess to implement these headers:
# BEGIN Expiry Headers
END # End Headers
# BEGIN Cache-Control Headers
# END Cache-Control Headers
* WP CSS: This is a WordPress plugin for compressing CSS files from your blog.
* By CSSOptimizer.
* CSS Compressor
* Clean CSS