Blog

25 Ways to Speed up WordPress Blog?

In this tutorial i am sharing a Tips & Tricks How to Speeding up and optimizing your wordpress site is not an easy process, it take a bit of time to make the changes properly and safely. But its worth if you can spend the time. The time taken will depend on your expertise in WordPress.

WordPress is a good CMS solution and even better blogging platform, but most sites using WordPress are not maximizing its potential. Performance is one of the important factor of a successful website. In this article we have compiled a list of useful tips, tricks, hacks, and plugins that can be used to speed up WordPress and boost it’s performance.

However If you are running a WordPress Blog here are top 4 must install plugin to optimize your site performance and make it load faster.

I am sure that if you can implement these steps properly it will definitely speed up your wordpress blog by a great amount.

Note: As always, with everything, you should backup your WordPress installation before making any code changes.

So lets start the Ultimate Guide To Make Your Site Super Fast

Install WordPress Plugins to Speed up WP Blog

1. WP Super Cache -Download WP Super Cache

Caching of files in the server is the best way to optimize a WordPress blog. This plugin generates a static HTML file from your PHP files and store in in the server. When a user visits your site, he will be serve with the static HTML file instead of heavy and dynamic PHP files thus making the process comparatively fast.

How ever do note that when you are in a process of applying any new modification to your blog like a new theme, widget or plugin don’t forget to disable the caching.

2. WP Minify – Download WP Minify

Minification is the practice of removing unnecessary characters from code to reduce its size thereby improving load times. The plugin reads all the JS and CSS files in your blog and pass it through the Minify engine and returns a consolidated, minified, and compressed script or style for WP Minify to reference in the WordPress header.

3. DB Cache -Download DB Cache

When ever a user loads any page in your blog he not only access the PHP and HTML files but also query your database from the serve for information. Thus to make this process fast this plugin caches every database query with given lifetime. Not only your blog will load faster it will use low server disk space and CPU resources.

4. WP Smush.it – Download WP Smush.it

Images are the element which take highest amount of time to load on a page.  We can not strip down all the images but surely optimize them to gain significant load time.

Smush.it is a very popular Yahoo service for web developers which optimizing images online by various methods like ripping meta data from JPEGs, optimizing JPEG compression and converting certain GIFs to indexed PNGs. This plugin uses the Yahoo API to optimize it in your blog itself.

25 Tips and tricks to speed Up WordPress

1) Remove Unnecessary PHP Queries and Database Access

Removing these avoidable php queries will lessen your server load and also make your site faster.

2) Remove Inactive Plugins

Its better to remove all those inactive plugins that you dont use. Also check for any plugins that you have activated but not using, these can eat up resources simply. So make the plugin directory clean and tidy. If you feel that you might want to use those deactivated plugin later on, then make a text document in the plugin directory with the list of plugins you need later and you can safely delete those plugins which are not needed now.

3) Using a  FREE CDN (Content Delivery Network)

Using a CDN network will improve your sites response time to a great extend. But normal users find it difficult to afford a CDN service. But there is a free alternative.

CoralCDN allows us to take full advantage of a powerful CDN without spending a dime. How to use it? Well, basically, just append `.nyud.net` to the hostname of any URL, and that URL will be handled by Coral.

4) Keep Your WordPress Version Up To Date

So its very necessary that you need to upgrade to the latest wordpress version to get the performance improvements and new features.

5) Compress the CSS Code

Compressing your CSS Code will make it’s size small and your browser can render it faster and that results in faster page load times. Compressing the CSS can be done in two ways.

6) Optimize the WordPress Database

  • For optimizing the wordpress database of your site, visit the cpanel of your hosting provider.
  • Use phpMyAdmin to optimize your database: Log in to phpMyAdmin, select all the tables, and then repair and optimize.

7) Compress & Combine Javascript Files

Try to reduce the javascripts as much as possible.

Javascript Compression Services

8 ) Reduce Image Sizes

The images can be compressed to a level without much loss in quality. You can use the WP Smush.it plugin for wordpress to compress the images. It will compress the images to a good extend and your site will load faster now.

9) Disable Hot Linking

his happens when others link your sites images in their articles and this puts load on your server. This not a big issue if one or two sites directly link your images, but if multiple sites uses this then it might create a headache.

