Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

How to speed up wordpress website

speed up wordpress

         

thanhnguyenjd1379

7:32 am on Dec 13, 2014 (gmt 0)



What is the effect of fast website to Search Engine Optimization? What is the way to speed up wordpress website?

tohit

10:54 am on Dec 13, 2014 (gmt 0)

10+ Year Member



Hi,

You can use plugin to run your website more fast way like w3cach etc...

Thanks

thanhnguyenjd1379

1:30 pm on Dec 13, 2014 (gmt 0)



I have been used W3 Total Cache plugins. Anything else?

Planet13

4:20 pm on Dec 13, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Maybe a CDN could help?

lorax

2:27 am on Dec 14, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Welcome to WebmasterWorld thanhnguyenjd1379!
Yes, site speed does have an affect on SEO but not as much as it used to - unless the site speed is horribly slow.

You could use a caching plugin or CDN like Cloudflare as tohit and Planet13 offered. I'd suggest you review your code and current plugin selection first. Too many plugins and poor template code can kill a WP install.

<fixed typo>

[edited by: lorax at 1:39 pm (utc) on Dec 15, 2014]

Planet13

4:28 pm on Dec 14, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



"Too many plugins and poor template code can kill and WP install."


Yes, I would agree with that wholeheartedly.

I appreciate that some theme developers want to make it easier for users to change the theme colors (they might have a "blue" color scheme and an "orange" color scheme and a green color scheme...)

But that adds an awful lot of CSS - which makes it slower to load and, quite frankly, a little more confusing to developers like me who don't have monster CSS skills...

Brownstownz

7:30 pm on Dec 14, 2014 (gmt 0)

10+ Year Member



Is the site image heavy? Sometimes you can compress your images and speed it up.

Also, how is your hosting? Are you using a good hosting company or cheap shared hosting?

wslade

8:36 pm on Dec 14, 2014 (gmt 0)

10+ Year Member



All of the ideas above are good ones. And even if loading speed isn't as important from an SEO standpoint, I believe it's VERY important to site users. Unless I really feel the need to view a slow website, I'll leave before it loads.

I use Quick Cache (soon to be called Zencache) but only because it was suggested by my membership plugin. I think any premium template will require some sort of quality cache.

I tried CloudFlare but I couldn't determine a noticeable speed increase. The very nature of the CDN concept doesn't make it easy to do comparison testing. It's said CF isn't a true CDN. Possibly other networks would function differently.

I liked the way CF minified the css and javascript. But I had some functionality issues that seemed to go away when I left CF. Since I couldn't determine if I was getting any boost in speed, I didn't take much time trying to sort out the functionality problems.

Using pingdom tools I saw where images were really slowing my site. I started cutting down the image file size one at a time using gimp but I switched to EWWW Image Optimizer. This plugin will do the images you already have in bulk and then reduce the size of any new images when you upload them. Warning even reducing a single image when uploading is VERY slow.

There was a noticeable difference in my page load speed after reducing the file size of each image. And I couldn't see any difference in the image quality.

In short - fast is a good thing when it comes to page load speed.

Hoople

1:46 am on Dec 15, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Running your site through a speed online test will give you lots of suggestions like minimizing the number of domains and combining css/js to reduce server requests.

Try [developers.google.com...] and [gtmetrix.com...] Compare their outputs paying special attention to the load time vs source. A term you may want to search on and understand is 'time to first byte' to learn about server [over]loading and it's contribution to page speed.

There has been a few similar threads to this one here so I suggest doing a search on 'site:webmasterworld.com page speed' may give even more points to consider.

[edited by: lorax at 1:41 pm (utc) on Dec 15, 2014]
[edit reason] cleaned up links [/edit]

onlineleben

10:00 pm on Dec 16, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Instead of posting a link, please let me post my compiled guide on what I do to bring sites up to speed (published on one of my sites):


Searchengines, especially Google, put much emphasis on load times today and include it in their parameters for ranking. Slow sites are not user friendly and Google wants to give their users a good experience as well, which means not offering them slow sites.
Also as a PPC advertiser you have to make sure to have a fast reacting site. What does it help when the SERP (Search Engine Results Page) presents you ad in 0.45 seconds, but your site takes ages to show up after the click on the ad? You pay for the click, but the visitor is probably gone.

So, here are a few areas to pay more attention to for making your websites faster:

Get latest versions
When running your site on WordPress, it is mandatory to update your site to the latest version. This is not only for WordPress alone, but also for the plugins and themes you use. There are many benefits from this: bugs from previous versions got fixed, new - sometimes useful - features get implemented and often times there were optimizations regarding speed. Also running an updated system is more hacker proof than having a site with an old and buggy version.

Remove stuff you don't need!
- or that doesn't work anymore (dead affiliate links etc). Some WordPress installations have many plugins sitting around that are not used. This not only uses up space on your hosting account, but also can slow down site performance. Often you can combine the functionality of several plugins in one. An example is to get rid of the plugins for xml-sitemaps and google analytics. You can easily enter the analytics code and also switch on the sitemap functionality in some SEO plugins. This results in 2 plugins saved, less updates, better security.

Image Optimization
It is a good idea to resize the image so it really fits the position it is meant for. Don't do resizing by just applying different Width & Height attributes to a big picture. Make them the correct size and also play around with the resolution of the picture itself.
Another way to make the pictures smaller is by using the best suited file type. Most people are quite lazy and only use JPG, which is best suited for photo type pictures. But quite often it is also used for banners, buttons, logos etc. which only contain a few colors. For these purposes it makes sense to check out other file formats like PNG, PNG8 and GIF. They deliver adequate quality with much smaller file size.

To optimize image size on the fly, you can install a plugin called Smush-it. [wordpress.org...]
It compresses all the images you already have in your media folder and does so whenever you upload new ones. I did this once and then removed the plugin as the files keep their size after compression.

