Website performance is a key factor in any successful website. Now that WordPress is becoming more popular than ever, here are 11 tips to improve WordPress speed and performance that may be useful to you.
1. Upgrade to the latest version of WordPress (except beta version)
WordPress 2.7 has a lot of updates compared to previous versions, so it’s best to upgrade to the latest version.
2. Delete unnecessary plug-ins and upgrade the plug-ins in use.
Remove your unused plugins from your web server. Merely deactivating plugins will still affect the speed of a site, as WordPress will check to see if they are activated; also you must keep the latest version of the plugins you are using, as put out by the plugin author. The new version is because they have modified the code to make the plugin work better.
3. Minimize PHP and database queries
In the article 4 Simple Ways To Speed Up WordPress, it is proposed that reducing PHP and database queries can reduce the load on the website server. Every time a web page is loaded, if the browser has already performed any PHP queries, it will increase the time you wait to open the page. If some PHP is replaced with HTML, the browser will just read the HTML when the page loads.
For example: you can add the
| <h1 id="title"><!--p bloginfo('name');--></h1> |
Replace with
| <h1 id="title" lang="PHP">you blog name</h1> |
4. Optimize and repair your database from myPhpAdmin
You should log in to your myPhpAdmin frequently to optimize your database. Find your WordPress DatabaseTables, select the checkboxes for all tables, select Optimise Tables Option and repair. You will be surprised that this trick may help you save more than 10% of database space.
5. Use a reliable image hosting service
If possible, save the images in the article to other places, such as Google Picasa, Flickr, etc. rather than uploading it to your server. Doing this allows the web server to reduce a lot of its average CPU load/storage requirements.
6. Optimize images on your website
Although Internet speeds are constantly improving, it is necessary to reduce the size of pictures as much as possible, of course, on the premise of ensuring picture quality.
7. Install the WP Super Cache plugin
The WP Super Cache plugin allows your WordPress to generate static HTML pages. When you visit the website, what you see is the HTML file generated in your WEB server, instead of repeatedly letting the server process the PHP script.
8. Install the WP CSS plugin
The WP CSS plugin gzips whitespace in your CSS files, which enables you to safely @import CSS files without worrying about what will happen on the user side. You can also set the cache time, and add CSS files to specific pages or articles.
9.Install DB Cache plug-in
The DB Cache plug-in can cache every database query for life. Its advantage is that it is much faster than other HTML caching plug-ins and uses less disk space.
10. Display page load time
By inserting a simple code at the appropriate location in your template, you can find out how much time it takes to load a web page. This little tip is a great way to help you understand how to optimize your WordPress.
| <!--p echo get_num_queries();--> queries in <!--p timer_stop(1);--> seconds. |
11.Use Optimize DB
The role of the Optimize DB plugin is that it can effectively optimize and reorganize your WordPress database tables. The interface is simple, with only one button: Optimize Now