19
Best Practices on Optimizing, Securing and Scaling WordPress By: Simon Lim WordPress Consultant Twitter: @simonlim88 Email: [email protected]

Best Practices on Optimizing, Securing, Scaling WordPress

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Best Practices on Optimizing, Securing, Scaling WordPress

Best Practices on Optimizing, Securing and Scaling WordPress

By: Simon LimWordPress ConsultantTwitter: @simonlim88

Email: [email protected]

Page 2: Best Practices on Optimizing, Securing, Scaling WordPress

Content

• WordPress Optimization – hacks and how to• WordPress Security – best practices, tricks• Scaling WordPress – tips

Page 3: Best Practices on Optimizing, Securing, Scaling WordPress

WordPress Optimization:How to make WordPress

perform faster?

Page 4: Best Practices on Optimizing, Securing, Scaling WordPress

Why is it important?

Speed - Improve user experience / interaction

Marketing - Improve search engine optimization

Revenue - Increase income

Page 5: Best Practices on Optimizing, Securing, Scaling WordPress

Basic Web Optimization Tips

1. Static (CSS/JSS) Files – Top: CSS, Bottom: JS2. Minify – CSS / JS 3. Reduce number of HTTP request – combine4. Image Optimization – remove bytes5. Reduce/remove rich media – i.e Flash6. Offload static files to Content Deliver

Network7. Choosing the right web hosting provider

Page 6: Best Practices on Optimizing, Securing, Scaling WordPress

WordPress Hacks - Optimization

• Update WordPress to its latest version • Remove unused/inactive third party

plugins/themes• Optimize DB occasionally (via

plugin/phpMyAdmin) • Caching WordPress • Choosing right WordPress theme / framework• Disable WordPress post revision• Load jQuery from big boys

Page 7: Best Practices on Optimizing, Securing, Scaling WordPress

WordPress Security:Is WordPress Secure?

Page 8: Best Practices on Optimizing, Securing, Scaling WordPress

What if my WordPress site got hacked

1. Check with web host 2. Restore WordPress to latest copy (personal /

web host backup)3. Lock down WordPress – refer to best

practices

Important Note: Backup, backup, backup (Schedule)

Page 9: Best Practices on Optimizing, Securing, Scaling WordPress

Lock Down WordPress - Best Practices

• Check file and folder permission • Change default WordPress prefix – “wp_”• Disabled “admin” account or set “admin” to

subscriber • Disabled third party WordPress plugin • Upgrade WordPress to latest version • Don’t install many/multiple security plugin

Page 10: Best Practices on Optimizing, Securing, Scaling WordPress

Scaling WordPress:Is WordPress scalable?

Page 11: Best Practices on Optimizing, Securing, Scaling WordPress

How?

Don’t put everything in one basket

Page 12: Best Practices on Optimizing, Securing, Scaling WordPress

General Tips

1. Choosing the right Web Hosting Provider/Platform

2. DNS – Host externally (Anycast DNS)3. Server – LAMP stack optimization4. Media/Static Files – content delivery network

(CDN)

Page 13: Best Practices on Optimizing, Securing, Scaling WordPress

Web Hosting Provider

• Conventional : Adding more physical server as u grow

• Cloud based hosting: Scale up/down resources based on supply and demand

Page 14: Best Practices on Optimizing, Securing, Scaling WordPress

DNS Hosting

• Host DNS Externaly • Anycast DNS – recommended • Reason: load balance, redundancy and high

availability • Lower TTLs is needed for HA setup

Page 15: Best Practices on Optimizing, Securing, Scaling WordPress

LAMP Stack Optimization

• OS – Linux (Free and fast)• Web Server – optimize apache.conf • Database – optimize mysql.conf• PHP – compilation • Caching – APC / Memcache

• Exploring and tried out on several methods is best way for optimization.

Page 16: Best Practices on Optimizing, Securing, Scaling WordPress

Content Delivery Network (CDN)

• Free CDN – limited resources, no SLA• Commercial CDN – can be costly depends

traffic of origins, bandwidth usage and content served

• Custom CDN – build from zero, complex setup but managed cost

Page 17: Best Practices on Optimizing, Securing, Scaling WordPress

Advice

• Be open and generous in exploring options• Be gratitude to your system admins• Willing to spend money on server

infrastructure

Page 18: Best Practices on Optimizing, Securing, Scaling WordPress

Questions & Answers

Page 19: Best Practices on Optimizing, Securing, Scaling WordPress

Thank You!

By: Simon LimWordPress ConsultantTwitter: @simonlim88

Email: [email protected]