speed & uptime with wordpress

41
WORDPRESS by Todd Dow

Upload: toddhdow

Post on 02-Jul-2015

424 views

Category:

Technology


0 download

DESCRIPTION

My presentation from WordCamp Hamilton 2013.

TRANSCRIPT

Page 1: Speed & Uptime with Wordpress

SPEED & UPTIME with

WORDPRESS

by Todd Dow

Page 2: Speed & Uptime with Wordpress

Who is Todd Dow?

Senior Digital Specialist at Postmedia Digital

CISA & PMP certified

15 years industry experience: Postmedia, AOL

Canada, numerous small business websites.

Page 3: Speed & Uptime with Wordpress

Etiquette

Don’t be shy!

Ask questions right away.

If you disagree, say so.

A discussion is more interesting than a lecture.

Page 4: Speed & Uptime with Wordpress

Overview

Why do we use WordPress?

What if my WordPress site fails?

Causes of failure

Mitigation Strategies:

Hosting

Backups

Monitoring

Security

Page 5: Speed & Uptime with Wordpress

Why do we use WordPress?

Communication

Education

Productivity

Entertainment

To make money

Page 6: Speed & Uptime with Wordpress

Customers Expect Fast Pages

< 1 sec3%

1 - 5 sec16%

6 - 10 sec30%11 - 15 sec

16%

16 - 20 sec15%

20+ sec20%

Abandonment Rate based on page speed

Source: Kissmetrics.com

Page 7: Speed & Uptime with Wordpress

Time = Money

-11%

-7%

-16%

-18%

-16%

-14%

-12%

-10%

-8%

-6%

-4%

-2%

0%

Page Views Conversions Customer Satisfaction

Average Impact of One Second Delay in Response Time

Source: gomez.com

Page 8: Speed & Uptime with Wordpress

What if my WordPress site is slow or

non-responsive?

Communication

Education

Productivity

Entertainment

To make money

No communication

No education

Lost productivity

No entertainment

Loss of revenue

Page 9: Speed & Uptime with Wordpress

Costs of speed & uptime issues

“For a $100,000/day

ecommerce site, a

one-second delay

means $2.5 million

in lost revenues in a

year” (Gomez.com)

Loss of reputation

Loss of revenue due

to customer refunds

Additional damages

(SLA penalties)

Loss of future

business

Large Enterprises Small/Medium Business

Page 10: Speed & Uptime with Wordpress

Sources of speed & uptime

issues

Power

Networks

DNS

Servers

OS

Software

3rd parties

Traffic

Unoptimize

d content

Human

error

Hackers

Page 11: Speed & Uptime with Wordpress

How do we minimize risk?

Minimize our footprint:

Site Content

Application

Platform

Infrastructure

Outsource

Customize

Full Control

Platforms:

PHP, Python,

Apache

OS

Servers

DNS

Networks

Power

Wordpress, 3rd

parties

User accounts

Content

Page 12: Speed & Uptime with Wordpress

How do we minimize risk?

Hosting Backups

Monitoring Security

Operational best practices, focusing on:

Page 13: Speed & Uptime with Wordpress

Hosting needs:

Keep it simple – minimize your footprint:

Host with experts

Avoid hosting your own hardware

Get your vendor to manage OS & application patching and maintenance

Expect the following from your vendor:

99.999% uptime

24x7 support

System health dashboard

Off-peak-hours maintenance windows

Hosting

Page 14: Speed & Uptime with Wordpress

Hosting Options – free or low

cost

WordPress.com:

Free

For $43 a year:

custom domain

Fonts

Colours

CSS

Hosting

Page 15: Speed & Uptime with Wordpress

Low Cost Hosting

Numerous hosting

options

Start at $5/month

Full blog

customization

Risks:

Shared

infrastructure

ScalabilityHosting

Page 16: Speed & Uptime with Wordpress

Dedicated Hosting

$50 to $100/month

Full blog

customization

Risks:

Scalability

Hosting

Page 17: Speed & Uptime with Wordpress

Volume Based Hosting

Focus is on traffic

Don’t worry about

servers, network, et

c.

Start at $100/month

Full or partial blog

customization

Hosting

Page 18: Speed & Uptime with Wordpress

Tier 1 Hosting

Enterprise-level

hosting

Start at

$3,750/month

Full blog

customization

High volume, high

availability

Hosting

Page 19: Speed & Uptime with Wordpress

Other Hosting Options

Scalable hosting:

Amazon Web

Services

Microsoft Azure

Pros:

Scalable, full control

Cons:

Management

overheadHosting

Page 20: Speed & Uptime with Wordpress

Other Hosting Considerations

Static content hosting:

Amazon S3

Use a CDN:

Amazon CloudFront

Akamai

Brightcove

Cachefly

Limelight

Hosting

Page 21: Speed & Uptime with Wordpress

Backup needs:

