33
How Can I Improve The Performance Of My WordPress Website? HackGuard.co m

How Can I Improve The Performance Of My Wordpress Website?

Embed Size (px)

DESCRIPTION

Surprisingly, many believe that because they have unlimited space and bandwidth they’re allowed unlimited server resources as well. This is one of those little secrets within the shared web hosting industry. Server resources like number of processes allowed and memory are virtually always limited per account. Though with a few minor tweaks you may be able to squeeze a bit more blood from that shared website hosting turnip. Written by Jim, Walker, HackRepair.com http://hackguard.com/how-can-i-improve-the-performance-of-my-wordpress-website - PowerPoint PPT Presentation

Citation preview

Page 1: How Can I Improve The Performance Of My Wordpress Website?

How Can I Improve The Performance Of

MyWordPress Website?

HackGuard.com

Page 2: How Can I Improve The Performance Of My Wordpress Website?

Here are a few things I’ve learned over the years to improve the performance of a WordPress blog:

Page 3: How Can I Improve The Performance Of My Wordpress Website?
Page 4: How Can I Improve The Performance Of My Wordpress Website?

Unlimited shared hosting

is “limited”

1

Page 5: How Can I Improve The Performance Of My Wordpress Website?

Shared Hosting

Server resources, like number of

processes allowed and memory, are

virtually always limited per account.

Page 6: How Can I Improve The Performance Of My Wordpress Website?

So how do you squeeze a bit more blood from that

shared website hosting turnip?

Page 7: How Can I Improve The Performance Of My Wordpress Website?

Let’s start with your

wp-config.php file

Page 8: How Can I Improve The Performance Of My Wordpress Website?

wp-config.php file contains

your WordPress blog's settings

Page 9: How Can I Improve The Performance Of My Wordpress Website?

This file governs how your website interacts with your website’s database (where your post content lives)

Page 10: How Can I Improve The Performance Of My Wordpress Website?

“Fatal error: Allowed memory exhausted”

Page 11: How Can I Improve The Performance Of My Wordpress Website?

Errors like that appear when a plug-in begins using up all of the memory allocated to your website

Page 12: How Can I Improve The Performance Of My Wordpress Website?

Solutiondefine('WP_MEMORY_LIMIT','128M');define('WP_MAX_MEMORY_LIMIT','256M');

Page 13: How Can I Improve The Performance Of My Wordpress Website?

Caching is your friend

2

Page 14: How Can I Improve The Performance Of My Wordpress Website?

Plugins that speed up the page loading

speed

Page 15: How Can I Improve The Performance Of My Wordpress Website?

Plugin’s• W3 Total

Cache• WP Super

Cache• ZenCache

Page 16: How Can I Improve The Performance Of My Wordpress Website?

Better leveraging browser caching via .htaccess

## EXPIRES CACHING ##<IfModule mod_expires.c>ExpiresActive OnExpiresByType image/jpg “access 1 year“ExpiresByType image/jpeg “access 1 year“ExpiresByType image/gif “access 1 year“ExpiresByType image/png “access 1 year“ExpiresByType text/css “access 1 month“ExpiresByType application/pdf “access 1 month“ExpiresByType text/x–javascript “access 1 month“ExpiresByType application/x–shockwave–flash “access 1 month“ExpiresByType image/x–icon “access 1 year“ExpiresDefault “access 2 days“</IfModule>## EXPIRES CACHING ##

Page 17: How Can I Improve The Performance Of My Wordpress Website?

Limiting pluginsMore plugins,

More complexity,increase the website loading time

Page 18: How Can I Improve The Performance Of My Wordpress Website?

Look For Well Rated Plugins

• Wordfence Security

• iThemes Security

Page 19: How Can I Improve The Performance Of My Wordpress Website?

Focus on plugins that will help speed up your

blog• WP Smush.it makes images

smaller.• BJ Lazy Load delays the

loading of images until actually viewed.

• Autoptimize aggregates and minimizes JavaScript, CSS and HTML.

• ZenCache caches content saving reloading of content each visit.

• Server side: Batcache with Memcached to store and serve rendered pages.

Page 20: How Can I Improve The Performance Of My Wordpress Website?

The php.ini file is simply a file used by the web server to control specific options within your account

php.ini and how to tame

it

3

Page 21: How Can I Improve The Performance Of My Wordpress Website?

The php.ini file lives in

your public_html directory

Page 22: How Can I Improve The Performance Of My Wordpress Website?

Edit the existing setting or add these lines:*

memory_limit = 128M max_execution_time = 60

Page 23: How Can I Improve The Performance Of My Wordpress Website?

The bane of my existence:

admin-ajax.php

4

Page 24: How Can I Improve The Performance Of My Wordpress Website?

WordPress introduced the WordPress Heartbeat API back in version 3.6

Page 25: How Can I Improve The Performance Of My Wordpress Website?

This was developed to help improve session management, auto saving, revision tracking, etc.

Page 26: How Can I Improve The Performance Of My Wordpress Website?

Site slows to a crawl during periods when multiple editors are logged into the dashboard

Page 27: How Can I Improve The Performance Of My Wordpress Website?

About That Database

5

WordPress requires much the same “defrag” process as your personal computer to keep fresh and lively

Page 28: How Can I Improve The Performance Of My Wordpress Website?

• Post revisions• Transient

records• Trash may

slow your website to a crawl

What Else May Slow Your Website?

Page 29: How Can I Improve The Performance Of My Wordpress Website?

WP-Optimize• Naughty post revisions• Trackbacks / pingbacks• Comments in the spam

queue• Expired transient records

Page 30: How Can I Improve The Performance Of My Wordpress Website?

// Limit number of saved revisions to onedefine('WP_POST_REVISIONS', 2);// Empty trash every 10 daysdefine('EMPTY_TRASH_DAYS', 10);

Then add the below line of code to your wp-

config.php settings file

Page 31: How Can I Improve The Performance Of My Wordpress Website?

Summary

Page 32: How Can I Improve The Performance Of My Wordpress Website?

Improve theperformance of WordPress by:

• Replacing your theme

• Deleting inactive plugins, reducing widget usage

• Disable “Allow link notifications from other blogs (pingbacks and trackbacks)”

Page 33: How Can I Improve The Performance Of My Wordpress Website?

HackRepair.com

"We Love Fixing Hacked Websites"

Call Jim Walker(619) 479-6637

HackRepair.com