11 tips to help speed up WordPress Website

A few months ago, Marcus Taylor - writer of the article "How To Speed Up Your WordPress Website" on the website smashingmagazine.com sought to accelerate up a Wordpress Website. After setting up a few Wordpress Plugin and fixes a few minor glitches, the Website speed is significantly faster, from 1.61 seconds to 583 milliseconds, meaning that he can accelerate to more 276% with 12 small changes, including:

 

  • Identify the plugin make your site slow; 
  • Automatically compress web pages, images, JavaScript and CSS files; 
  • Clean up database; 
  • Configuring browser’s cache in good order;

Note: These changes will help your website improved speed significantly in case you have to apply the best foundation for your web site. So, how is a good foundation?

I. GOOD FOUNDATION TO DEVELOP YOUR SITE 

These improvements will not help you speed up your site if it is stored on the server slow or use cumbersome themes. Earlier you start a web site, and the first thing and important you need to do: take a powerful server and a good theme for your site.

1. CHOOSE A GOOD SERVER 

Webserver impacts the website speed. When you are flicking into a link on a web page, means that is you are sending a request to the waiter that the Web site. This process consists of three primary steps: 

Step 1: The browser sends  requests to access certain content to the web server 

Step 2: Webserver receives and processes the request 

Step 3: Webserver returns the content which the user desires.

Good server processes the requests quickly. And the story of two of Marcus customers will help us better interpret this idea. 

Two customers use the different hosting with two sites are alike. A user buys a cheap hosting service and a user use a hosting service with high quality of WPEngine. The swiftness of the sites is different. DNS response time (the time which the browser use to connect to the server) of WPEngine’s hosting is 7 milliseconds. And DNS response time of   cheap hosting is 250 milliseconds, slower than 35 times. 

So, the first lesson, please choose a dependable hosting provider with quality hosting packages suited to your necessities.

2. CHOOSE A GOOD THEME

A good theme is a theme which uses the clean code and demonstrate in a scientific manner, for speed and encrypted. Why does the theme affect the speed of the page? Because the server delivers the content that you want to find out (Step 3), Wordpress retrieve data from databases and employ to present content of a Web page. The host provides the pieces, Wordpress match the pieces up into a composite photograph and deliver to you. With the same photograph, but each theme uses the different grafting. Hence, how to know which theme is fast or no? 

There are many tools to help you examine and evaluate a Web page speed. A good tool helps you toevaluate website speed provided by Pingdom Web site. Read more at “Pingdom Tool - Test and evaluate Website speed”.

Take the link to the demo of the theme that you are planning to take and use Pingdom tool to test the download speed of  the demo page. If the test results show this theme has run faster, you should use this theme for your Website.

3. CONTENT DELIVERY NETWORK 

Recently, Marcus began to use a content delivery network (CDN). The CDN help him to reduce 55% of bandwidth and significantly improved page load speed. 

So, what is a CDN? A CDN is a mesh of servers distributed worldwide. If your server is using a CDN, the file on your server will be copied and saved on all the servers in that network. If your site uses the server, which located in Vietnam and a user visits your site from Argentina and want to download a file on your site. Instead of downloading a file from a server in Vietnam, they can download files from servers located near Argentina or maybe in Argentina (with conditions, in Argentina have servers located in CDN). This signifies that the bandwidth usage on your server has been reduced because it was shared with other servers in the network and contribute to increase the download speed of your site. Setting up a CDN can take a few hours, but this is one of the fastest ways to significantly improve the download speed of your site.

II. 11 TIPS TO INCREASE YOUR WEBSITE SPEED 

You have built a good foundation as: choosing a good host, choose a good theme (can use Content Delivery Networks) for optimal speed of Web pages. Today, we will begin to learn 11 ways to optimize the speed of a Wordpress site.

1. DETERMINATION OF PLUGINS MAKE YOUR WEBSITE SIGNIFICANTLY SLOW