Another, more advanced way of speeding up the site is by combining images with CSS in so called Sprites. This will reduce the number of HTTP requests and therefore speed up the loading of the site. It will also lessen the load on the server (fewer requests) and reduce bandwidth (like all optimization steps do).

Third Party Tracking
As already described, implementing 3rd Party tracking or buttons like the Facebook "Like", can severely slow down your site. To overcome this, some plugins (e.g. Google Analytics) offer asynchronous loading so a slow server on the 3rd Party site doesn't influence the loading of your own site.
Similar things can happen with affiliate banners that you get from affiliate networks. Quite often a simple HTML snippet that you get from them causes a big (in KB) advertisement to load on your site. To speed this up, you can save the picture of the ad and host it on your own server (apply all the steps to optimize the image from above) and embed it in an affiliate link that doesn't load anything but just transfers your affiliate code. With this you save a HTTP request to an external site you don't have control over and also have the ad load faster.

CSS and JS usage
Both CSS and JS files are plain text and quite often contain a lot of comments and blank spaces. This you can optimize, too. There are many optimization tools on the web that reduce file size by eliminating this non-used content without changing functionality. Remember, a small file is transmitted faster than a big one (search for JS or CSS minify)
It is also possible to combine often called JS files into one (same applies for CSS files). With this you only have one call to the server and get the equivalent of many files transmitted to the browser in one go.
This is easy to do when you program your own sites, but for WordPress you find plugins that do the job for you.

Caching your Website
This works well, but probably only when you have decent traffic on the site and your pages get called quite often. With small, low traffic niche sites on shared hosting I didn't experience performance gains as the time between single visitors (who also requested different pages) was too long. Maybe I did something wrong in the setup, but for me it only worked on sites with more traffic, where the same pages were requested over and over.

All the above should give your site a little boost in performance. The biggest improvement comes now:

Switch on HTTP Compression
This is done on the server and the server compresses a text resource (HTML, JS, CSS) before sending it to the browser. This saves a lot of bandwidth (usually between 50% to 70%) and makes the pages load faster. Remember, smaller files get transferred faster. I also found some WordPress plugins enabling compression, but the results were not as good as when my server admin did the job.

Get a better Webhost
Usually you get what you pay for. But speed is not everything when shopping for a webhost. Also consider customer service, additional bandwidth cost, proximity to your audience (means shorter lines and quicker loading).
IMHO, I would work on all the above mentioned optimization tips and those mentioned by the other posters, before changing hosting providers.

Using all of the above mentioned steps I was able to lessen the load time for my sites significantly. From 5-7 seconds to about 2.7 seconds for a WP site on shared hosting and to under 0.5 seconds for a static HTML site on a fast host (also shared hosting, but just 35 sites per server).
The results for the WP site could be better if I were using a faster host located nearer to its main audience. Currently it is hosted in Europe, which requires some additional hops around the networks. Two main issues are slowing it down at the moment: the slow shared server with a mass hosting company and WordPress itself are responsible for a long Time To First Byte (1.5 seconds). The external tracking tool also takes its toll (0.8 seconds at the end of the load).

It takes some time and effort to really speed up your site, but the results pay off in better user experience and conversions.

These website tuning tips helped me improve loading speed.

If there is anything else that can get easily done, please let me know. I am hungry for speedy sites.

[edited by: lorax at 1:22 am (utc) on Dec 17, 2014]
[edit reason] Fixed character issues. [/edit]

wslade

11:27 pm on Dec 19, 2014 (gmt 0)

10+ Year Member



@onlineleben Wow! I thought I wrote long posts. Thanks for lots of good info. I am always on the look out for something to speed up my site.

Unfortunately, Smush it doesn't work with SSL. So I can't try it.

About your caching a lightly visited site. I would think you would get the same benefit on any site. How long do you have your cache set before it refreshes?

After the max time you have set for your cache, each page is then re cached, over time, as they are visited. If the pages aren't visited they are not cached before the next cycle.

If this is happening with you, you can set the cache to a longer time. For me, I don't see anything wrong with several months between refreshes. If you make changes to a cached page you can then do a manual refresh. Also, as a solution for the lightly trafficked site, you can visit the pages yourself and cause them to be cached. If you have too many pages for this to be practical, you could open the index page and some of the most important pages after doing a manual reset.

Another thing to look for when caching is the browser cache. In must cases you want to turn on browser caching if you have the function available. It has the same "must be visited in order to cache" limitations as server side caching but every little bit helps.

The only reason I can think of to turn off the browser cache is if your visitors log in to your site. Running a browser cache when logging out of a site could cause it to appear that you are still logged in. Even this can be fixed if the browser cache respects a no-cache header. Then you mark any logged in pages with no-cache headers.

As you point out, hosting is an important element in the page load speed of a site. I saw some very noticeable increases by going to solid state drives, with my existing server. SSDs are still quite expensive but if you can limit the disk space you are using, the increase in hosting fees may not be that much.

And if you really need a lot of disk space, there is the hybrid drive option. This is a big drive with a smart cache built into it. I haven't tried one but the specs are better than the fastest mechanical drives around.

I'm not at all happy with my page load speed but it is much improved over where I began. There are lots of things that can give a little boost in page loading. I'm up for trying most anything to increase page speed.

lorax

3:09 am on Dec 20, 2014 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Well done onlineleben and wslade! I love it when the convo gets deep.

MickeyRoush

8:29 pm on Jan 2, 2015 (gmt 0)

10+ Year Member



One of the best things you can do to speed up a WordPress site is to disable scripts and styles where they are not needed. Lots of plugins and themes tend to just load them for every page when they are not needed.
[justintadlock.com...]