How Can I Improve The Performance Of My Wordpress Website PowerPoint PPT Presentation

presentation player overlay
About This Presentation
Transcript and Presenter's Notes

Title: How Can I Improve The Performance Of My Wordpress Website


1
How Can I Improve The Performance Of My WordPress
Website?
HackGuard.com
2
Here are a few things Ive learned over the years
to improve the performance of a WordPress blog
3
(No Transcript)
4
Unlimited shared hosting is limited
5
Shared Hosting Server resources, like number of
processes allowed and memory, are virtually
always limited per account.
6
So how do you squeeze a bit more blood from that
shared website hosting turnip?
7
Lets start with your wp-config.php file
8
wp-config.php file contains your WordPress blog's
settings
9
This file governs how your website interacts with
your websites database (where your post content
lives)
10
Fatal error Allowed memory exhausted
11
Errors like that appear when a plug-in begins
using up all of the memory allocated to your
website
12
Solution
define('WP_MEMORY_LIMIT','128M') define('WP_MAX_M
EMORY_LIMIT','256M')
13
Caching is your friend
14
Plugins that speed up the page loading speed
15
Plugins
  • W3 Total Cache
  • WP Super Cache
  • ZenCache

16
Better leveraging browser caching via .htaccess
EXPIRES CACHING ltIfModule
mod_expires.cgt ExpiresActive On ExpiresByType
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/xjavascript access 1
month ExpiresByType application/xshockwaveflash
access 1 month ExpiresByType image/xicon
access 1 year ExpiresDefault access 2
days lt/IfModulegt EXPIRES CACHING
17
Limiting plugins
More plugins, More complexity, increase the
website loading time
18
Look For Well Rated Plugins
  • Wordfence Security
  • iThemes Security

19
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.

20
php.ini and how to tame it
The php.ini file is simply a file used by the web
server to control specific options within your
account
21
The php.ini file lives in your public_html
directory
22
Edit the existing setting or add these
lines memory_limit 128M max_execution_time
60
23
The bane of my existence admin-ajax.php
24
WordPress introduced the WordPress Heartbeat API
back in version 3.6
25
This was developed to help improve session
management, auto saving, revision tracking, etc.
26
Site slows to a crawl during periods when
multiple editors are logged into the dashboard
27
About That Database
WordPress requires much the same defrag process
as your personal computer to keep fresh and
lively
28
What Else May Slow Your Website?
  • Post revisions
  • Transient records
  • Trash may slow your website to a crawl

29
WP-Optimize
  • Naughty post revisions
  • Trackbacks / pingbacks
  • Comments in the spam queue
  • Expired transient records

30
Then add the below line of code to your
wp-config.php settings file
// Limit number of saved revisions to
one define('WP_POST_REVISIONS', 2) // Empty
trash every 10 days define('EMPTY_TRASH_DAYS',
10)
31
Summary
32
Improve the performance of WordPress by
  • Replacing your theme
  • Deleting inactive plugins, reducing widget usage
  • Disable Allow link notifications from other
    blogs (pingbacks and trackbacks)

33
HackRepair.com
"We Love Fixing Hacked Websites" Call Jim
Walker (619) 479-6637
Write a Comment
User Comments (0)
About PowerShow.com