Marcus recommends that you should install P3 (Plugin Performance Profiler). P3 is a Wordpress Plugin which let you know what Plugins make your website slow through the influence of that plugin to the page load time. Learn more at “Performance Profiler evaluate the impact of Plugins to the WordPress Website speed”.

Ordinarily, the plugin share posts on social networking to be a major cause make your page load significantly slow. Instead of applying this plugin, you will embed sharing buttons on a social networking to the source code of the web site you are habituating. 

Later using the Plugin Performance Profiler, you recognize the plugins that cause your website to run slow. You can resolve as follows: 

• If you think it is important and embed the code is likewise complicated for you, you keep it. 

• You can also deactivate  that Plugin and install other plugins which has similar features (plugins are appreciated and have similar functions to the plugin you are using). Then, you use the P3 plugin to scan all plugins again. If the replaced plugin is good for the page load, you can utilize it. 

• If you find that this plugin is not significant or less important, you may decide to remove it.

2. COMPRESSION SMALLER SITE, FASTER SPEED 

GZip Compression is one of the feature that make significantly accelerated speed of your Web site. GZip Compression compress Web pages on the server. Then, the compressed file contains the Web page will be sent to the client’s browser. The browser start unzips the file and get the files  which are contained in compressed file which to display content to visitors. Learn more at “GZip Compression - Compress Website smaller, faster speeds”.

3. COMPRESS IMAGES

Websites often have a lot of pictures which fill the bandwidth on most websites. WP Smush is a great plugin with automatically images compress function when you upload the picture to the Media Library. All the compressed image is not much different than the original image. Learn more at: “Smush It Plugin - WordPress image compression".

4. USING YOUR BROWSER'S CACHE TO SPEED UP WEBSITE

Use the browser's cache is a complex issue. There are many Plugins use caching of web browsers to accelerate up a web site, but if you configure the plugin incorrectly, you will earn your website slow speed instead go faster as its original feature. Learn more at "Use the browser's cache to speed up your Website".

5. CLEANING UP DATABASES 

How often do you use the Save Draft or autosave feature in the drafting process? These are a truly useful feature. However, when you save the Draft, you will procedure a record which stored in a database. For an illustrative example to assist you throw a clearer recognize on this problem:

+ Step 1: You compile a post

TITLE: EXAMPLE POST

CONTENT:

This is an example

Row 1st.

Click Save Draft to save the post.

+ Step 2: Then, add a new row with content: 

Row 2nd

Click Save Draft.

 

 

 

+ Step 3: Continue to add new row:

Row 3rd

Click Save Draft.

+ Step 4: After finish

Click Publish to publish your post on the blog.

 


Continue, we will see what will store in the database.

 

+ Correspond with Step 1: the database adds new record which contains the post:

  • TITLE: EXAMPLE POST
  • CONTENT:

This is an example 

Row 1st.

+ Correspond with Step 2: the database continues to add new record which contains the post: 

  • TITLE: EXAMPLE POST
  • CONTENT:

This is an example 

Row 1st

Row 2nd

+ Correspond with Step 3: the database adds new record which contains the post:

  • TITLE: EXAMPLE POST
  • CONTENT:

This is an example 

Row 1st

Row 2nd

Row 3rd

+ Finish: Click Publish to publish the post and a new record is added:

  • TITLE: EXAMPLE POST
  • CONTENT:

This is an example 

Row 1st

Row 2nd

Row 3rd

Thus, from the time of drafting, you have created four records in the database, instead of just producing one to put up on your website. This problem becomes bigger if you often draft on the editor of your site. The database is clogged with a large number of copies are stored in it. In summation, the database is filled with unapproved comments, trackbacks, Pingbacks, the items were shipped to the Trash but don’t remove from the database. 

Rather than manually delete the unnecessary records to clean up your database, you can use WP Optimize. Optimize helps you regularly delete files in the Trash. Before we act on the database, you should back up the database.

6. REDUCE THE AMOUNT OF CSS AND JAVASCRIPT FILES