Why do backups?

Protect against site corruption

Protect against hosting failure

Ensure business continuity

How often should you do backups?

As frequently as you post new content.

Backups

Page 22: Speed & Uptime with Wordpress

Backup options:

Roll your own script

to copy files & DB

VaultPress Service

& Plug-in

Backup Buddy

Plug-In

Numerous other

solutions.

Backups

Page 23: Speed & Uptime with Wordpress

Backup options – source code:

Use a source code

repository to store

your code (plug-

ins, themes, etc.)

Options:

Github

Assembla

Bitbucket

Backups

Page 24: Speed & Uptime with Wordpress

Types of monitoring

Heartbeat = uptime monitoring

Log = diary of all activities

Performance = page speed, weight, etc.

Security = vulnerability scanning

Traffic = site visits

Monitoring

Page 25: Speed & Uptime with Wordpress

Heartbeat Monitoring

Heartbeat = uptime

monitoring

Verelo.com

Pingdom.com

Etc.

Monitoring

Page 26: Speed & Uptime with Wordpress

Log Monitoring

Log = diary of all

activities

Splunk.com

LogRhythm.com

Etc.

Monitoring

Page 27: Speed & Uptime with Wordpress

Performance Monitoring

Performance = page

speed, weight, etc.

Browser Tools

Google PageSpeed

Webpagetest.org

Gomez

Keynote

Monitoring

Page 28: Speed & Uptime with Wordpress

Security Monitoring

Security = vulnerability

scanning

Nessus

Qualys

VaultPress

Monitoring

Page 29: Speed & Uptime with Wordpress

Traffic Monitoring

Traffic = site visits

WordPress stats

Google Analytics

Monitoring

Page 30: Speed & Uptime with Wordpress

Security Considerations

We can all be hacked.

We are all vulnerable.

Accept it.

Security

Page 31: Speed & Uptime with Wordpress

Security

Security Considerations:

Our goal: minimize our surface area:

Site Content

Application

Platform

Infrastructure

Outsource

Customize

Full Control

Platforms:

PHP, Python,

Apache

OS

Servers

DNS

Networks

Power

Wordpress, 3rd

parties

User accounts

Content

Page 32: Speed & Uptime with Wordpress

Security Considerations

Some current trends:

DDOS attacks are becoming more and more

common

Password theft and human engineering

Top 5 OWASP Vulnerabilities in 2013:

SQL injection

Broken authentication and session mgmt

Cross-site scripting

Insecure direct object references

Security misconfigurationSecurity

Page 33: Speed & Uptime with Wordpress

What can we do?

DDOS attacks:

Work with your hosting provider

Use a Content Delivery Network (CDN)

Architect for scale

Security

Page 34: Speed & Uptime with Wordpress

What can we do?

Password theft and human engineering

Create and maintain secure passwords:

More than 8 chars, alpha-numeric & symbols, etc.

Change your password regularly (every 90 days, at

most)

Two factor authentication

Education & Awareness:

Don’t click on links or visit sites that you don’t trust.

Don’t share your password with others

Beware of phishing attacksSecurity

Page 35: Speed & Uptime with Wordpress

What can we do?

Secure coding to mitigate issues like these:

SQL injection

Broken authentication and session mgmt

Cross-site scripting

Insecure direct object references

Security misconfiguration

Google this term: “secure coding”

Security

Page 37: Speed & Uptime with Wordpress

WordPress VIP Guidelines

WordPress.com security guidelines in a nutshell:

Use strong passwords

Connect to your site using SFTP/SSH, SSL or some other secure channel

Restrict admin access

Disable plug-in/theme editing

Move wp-config.php file

Use salts on passwords

Properly administer permissions on directories

Change the DB prefix

Avoid direct php script & DB queries

Don’t leave comments in your code

Don’t write to the file system

Security

Page 38: Speed & Uptime with Wordpress

What can we do?

Ongoing best

practices:

Scan for

vulnerabilities:

Nessus

Qualys

VaultPress

Patch

Password changes

EducationSecurity

Page 39: Speed & Uptime with Wordpress

I’ve been hacked! What now?

http://codex.wordpress.org/FAQ_My_site_was_hacked

In a nutshell:

Stay calm.

Contact your hosting provider

In cases of significant damage, contact a security consulting firm and/or police

Scan your local machine for malware

Change your passwords

Identify and fix the issue(s)

Restore from last good known backup

Security

Page 40: Speed & Uptime with Wordpress

Review

Hosting: Build a

stable, scalable

infrastructure

Backups: Make sure

backups happen and test

them often.

Monitoring: Measure your

critical performance data.

Security: Monitor and

respond to threats.

Page 41: Speed & Uptime with Wordpress

Thanks for listening! Questions?

@toddhdow

http://toddhdow.com/

[email protected]

When in doubt, look for “toddhdow” at <insert

social media site here>