Tips Wordpress Optimization

Date April 14, 2008

Stumble it!

Enter your email address & Get Updates:

If you are in a shared hosting this for sure will help the performance of your blog and even to not getting kickout from your hosting company because the overuse their server resources. Before starting this article you can read High Traffic Tips For Wordpress. You can read also the original article on Wordpress.org:

Plugins

The first and easiest way to improve WordPress performance is plugins. Deactivate and delete any unnecessary plugins. Try selectively disabling plugins to measure server performance. Is one of your plugins significantly affecting your site’s performance?

Then you can look at optimizing plugins. Are plugins coded inefficiently? Do they repeat unnecessary database queries? WordPress has its own caching system, so generally speaking, using functions like get_option(), update_option() and so on will be faster than writing SQL.

Themes

After plugins come theme optimization. Does your theme use unnecessary graphics? Does it use graphics where text would do just as well? Look at how many files are required for the average page on your site and look for ways to reduce this. For example, combine multiple CSS files into a single, optimized file. Search for topics like css optimization and javascript optimization for more info on this.

Can static values be hardcoded into your themes? For example, your site charset, site title, and so on. Can you hardcode menus that rarely change? Avoiding functions like wp_list_pages() for example. This will mean you have to edit code every time you make changes, but for generally static areas, this can be a good tradeoff.

Static Content

Any static files can be offloaded to another server. For example, any static images, javascript or CSS files can be moved to a different server. This is a common technique in very high performance systems (Google, Flickr, YouTube, etc) but can also be helpful for smaller sites where a single server is struggling. Also, moving this content onto different hostnames can lay the groundwork for multiple servers in the future.

Some web servers are optimized to serve static files and can do so far more efficiently than more complex web servers like Apache, for example publicfile or lighttpd.

Multiple Hostnames

There can also be user improvements by splitting static files between multiple hostnames. Most browser will only make 2 simultaneous requests to a server, so if you page requires 16 files they will be requested 2 at a time. If you spread that between 4 host names they will be requested 8 at a time. This can reduce page loading times for the user, but it can increase server load by creating more simultaneous requests.

Offloading images is the easiest and simplest place to start. All images files could be evenly split between three hostnames (assets1.yoursite.com, assets2.yoursite.com, assets3.yoursite.com for example). As traffic grows, these hostnames could be moved to your own server. Note: Avoid picking a hostname at random as this will affect browser caching and result in more traffic.

Likewise any static javascript and CSS files can be offloaded to separate hostnames or servers.

Feeds

Your feeds can quite easily be offloaded to an external service. Feed tracking services like FeedBurner will do this automatically, the Feedburner servers will handle all the feed traffic and only update the feed from your site every few minutes. This can be a big traffic saver.

Likewise you could offload your own feeds to a separate server (feeds.yoursite.com for example) and then handle your own feed stats / advertising.

Free Hosting Services

It may be possible to host some of your files on external servers for free. For example, popular image hosting web sites like flickr provide image hosting at no cost. Even offloading your most popular images to a free service could significantly reduce the impact on your main server.

However, there is a very important issue to consider when using a free service to offload your images. Since most of the popular services are actually photo sharing sites, copyright becomes a concern. Be sure to read the service disclaimer and decide if it suits you. Moreover, you may not want your images exposed to the users of the photo sharing site.

Consider that free image hosting services are recently becoming a less viable choice since traffic from them is often blocked by corporate networks.

Commercial Services

Amazon S3 is a dedicated static file hosting service on a pay-per-usage basis. With no minimum costs, it might be practical for lower traffic sites which are reaching the peak that a single server can handle.

SteadyOffload offers a convenient and subtle mechanism to offload static content including images, documents and other binary data. Rather than having to upload files, subscribers’ static content gets mirrored transparently to the SteadyOffload cache servers. Additional features such as remote image manipulation and thumbnail creation are provided. On a pay-as-you-go model, subscribers only pay for the bandwidth they utilize.

Server Optimization: This only works if you have control in your server, that means if you have a VPS or a Dedicated server.

DNS: If you host your DNS on external servers this will reduce the load on your primary web server. It’s a simple change, but it will offload some traffic and cpu load.

Web Server: Your web server can be configured to increase performance. There are a range of techniques from web server caching to setting cache headers to reduce load per vi

Want One of the Cheapest and Affordable Hosting?



What Next?


 Subscribe To GoogleLady

 Digg It

 Save This Page

 Sphinn It

 Stumble it!

 Favorite This Post

 

Get Updates In Your Email

4 Responses to “Tips Wordpress Optimization”

  1. Kania said:

    Thank you for the tips!

  2. Computer jobs said:

    Very good information :) I see there are realy useful tips. I am going to use some

  3. Jamie said:

    Great wordpress tips here… I must look to see if I am utilising them all…lol

    Bookmarking your blog too, I will be back often..

    Thanks

  4. Jim said:

    SteadyOffload has recently released a special WordPress plugin for seamless integration: WP-Offload.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>