WordPress website performance optimization guide, wordpress performance optimization-PHP Tutorial

Source: Internet
Author: User
Tags w3 total cache website performance wordpress performance optimization
WordPress website performance optimization guide, wordpress performance optimization. WordPress website performance optimization guide, wordpress performance optimization 1. if you select a good host, try not to use a free host or shared host (Godaddy, Bluehost, and so on, the so-called unlimited bandwidth WordPress website performance optimization guide, wordpress performance optimization

1. select a good host

Try not to use free hosts or shared hosts (such as Godaddy and Bluehost)
First of all, it is best to place your domain name and your host in an IDC. if not, we recommend that you use a well-known DNS service provider to resolve the domain name to the host as quickly as possible, this is not the point. The point is that your server/host space should be fast enough. how can it be fast enough? CPU configuration, CPU usage, physical memory size, disk type, and disk I/O performance (including the disk used by the Mysql database server), Mysql response speed, and Mysql concurrency, will affect the speed and unhappiness of the website, and is physical.

2. select a faster theme

What kind of theme can be faster? Intuitively, theme performance will be better with as few php, js, css, and font (font or icon font) files as possible. From the code point of view, it is better to encode the subject properly and load the correct file on the correct page.

3. select a cache plug-in

We recommend that you use W3 Total Cache or WP Super Cache, which is free of charge, but they are good. I personally prefer W3 Total Cache because it supports: page cache, HTML compression, object cache, database cache, client browser cache, and CDN.

4. use CDN

CloudFlare is good in foreign countries; acceleration is good in China.

5. enable Gzip

If the server supports Gzip, you can enable the preceding Cache plug-in W3 Total Cache.

6. Use a well-coded plug-in

WordPress has countless plug-ins, but not all plug-in code is well-coded. you need to determine which plug-ins are suitable for you. The most intuitive way is: when you install a plug-in of less than 3 stars from the Wordpress plug-in directory, you should carefully understand its code! How do you know this?

7. update your themes and plug-ins in time.

Updating your WordPress themes and plug-ins in time not only improves the security of your Wordpress website, but also improves the performance of some updates.

8. optimize the database

You can use plug-ins such as WP-Optimize or WP-DBManager to Optimize your database. these plug-ins can delete Unaudited spam comments and articles in the recycle bin, the automatically saved draft or article rollback versions. Of course, the best way is to access your database and execute SQL statements to perform these operations, if you think you are familiar with SQL and Wordpress.

9. optimized uploaded images

For any website, images are important elements on the page, but the size of your image must match the maximum container size of the image you use, instead of uploading a picture or a picture of the original ecology. For example, if you want to upload an image, the maximum container width of the image is 948px, and the width of the image itself is 1600px. you should process the image, the maximum width of the image is 948px, which can significantly increase the loading speed of the webpage where the image is located, shorten the loading time, and save server resources and bandwidth.

Another scenario is that the maximum width of the image you upload is the same as the maximum container width of the modified image. in this case, we recommend that you use Smush. it and its Wordpress plug-in can process uploaded images. of course, you can also use desktop software similar to lossless image compression Masters (recommended for image compression software) or online websites such as mini to compress your images.

Tip 1. select a good host and try not to use a free host or shared host (Godaddy, Bluehost, and so on). The so-called unlimited bandwidth...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.