10) The WordPress Super Cache Plugin

It has much better compressions and caching options than the super cache plugin and definitely save your websites bandwidth and improve your sites speed.

11) Combining Javascripts and CSS Files with PHP Speedy

HTTP requests can speed up the site greatly and the php speedy plugin will help you further by combining all the javascripts into one single file and all css files into a single one. Therefore in total the there will only be two files that are being requested.

12) Preloading the Page Contents

This is some thing that doesn’t improve the performance much but it enhances the page load by loading the page progressively. Move the css file link near the title in the header.php file.

13) Flushing the buffer

When users request a page in your site, it can takes around 200 – 500 milliseconds for the backend server to put together the HTML page. During this time the browser remains idle. The flush() function in php help you in loading the partially ready html response to the browser and it can start fetching the components, while the backend server is busy with the rest of the contents.

To inset the flush() function in your wordpress site, Open up the header.php file and find the</head> tag and insert the <?php flush(); ?> function right after it. You may see the eg below.

14) Using CSS Sprites Technique

It simply means combining all the images in the site into a single big image containing all of them and the browser loads the single big image and display the different images by usingbackground-position.

15) Add Header Expire To Static Contents

Adding an expiry time to static images can reduce further HTTP requests when loading other pages in the site. Adding an expiry time to the images in the site help in loading the pages faster.

Copy and Paste the Following Code in your .htaccess file.

ExpiresActive On
ExpiresByType image/gif A28800
ExpiresByType image/png A28800

ExpiresByType image/jpg A28800

ExpiresByType image/jpeg A28800

16) DB Cache Reloaded Plugin – Download DB Cache Reloaded Plugin For WordPress

The DB cache plugin works differently from the super cache plugin by optimizing your database alone. It caches WordPress’s MySQL queries to a file. This results in less space being used for caching and faster performance from the WordPress blog.

17) Choose a Good Web Host

This might seem like a very obvious one, but a lot of the times people try to save a few bucks and compromise quality. It is not worth it. Pay the extra few dollars and get a better web host. One that is reliable and have strong servers. We have a beginners guide at WPBeginner where we help you choose the web host for WordPress.

Some good and affordable web hosts:

17) . Split Long Posts in Several Pages

It is best that you split the post into multiple pages, so each page loads much faster, and you increase your pageviews. This is very easy and it is doable from the WordPress admin panel if your theme already has this function. When writing the post you just have to enter the following code when you want to split pages:

18) Use Excerpts and Limit the Count of Posts Displayed on Blog Page

You should never show full posts in the main blog page because you have 5 or 10 total posts on the same page. If each of your post is a list post and it is displayed in full text mode, then it will be very inconvenient for your users because the page will take immense amount of time and server resources to load. Therefore you must use excerpts and limit the count on how many posts are displayed.

In order to display excerpt, you must visit your index.php and find:

<?php the_content(__(‘(more…)’)); ?>

Then replace this with:

<?php the_excerpt(__(‘(more…)’)); ?>

19) Reduce the Use of External Websites and Scripts

Try to avoid relying on external scripts whether it is directly or through the plugin. Some plugins like MyBlogLog and others can take a lot of time to load depending on the server connection. They can often be the reason for page not loading properly if you are experiencing high traffic. To display widgets from top directories, alexa and others in your sidebar only slows your site down. Try to avoid it as much as you can.

20) Split Comments into Pages

Every site has few articles that went viral. These article generates tons of comments and they can consume enormous amount of server resource upon each visitor loading the page. Or maybe your blog is already popular and you are getting a good discussion going in your posts, then it is recommended that you paginate the comments to increase your site loading speed and save server resources. This can be done by going into Settings > Discussion in your WordPress Admin Panel.

21) Reduce the Number of Database Calls

Database calls make WordPress so dynamic, but sometimes you can live without it. By replacing simple text, you will be able to increase your WordPress speed. To give an example look at your header.php code which looks something similar:

<html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>>
<head profile=”http://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”
<?php bloginfo(‘html_type’); ?>;
charset=<?php bloginfo(‘charset’); ?>” />

22) Cutting Down the Size of MySQL Database