Each installed plugin on your computer often accompanying CSS file to format the display for plugin and JavaScript files. Accept that you install 50 Plugins, there are 50 corresponding CSS files and 50 JavaScript files.

When you load a web page, you will have to download the plugin which you use on this Web site. The plugin will have to download the CSS and JavaScript files that they require. With 1 Plugin, the browser sends 2 requests to the server  (1 request to load CSS file and another request for JavaScript). With 50 plugins, the server will have to perform 100 requests. 

The server performs more requests, the page load speed more slower. Thus, you need to minimize the requests quantity to the server. Instead of  50 Plugins use 50 CSS files, 50 JavaScript files, you will gross 50 CSS files into only one CSS file, 50 JavaScript files into only one JavaScript file. 

This will help you reduce the number of requests (2) to the server, instead of 100.

7. TURN OFF TRACKBACK AND PINGBACK FEATURE

In section 5. CLEAN UP DATABASE, Trackback and Pingback mentioned as one of the ingredients that your database becomes cumbersome. Besides the interesting features, they also affect the speed of the page. You can disable the Pingback and Trackback feature by: In the administrator page, you select Settings> Choose Discussion. In the Discussion Settings, in the Default Article Settings, you can uncheck the Allow link notifications from other blogs (Pingbacks and trackbacks) > Click Save Changes.

 

 

8. MOVED CSS TO THE TOP AND JAVASCRIPT TO THE BOTTOM 

CSS helps browsers to display content to readers, JavaScript provides code that performs a certain scenario. Readers need to see the contents first before other ingredients are loaded. So, you need to move the CSS code to the top.

Otherwise, you move JavaScript files to the bottom as possible because the downloading process and implement JavaScript files, the browser will not be done alternating another work until the JavaScript files have done. 

In most cases, this will help improve the downloading speed of your site. Nevertheless, if your website uses a bunch of JavaScript code and this code is accomplished before the user can see any part of the website. In that case, if you push the JavaScript code to the bottom will cause problems for full display web content.

9. USE CSS SPRITES TO GROSS INDIVIDUALLY IMAGES TO A LARGE IMAGE 

Instead of using a single image, Sprites will find out the image which can be combined into one large image. This helps to reduce the number of requests to the server. Sprite Me give you the tools to include these pictures. See more at “Sprite Me - Speed up your Website”. 

10. Enable KEEP ALIVE 

Keep Alive refers messages which are sent from client to server. Enable Keep Alive allows clients can download multiple files without verifying permission continuity after each file loaded. Therefore, it saves the bandwidth of the server. To enable the Keep Alive, just copy the code below into the file.htaccess:

Header set Connection keep-alive

11. REPLACE PHP WITH HTML WHERE APPROPRIATE 

PHP helps increase a website's performance and reduce to enter the same information multiple times. Withal, the obtained data through PHP use server resources and should be substituted with the html code to spare more time.  

You’ve read the "11 tips to speed up WordPress Website" post. Hopefully the info above will assist you in improving the fastness of your web site. 

(Source by Marcus Taylor: View the source)

Save

PS: Nếu bạn nào muốn thưởng thức các loại hải sản tươi ngon hết ý cùng giá cả phải chăng, được đánh bắt từ vùng biển Cô Tô, Quan Lạn, Vân Đồn - Quảng Ninh, vui lòng liên hệ với mình nhé. Cảm ơn các bạn đã ủng hộ!

 

                                                HẢI SẢN VÂN ĐỒN 399

                             Chuyên bán buôn, bán lẻ hải sản tươi sống, hải sản khô, hải sản 1 nắng

                                   (Ốc móng tay Cô Tô, Sá sùng Quan Lạn, Mực tươi Cô Tô,...)

                         - Cơ sở 1: Số nhà 399, Lý Anh Tông, Thị trấn Cái Rồng, Vân Đồn, Quảng Ninh
                         - Cơ sở 2: Ngõ 184, Hoàng Quốc Việt, Cầu Giấy, Hà Nội
                         - ĐT: 0985.286.522
                         - Website: http://vandon.com.vn/haisan