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


1. Select a good host

Try not to use a free host or a shared host (GoDaddy, bluehost, etc. so-called unlimited bandwidth, unlimited sites and other hosts)
First of all, your domain name and your host is best in an IDC where, if not, it is recommended that you use a good reputation of the DNS service providers, so that the domain name to the fastest resolution to the host, this is not the focus, the focus is your server/host space should be fast, how can fast? CPU configuration, CPU usage, physical memory size, disk type, and I/O performance of the disk (including the disk used by the MySQL database server), MySQL response speed, and MySQL concurrency, all affect the fast and unpleasant nature of the site, and it is the physical impact.

2. Choose a faster theme

What kind of theme can be faster? Intuitively, themes that contain as few php, JS, CSS, and font (font or icon fonts) as possible will be better. From the code point of view, it would be nice to have a properly coded theme and load the correct file on the correct page.

3. Select a cache plugin

It is recommended to use W3 total cache or WP Super cache, which is free, but very good, and I personally prefer the W3-cache, because it supports: page caching, HTML compression, object caching, database caching, client browser caching, and CDN.

4. Using a CDN

Foreign words, cloudflare good, domestic words, accelerated music good.

5. Enable gzip

If the server supports it, Gzip enabled, and the cache plugin W3 total caches support you to enable this.

6. Use a well-coded plugin

WordPress has countless plugins, but not all plug-in code is well-coded, which requires you to determine which plugins are right for you. The most intuitive way is: When you install a 3-star plug-in from the WordPress plugin directory, you should carefully understand the code situation! How do you know it?

7. Be careful to update your themes and plugins in a timely manner

Timely update their WordPress theme and plugin, not only to improve the security of their WordPress site, and some updates are for performance, which will be improved performance.

8. Optimizing the Database

You can use plugins such as wp-optimize or Wp-dbmanager to optimize your database, which can remove unapproved spam comments, articles in the Recycle Bin, automatically saved drafts, or rollback versions of articles. Of course, the best way is that you can access your database yourself and execute SQL statements to do this, if you think you're familiar with SQL and WordPress.

9. Optimize the uploaded images

For any web site, the image is a more important element on the page, but the size of your diagram should match the size of the largest container you use for this graph, rather than the original ecological p-map or a photo directly uploaded. For example: you want to upload a picture, the maximum container width of this picture is 948px, the width of the image itself is 1600px, you should deal with this picture, so that its maximum width is 948px on the line, which can significantly improve the page loading speed of the graph, Reduce load times and conserve server resources and bandwidth.

Another situation is: the maximum width of the graph you upload is the same as the width of the largest container you are using to change the image, in which case it is recommended that you use smush.it and the WordPress plugin based on it to process the uploaded images, of course, you can also be used similar to lossless image compression Master such as desktop software (image compression software recommended) or Jpegmini such as online sites to compress your pictures.

http://www.bkjia.com/PHPjc/1073127.html www.bkjia.com true http://www.bkjia.com/PHPjc/1073127.html techarticle WordPress website Performance Optimization Guide, wordpress performance Optimization 1. Choose a good host try not to use free host or shared host (GoDaddy Ah, bluehost ah, etc. so-called infinite bandwidth ...

  • Related Article

    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.