Optimize WordPress Speed Ebook PDF
Optimize WordPress Speed Ebook PDF
Optimize WordPress Speed Ebook PDF
21 Expert Tips to
an Ultra-Fast
WordPress Website
WHY DOES SITE SPEED
MATTER?
2
1
IDENTIFY AND
PRIORITIZE
ISSUES
3
BE N CH MARK
The rst thing you should do is nd out if you actually have a problem. The easiest way to
do so is to use benchmark tests. There are some free tools such as:
GTMetrix (https://gtmetrix.com)
There are many other tools out there and generally if you have the time, the more tests you
Identify and Prioritize Problems
perform on your site the better. However, these two tools are usually sucient to get a
clear picture about how your website is performing in terms of speed.
Pro Tip: Even though most of the benchmarking tools will give you a grade, dont go
too far chasing it. If your website loads in under one second, youve done the biggest
part of the job.
4
CO M MON ISSUES
If the benchmark tests show you have an issue with your site
speed, the next step is to identify the actual blockers. Although
every website is dierent and has its own set of speed issues,
some problems are very common and its safe to start with them:
5
2
PAGE SIZE &
CONTENT
OPTIMIZATIONS
6
1 . R EDUCE T HE NUM BE R OF P OS TS
S H OWN ON YOUR I N D E X PAG E
into pages using the <!--nextpage--> tag within the post content.
By doing this, you will see a pagination under the page or posts
and your users will be able to navigate through them by clicking
on the next pages.
This will split one big and slow page into several faster ones.
7
3 . R EPLACE SLI DER WITH M U LTIP L E IM AGE S
WITH ONE STAT I C I MAG E
4 . USE APPROPRI AT E IM AG E S IZ E S
Images are an essential part of a website and may need some
time to be transferred from the server while the site is loading.
8
Even if the image le is reduced by just a few KBs, when you
combine all the images on one page, usually the performance
gain is signicant.
Check your website and include only the font variation that youre
actually using.
If you get a lot of comments, this may be slowing your site in two
ways. First - this makes your page more dynamic (if you have
enabled caching, it has to be cleared more often) and second -
each comment adds to the size of your page and HTML output.
of comments.
Disqus is also an option, but its a third party service that relies
on a plugin to replace your default comment system with theirs. It
will ooad the comments from your site, but they will no longer
be stored on your server.
9
8 . E NA BLE G ZI P CO M P RE SS ION
FO R YO UR PAGES
GZIP COMPRESSION
gZIP
&view
Server Visitor
10
9 . M INIF Y AND COMBIN E JS A ND C SS F IL ES
Minication and combination are two techniques with one pur-
pose - to reduce the size and number of JavaScript and CSS les
that your site loads. Minication strips all unnecessary symbols by
removing precious bites from being loaded every time you
request an URL.
1 0. E NABLE CACHI N G
The easiest way to cache your site is through a plugin. This saves
the cached content on the servers hard disk and signicantly
improves site performance since your content wont be dynami-
cally loaded every time. WP Rocket is a great premium option, or
if thats outside your budget, try WP Super Cache.
Page Size & Content Optimizations
Further down in the book Ill talk about caching as a part of the
services your hosting provider can oer. When caching is enabled
at the server level, the content gets saved not on the hard disk,
but in the server RAM. This makes the site performance gains
much greater since reading from the memory is faster than
reading from the disc.
11
3
THEME &
PLUGINS
OPTIMIZATIONS
Theme & Plugins Optimizations
Both themes and plugins are essential to the speed of your site since they
are basically pieces of code that your site executes when it gets accessed.
That code often needs optimizations as well.
12
1 1. SE LECT A REPU TA BL E TH E M E F ROM
A SOLID PROVI DER
Every hour you spend researching your theme provider and the
theme itself will save you days later on when you invest time and
money in your site and add all your content. Read reviews for the
themes, try getting some actual feedback from users, check
whether the company is trusted in the WordPress community.
Dont trust a theme provided by an unknown designer that does
not respond to his/her customers.
1 2. AVO ID BLOAT ED TH E M E S
When youre looking for a theme for your website, you will surely
stumble upon themes that claim they can be used for virtually
any kind of website. Many of these are full of features, sliders,
carousels, etc. All of these features require JavaScript and CSS
resources to work and if youre not using them, youre simply
wasting resources.
Theme & Plugins Optimizations
13
13 . A LWAYS USE A C H IL D TH E M E WH E N
C R EATING YOUR SI TE
Every year more and more trac comes from mobile devices.
Tablets and smartphones are becoming even more popular for
browsing than standard desktop computers. Thats why, its
important to make sure your site works as fast as possible on
such devices.
Test your pages with the Google Mobile-Friendly Test which will
1 give you information if a certain part of your page is not well
optimized for mobile.
2 mobile version. When you run tests for your website, make sure
you test the mobile version as well.
14
1 5. WHEN USI NG I C ONS , U S E A N IC ON FO N T
Icon-like images have become a trend in the past few years. If you
want to use such images, try utilizing an icon font rather than
separate images. Genericond is a great plugin that will help.
With it, you can add vector icons as if they were normal alphabet
symbols.
For example, if youre using the Yoast SEO plugin and you want to
have a Google XML Sitemap, just enable this functionality in the
plugin settings page instead of adding another plugin, even
though there are dozens available in the plugin repository.
your plugins updated, you will get all the performance improve-
ments from the newest release.
Keeping your plugins up-to-date will allow you to use more recent
PHP versions including PHP7, which gives your site a huge perfor-
mance boost.
15
If youre not using a plugin, delete it. There is no need to keep
them on your account. Its good security practice and one less
thing to slow down your back-end.
16
INTRO
4
SERVER &
HOSTING
OPTIMIZATIONS
17
1 9. TA KE ADVANTAG E OF S E RV E R
L EV E L CACHI NG
WITHOUT WITH
SUPERCACHER SUPERCACHER
For websites with big databases, you can also implement object
Server & Hosting Optimizations
caching like Memcached or Redis. These are services that your hos-
ting provider must install on their server, and provide you with the
ability to use them with your application. For example, at SiteGround
we provide Memcached as part of our WordPress performance
services, that can be activated with a single click.
18
20 . US E A CDN
MULTIPLEXING
example.css example.css
image.png image.png
3 TCP connections
Server & Hosting Optimizations
example.css example.css
image.png image.png
1 TCP connection
19
The HTTP/2 protocol is much faster and allows the browser to
make multiple simultaneous requests for resources to the server,
which results in faster and safer sites. Learn more.
CONCLUSION
Optimizing for speed is a continuous and important
part of building and maintaining your WordPress site.
SUMMARY Without optimization, you risk paying more, losing
visitors and conversions and even damaging your
brand and reputation.
20
A B O U T T H E AU T H OR
Hes been fortunate to have his passion for all things WordPress and
his job overlap at SiteGround, where he develops and implements
various in-house performance boost solutions to help make Word-
Press websites faster and more secure.
facebook.com/siteground
twitter.com/siteground
21