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 large number of updates compared to previous versions, so it is best to upgrade to the latest version.
2. Delete unnecessary plug-ins and upgrade the plug-ins in use.
Delete your unused plug-ins from the web server. Simply deactivating plug-ins will still affect the speed of a website because WordPress will check to see if they are activated; in addition you It is important to keep the latest version of the plugin you are using. The plugin author releases a new version because they have modified the code to make the plugin work better.
3. Minimize PHP and database queries.
As mentioned in the article 4 Simple Ways To Speed Up WordPress, reducing PHP and database queries can reduce the burden 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 you replace some PHP with HTML, the browser will just read the HTML when the page loads.
For example: you can change<h1 id="title"><!--p bloginfo('name');--></h1> |
in the hedaer file
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
to save the images in the article to other places as much as possible, 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 the pictures in the website.
Although the Internet speed is constantly improving, it is necessary to reduce the size of the pictures as much as possible, of course, on the premise of ensuring the quality of the pictures.
7. Install the WP Super Cache plug-in
The WP Super Cache plug-in 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 spaces 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 the 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 cache plug-ins and uses less disk space.
10. Display page loading time
Insert a simple code at the appropriate location in the template to know how much time it takes to load the 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 plug-in is that it can effectively optimize and reorganize your WordPress database tables. The interface is simple and has only one button: Optimize Now.