When writing posts, now WordPress actually autosave which even after the post is saved, the revision articles stay in the MySQL Database. Bigger database also bring the site load time down. If you are not using Revisions then you can remove them by adding the following code to your wp-config.php

define(‘AUTOSAVE_INTERVAL’, 500 ); // seconds
define(‘WP_POST_REVISIONS’, false );

23) Display Page Loading Time and Queries

In order for you to track how well your site is doing, it is wise to add this code in the footer. If it is a low number then it means your site is at its potential. Just paste this code in order to display page loading time and queries:

<?php echo get_num_queries(); ?> queries in <?php timer_stop(1); ?> seconds.

24) Caching

Utilize WordPress Object Cache

By inserting this simple code into your wp-config.php file, you can set WordPress to begin caching database queries rather than initiating new server requests on each load. You don’t have to understand why this works, it just will.

1. // Enable the WordPress Object Cache:
2. define(ENABLE_CACHE, true);
Read more on this topic:

By reducing the number of queries, you’ll both increase the speed of your site, and reduce the server resources that are consumed each time you receive a visitor. As a result, you’ll find that it will make your web host much happier in the event of a huge traffic spike.

25) Keep Your Code Clean

You can validate your code using the W3C Validator. It might seem snobby to have “standards” on the web, but the truth is, there are standards for a reason. If everyone met the standards, browsers would always know how to display the information they’re given. Use the tool at W3C to validate your code and fix any errors. This can be a painstakingly long process but it’s well worth the end result.

Coding errors will slow your load time, especially if images that are referenced but don’t exist. Use a bug tool like Firebug to identify coding errors and fix them.

So, if you know more ways to speed up wordpress, then please do share it, by commenting below.

UXgru

About UXgru

He is a user experience design & strategy consult specializing in designing for a range of interfaces: from corporate websites to rich content brand sites; from 'on-premise' apps to SaaS apps; from e-commerce portals to social networking sites.

Subscribe

Even if you don't visit my site on a regular basis, you can get the latest posts delivered to you for free via RSS or Email:

1 Awesome Comments So Far

Don't be a stranger, join the discussion by leaving your own comment
  1. Travailler a domicile
    January 8, 2011 at 2:50 pm #

    Cool. That’s seems good.

Leave a Comment

