Your WordPress Slow????

wordpress

Long time no write technical blog and also write in english. As my English is poor, I prefer write my blog in Chinese. But for the technical blog, it hard to write in Chinese especially the code, term and etc.  So this post will be in English, hope you no mind if you see any grammar/spelling  mistake 😉 .

Lets start! I believe that if you have your own hosting account, you should know WordPress before, WordPress is the  Blog Tool or Publishing Platform. It can easily installed, use, customize, and popular among blogger. Althought it so user friendly, but it can easily become slow and slow because some user have active many plugin, customize themes, and etc. So below is some tip you all can look into if your WordPress are slower and slower day by day ( don’t blame your hosting provider if your site is slow 🙂 check wherther is cause by your WordPress first)

Basically, there is three area that you all need to check such as Plugin, Database, and WordPress related.

wordpress-plugin

Plugin

  • Use only necessary plugins

The unnecessary plugins will cause your site slow loading. So, less plugin more speed. Unless you have your own high end dedicated server 🙂

  • Say No to widgets and use pure code in your sidebar.

There is code examples for showing recent posts, categories, tags, and etc on your sidebar without use of any widgets. It because the Widget will make the loading speed drop

  • use WP-Supercache plug-in.

Probably you’re already using this plug-in, but for the ones who don’t you should know that it will greatly speed up your blog since it saves and stores static html pages of your blog and serves them to the browser without any heavy impact on your host.

mysql_database_host

Database

  • Remove extra tables in WordPress Database.

Login to phpMyadmin, open your blog database and you’ll see the table structure of your wordpress database. The default DB tables for wordpress are these ones:

* wp_comments
* wp_links
* wp_options
* wp_postmeta
* wp_posts
* wp_terms
* wp_term_relationships
* wp_term_taxonomy
* wp_usermeta
* wp_users

If you have some extra tables which belong to your plugin that you disable, delete them.

  • Clean up your WordPress Database.

Use the Clean Options wordpress plugin to clean up your wordpress database, it will erase unnecessary, redounded, orphaned records. Once again, remove it when you have clean your database 🙂 If you plugin is not functionnal after clean your database, you just need to reactive you wordprss plugin again

  • Repair and optimize your WordPress Database.

Go to phpMyadmin again, select your database check all the tables, and in the dropdown menu select repair. Then select the database again, check all the tables, and in the dropdown menu select optimize.

wordpress-logo-shine

WordPress Related

  • Change php code with html where applicable.

The point is that in the header (sometimes footer and sidebars) of your wordpress theme you have php strings that every time when your blog loads they call your blog name, location of favicon.ico, stylesheet, ping file, feeds, charset etc.

All these php requests are slowing down your blog so why not changing them to static html code.

For example the following code:

<link rel=”stylesheet” type=”text/css” media=”screen” href=”<?php bloginfo(’stylesheet_url’); ?>” />

Can be changed to:

<link rel=”stylesheet” type=”text/css” media=”screen” href=”http://domain.com/wp-content/themes/your-theme- folder-here/style.css” />

You can also:

* make your pingback URL static,
* make your feed URL’s static,
* you can remove the blog’s WordPress version,
* make your blog’s name and tagline/description static.

The easiest way to do this is to compare the actual header code of your blog with the outcome header code (right click, view source code in your browser). Look at the original php code and see what the results are in the outcome source code of your blog. By doing this you will realize which php lines you can change to static html lines.

  • Optimize Images.

Large image size is the thing that slows down many WordPress websites. Instead, take advantage of WordPress’ great thumbnail features and opt not to use the full-sized image. You can also optimize images before uploading them to WordPress.

Note: Please backup everything before you try the step as above. Backup everything first, you never know what will happen.

wpwebhostbanner

“Your WordPress Slow????”的一个回复

发表评论

电子邮件地址不会被公开。 必填项已用*标注