Remember to play nicely folks, nobody likes a troll.

  • Buy generic cialis usa Without Prescription Doctor. Best Prices. Best Online.
  • Buy Cheapest how to buy viagra online without prescription Now Discount Pharmacy Online. Pharmacy Store.
  • Buy Cheap get sample cialis Now Cheap Prescription Drugs. Free Viagra Pills!
  • Buy Cheap sildenafil citrate online no prescription Online Free Viagra Pills! Buy Medications Online.
  • Buy Cheap is there generic cialis Now Best Online. No Prescription Online Pharmacy.
  • Buy Cheap online pharmacy no prescription viagra jelly Online Top Online Pharmacy. Best Drugstore.
  • Buy Cheap viagra buy no prescription Now WorldWide Shipping. Top Online Pharmacy.
  • Buy Cheap tadalafil prices uk Online Cheap Prescription Drugs. Pharmacy Store.
  • levitra professional without prescription uk discounts Online Without Prescription Cheap Meds Without Prescription.
  • Buy Cheap levitra mail no prescription Online Pharmacy Store. Discount Online Pharmacy.
  • Buy Cheapest when to take cialis 5mg Now Buy Medications Online. Free Viagra Pills!
  • Buy Cheap can you buy viagra online Online 24/Internet)(safe Pharmacy. Low Prices.
  • Buy Cheapest generic viagra australia reviews Online Low Prices. Special Prices For generic viagra australia reviews!
  • Buy Cheapest cheapest generic cialis Online Best Prices. 24/Online Pharmacy.
  • Buy Cheap generic viagra australia reviews Online Pharmacy At The Best Price! Best Drugstore.
  • Buy Cheapest generic viagra cheapest Now Pharmacy Store. Discount Online Pharmacy.
  • Buy Cheap cheap cialis buy pharmacy online now Online Top Online Pharmacy Supplier. Low Prices.
  • Buy Cheap medicine levitra 20mg Now Special Prices For medicine levitra 20mg! Best Internet.
  • Buy Cheap how much is viagra at costco Now Best Internet. 100% Satisfaction Guaranteed.
  • Buy Cheapest how to get viagra without a doctor Online Best Drugstore. Guaranteed Shipping.
  • Buy Cheap side effects from viagra and alcohol Now 100% Satisfaction Guaranteed. Best Drugstore.
  • Buy Cheap cheap viagra for sale online paypal Now Best Internet. 100% Satisfaction Guaranteed.
  • Buying Cheapest compare generic viagra prices. Offshore Pharmacy, Good Prices. Low Prices.
  • Buy Cheap viagra trial Now 24/Internet)(safe Pharmacy. Best Internet.
  • Buy cialis safety Without Prescription Doctor. Pharmacy At The Best Price!
  • Buy Cheapest when to take cialis 5mg Now Buy Medications Online. Best Prices.
  • Buy Cheapest super viagra review Online Cheap Prescription Drugs. Best Online.
  • Buy Cheap tadalafil generic cialis Online WorldWide Shipping. Top Online Pharmacy.
  • Buy Cheap how long does it take for cialis to work Now Best Prices. Cheap Meds Without Prescription.
  • Buy Cheap buy cialis without prescription Online Discount Pharmacy Online. Best Drugstore.
  • Buy Cheapest compare generic viagra Online Best Prices. Online Prices For compare generic viagra!
  • Buy Cheapest ed pills that work Online Online Prices For ed pills that work! Best Prices.
  • Buy Cheap puerto rico cialis pictures Now Low Prices. Top Online Pharmacy Supplier.
  • Buy Cheap viagra ad pictures Online Free Viagra Pills! Cheap Online Pharmacy.
  • Buy Cheapest viagra cialis levitra online Online Best Online. Cheap Prescription Drugs.
  • Buy Cheapest buying levitra professional pharmacy without prescription Online Best Prices. Cheap Pharmacy Online.
  • Buy Cheap comments viagra without a prescription Now No Prescription Needed. Online Medical Shop.
  • Buy Cheap tadalafil prices uk Now 24/Internet)(safe Pharmacy. Pharmacy Store.
  • Buy Cheap sildenafil prices Now Discount Online Pharmacy. Free Viagra Pills!
  • Buy Cheap generic cialis tadalafil Now Best Internet. Internet Prices For generic cialis tadalafil!
  • Buy buy viagra cialis levitra online prescription Online Without Prescription. Pharmacy At The Best Price!
  • Buy Cheap best alternative viagra Now Low Prices. Bonus Pills And Reorder Discounts!
  • Buy Cheapest dose levitra Online Cheap Pharmacy Online. Low Prices.
  • dose of levitra Online Without Prescription Best Internet. Pharmacy Store.
  • cheapest viagra online Online Without Prescription Best Internet. Best Prices.
  • Buy problems levitra Online Without Prescription. Pharmacy At The Best Price!
  • Buy Cheap sildenafil generic canada Now Discount Online Pharmacy. Guaranteed Shipping.
  • Buy Cheapest cheapest generic cialis Online Free Viagra Pills! 24/Online Pharmacy.
  • Buy Cheap cialis online canada no prescription Now Cheap Online Pharmacy. Cheap Pharmacy Online.
  • Buy Cheap dose of levitra Now Buy Medications Online. 24/Online Pharmacy.
  • Buy Cheap levitra mail order Online Best Online. Discount Pharmacy Online.
  • Buy Cheapest viagra next day Now Order Cheap Meds Without Rx. Best Internet.
  • Buy Cheap morning viagra Online Buy Medications Online. Pharmacy Store.
  • Buy Cheap viagra does not work Now Cheap Prescription Drugs. Top Online Pharmacy.
  • Buy Cheapest how long does cialis last Now Top Online Pharmacy. Best Drugstore.
  • Buy Cheapest cheap viagra for sale online paypal Online Best Prices. Cheap Pharmacy Online.
  • is ordering viagra from canada legal without prescription Online Without Prescription Top Online Pharmacy. Low Prices.
  • buy cialis online next day shipping Online Without Prescription Free Viagra Pills! Best Online.
  • buy cheap levitra blog Online Without Prescription WorldWide Shipping. Best Prices.
  • Buy Cheapest cialis next day delivery without a prescription Online Best Internet. Guaranteed Shipping.
  • Buy Cheapest viagra and alcohol side effects Now Discount Pharmacy Online. Low Prices.
  • Buy Cheap trial viagra Online Best Prices. Discount Online Pharmacy.
  • Buy Cheapest jelly viagra Now We Can Offer You Visit Our Online Pharmacy.
  • Buy Cheapest what is levitra 20 mg Now We Can Offer You Visit Our Online Pharmacy.
  • Buy Cheap dose levitra Online Cheap Online Pharmacy. WorldWide Shipping.
  • Buy Cheapest using levitra Online Pharmacy Store. Online Medical Shop.
  • Buy Cheap viagra logo Now Best Online. Safe And Secure Payment System.
  • Buy levitra 100mg pills Online Without Prescription. Best Internet. Low Prices.
  • Buy Cheapest medicine levitra 20mg Online Top Online Pharmacy. Best Prices.
  • Buy Cheapest levitra results Now Low Prices. Cheap Prescription Drugs.
  • Buy Cheapest free sample prescription for viagra Online Cheap Pharmacy Online. Low Prices.
  • Buy Cheapest generic cialis without prescription Online Best Drugstore. Online Medical Shop.
  • Buy Cheap well does viagra work Online Best Prices. No Prescription Needed.
  • Buy Cheap generic viagra without prescription Online Best Prices. Discount Online Pharmacy.
  • Buy Cheapest online pharmacy no prescription viagra jelly Now Best Online. Pharmacy At The Best Price!
  • Buy Cheap sildenafil tablets dosage Online Best Internet. Special Prices For sildenafil tablets dosage!
  • Buy Cheap cialis erectile disfunction Now No Prescription Needed For Drugs. Low Prices.
  • Buy Cheap pfizer uk Online Cheap Pharmacy Online. Guaranteed Shipping.
  • Buy Cheapest viagra cialis forum Online Best Prices. Discount Pharmacy Online.
  • Buy Cheap cialis from india online pharmacy Online WorldWide Shipping. Cheap Pharmacy Online.
  • Buy Cheap generic levitra vardenafil information Now Top Online Pharmacy. Cheap Pharmacy Online.
  • Buy Cheap cheapest place buy viagra online Online Best Prices. Drugs, Health And Beauty.
  • Buy Cheapest discount generic viagra india Online Cheap Prescription Drugs. Best Prices.
  • Buy Cheap cialis viagra levitra Online Best Prices. Cheap Prescription Drugs.
  • Buy Cheapest generic buy viagra online cheap Online Best Internet. Discount Pharmacy Online.
  • Buy Cheapest blue prescription pills Online Cheap Online Pharmacy. Best Drugstore.
  • Buy Cheapest cost cialis 20 mg Online Top Online Pharmacy. Best Prices.
  • Buy Cheapest canadian generic cialis Now Cheap Online Pharmacy. WorldWide Shipping.
  • Buy Cheap cialis online without prescription-canada Online Best Drugstore. Cheap Prescription Drugs.
  • Buy Cheap uses for viagra Now The Largest Internet Pharmacy. Best Prices.
  • Buy Cheap is there generic viagra Online Best Online. No Prescription Needed.
  • Buy Cheapest where can i buy viagra? Now Discount Online Pharmacy. Best Prices.
  • Buy Cheap where to buy levitra online Now Best Drugstore. Drugs, Health And Beauty.
  • Buy Cheapest generic viagra work Now Best Online. Pharmacy At The Best Price!
  • Buy Cheapest generic viagra uk paypal Online Buy Medications Online. Best Online.
  • Buy Cheap generic viagra prices 50 mg Now Cheap Pharmacy Online. Top Online Pharmacy.
  • Buy Cheapest how much is viagra cost Now Buy Medications Online. Free Viagra Pills!
  • Buy Cheapest taking 2 20 mg cialis Online Best Prices. Cheap Pharmacy Online.
  • Buy Cheapest levitra do for men Online Internet Prices For levitra do for men! Low Prices.
  • Buy Cheapest cialis dosage when to take Online Pharmacy Store. Cheap Online Pharmacy.