WordPress Optimization markkelnar | WP | wpengine.com/optimizing-WordPress WordCamp Atlanta 2012.

Slides:



Advertisements
Similar presentations
THE BIRTH OF A BLOG. Starting Out Niche & BrandIng Identify Your Audience Personality Expertise Clear Branding.
Advertisements

Optimizing Websites with YSlow Tom Lianza Co-Founder Wishlisting.com Tom Lianza Co-Founder Wishlisting.com.
Web Performance Meetup 1 Web Performance 101 Jeremy
@beckyddesign Beckydavisdesign.com Take Control of Your Site with WordPress.
Make Drupal Run Fast increase page load speed
Case Study: Photo.net March 20, What is photo.net? An online learning community for amateur and professional photographers 90,000 registered users.
Stevesouders.com/docs/velocity-wpo pptx Disclaimer: This content does not necessarily reflect the opinions of my employer.
WordPress from Start to Finish Day 1: Installing and Using WordPress Looking at the WordPress database.
Mitchel Sellers, CEO IowaComputerGurus Inc.. Active in the DotNetNuke eco system for about 6 years Author of Professional DotNetNuke Module Programming.
Web Site Performance What makes web sites slow? Back end Front end Tools for measuring performance Firebug / YSlow Visual Studio Test Edition W3.org html.
USING WORDPRESS. WEEK 1 1.Why WP? 2.Setting Up WP 3.Exploring the Admin screen 4.Page Organization 5.Posting 6.Polls.
CHAPTER 15 WEBPAGE OPTIMIZATION. LEARNING OBJECTIVES How to test your web-page performance How browser and server interactions impact performance What.
Getting Set-up with Hosting and WordPress Gregory Young Alternative Hosting
Introduction to WordPress. Learning Outcomes Describe WordPress Compare and contrast the difference between a WordPress hosted blog and a hosted blog.
5 Key SEO Elements  5 KEY SEO Elements for YOUR Blog Mary E. Archer
Cacti Workshop Tony Roman Agenda What is Cacti? The Origins of Cacti Large Installation Considerations Automation The Current.
Fast Track to ColdFusion 9. Getting Started with ColdFusion Understanding Dynamic Web Pages ColdFusion Benchmark Introducing the ColdFusion Language Introducing.
What’s a Web Cache? Why do people use them? Web cache location Web cache purpose There are two main reasons that Web cache are used:  to reduce latency.
Analysis and Performance Information Systems 337 Prof. Harry Plantinga.
UWWD In our quest to eliminate bad websites, we present…. HALLELUJAH!!
High Performance Websites (Based on Steve Souder’s lecture) By Bhoomi Patel.
Putting the Network to Work
Learning Word Press. You will learn how to Get your own Get hosting for your website Get a design for your website Learn.
Mark Phillip markphillip.com 200s, 304s, Expires Headers, HTTP Compression, And You.
 What I hate about you things people often do that hurt their Web site’s chances with search engines.
Performance, SEO, Accessibility Ivan Zhekov Telerik Corporation
22-Aug-15 | 1 |1 | Help! I need more servers! What do I do? Scaling a PHP application.
@SEAN_P_MORRISON BAKING IN THE SEO. PAGE SPEED HOSTING SOLUTIONS CONTENT DELIVERY NETWORKS.
Creating a Web Presence Introduction to WordPress Week 1.
WordPress Web. WordPress Blogging system with full content management Personal publishing system Built on PHP scripting language and MySQL relational.
Drupal Training Syllabus Chaitanya Lakshmi
Making your website go faster! Front-end Developer, Deeson Online Alli Price.
L. Grewe LAMP, WAMP and... Motivaiton Basic Web Systems with Delivery of Static and Dynamic Web Pages html, css, media javascript (“dynamic” on client.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Drupal Jumpstart Information Systems 337 Prof. Harry Plantinga.
Copyrighted material John Tullis 10/6/2015 page 1 Performance: WebSphere Commerce John Tullis DePaul Instructor
10/13/2015 ©2006 Scott Miller, University of Victoria 1 Content Serving Static vs. Dynamic Content Web Servers Server Flow Control Rev. 2.0.
Web Performance Optimization Boban Stojanovski (Senior Front End Developer at Solaborate) Think Fast by default.
Farcry Not just a game anymore…. What is Farcry?  Farcry is a Content Management System (CMS)  It is designed to separate the jobs of site creation/design.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
Introduction and Principles Web Server Scripting.
Intro to APACHE, MySQL, and PHP & freely available (hackable) Packages Aonghus Sugrue 04 Oct 2012.
Performance & Security Satish C Ayappan (Drupal Architect- Capgemini)
Web Cache. What is Cache? Cache is the storing of data temporarily to improve performance. Cache exist in a variety of areas such as your CPU, Hard Disk.
Website: Contact:
CloudBerry Explorer for S3. CB Explorer Free to use Browse and manage files PowerShell functions Open and edit files  CloudBerry Explorer is an easy.
Site Speed: The Ultimate UX Feature… for SEO. A case study on how to increase search engine crawling and online conversion Jonathon Colman In-House SEO.
Technical SEO tips for Web Developers Richa Bhatia Singsys Pte. Ltd.
Cofax Scalability Document Version Scaling Cofax in General The scalability of Cofax is directly related to the system software, hardware and network.
Enhance Your Page Load Speed And Improve Traffic.
Effective Wordpress Hosting Service By InstantAppz.
● The most common website platform ● User friendly-easy to edit ● Constantly improving-updates, plugins, themes Why WordPress?
Drupal Basics May 30, 2012 By Sean Fitzpatrick. Sean Fitzpatrick | Welcome We're going to talk about Drupal We're going to keep it pretty.
Global Search: An Introduction and Administrator Perspective
Jill Sullivan Senior Marketing Manager Infront Webworks
Time is the enemy: Ten Core Lessons for Achieving Peak
APA-OTS WordPress Multi-Site HTTPS Migration: a Case Study
Information Systems 337 Prof. Harry Plantinga Assessment.
Web Caching? Web Caching:.
5 Optimization Techniques for WordPress Websites.
B OOST W EBSITE P ERFORMANCE WITH T HE C USTOM W ORDPRESS P LUG -I N D EVELOPMENT
Scaling and Performance
Easy Website Creation Using WordPress
CSE 461 HTTP and the Web.

10 Most Important WordPress Plugins You Must Have Website Promoters L.L.C.
Dreaming up a CMS in Go (golang)
Speed is key My personal quest for a faster website
Yale Digital Conference 2019
10 REASONS TO USE JETPACK FOR WORDPRESS IN 2019
Presentation transcript:

WordPress Optimization markkelnar | WP | wpengine.com/optimizing-WordPress WordCamp Atlanta 2012

WordPress Optimization Who is this guy? Head of Technology, System Administration, database, product development at WP Engine I'm not a power-point guy, please excuse my mistakes. If I had my way, this presentation would look like this class WCATL extends presentation { protected $name; function __constructor() { parent::__constructor(); $this->name = 'Word Camp Atlanta'; $this->bg_color = '#808080'; } $p = new WCATL(); $p->scroll();

WordPress Optimization Why are you here? You want your site fast Keep readers/customers on your site Survive heavy visitor load Scale – When you're on techcrunch, mashable or daringfireball, you want to survive

WordPress Optimization You are doing it wrong! But you don't know it.

WordPress Optimization Who are you? Site admin, content contributor Designer, theme developer Plugin developer Backend developer, admin, dba, etc.

WordPress Optimization What can I optimize? Hosting is about layers, but which one? Layman's term, not that techno-jargon... HTML, CSS, JS, images, web server, database, WordPress, theme, plugin, cache, minify LAMP, TTL, CDN, cache, Apache, PHP, static content, dynamic content

WordPress Optimization Where do I start? Use profiling tools to find your bottleneck WP-Tuner WPDB Profiling WPspeedometer.com Yslow webpagetest.org yougetsignal.com (reverse IP address) Command line fun: `ab -n (Apache Benchmark) `curl -I wpengine.com` (that's a dash-eye)

WordPress Optimization

CDN Content Delivery Network Have another service serve your static files (jpg, js, css) from their domain Say that again? Off-load statics (jpg, png, css, js) so it doesn't load from your web server Store static files closer to end user – global proximity Paths in your HTML point the browser to the CDN service: cdn.yourdomain.com/wp-content/themes/image.png Cloud cache service (CloudFlare), Amazon S3, etc

WordPress Optimization CDN Paths – It's all in what your HTML tells the browser Without CDN With CDN When the service mark.some-cdn-service.com needs the image, after TTL has expired, the cdn service loads (pulls) a fresh copy from markkelnar.com

WordPress Optimization Off-loading content Poor-man's CDN, serve images from Flickr Amazon S3 – host entire site there, or even just statics Use external source for comments, like disqus-comment-system Popular posts / related content metrics – outbrain, nrelate

WordPress Optimization Reduce, reuse WPSmush it plugin Everytime you add an image, it does it for you. Yahoo! Smush all your existing images. Do the other fun front end developer things Minimize HTTP requests – CSS sprites CSS at the top of the page, JS at the bottom Search for Yahoo performance rules Ads on your page Load them asynchronously or maybe iframe. Are your ads cache busting? Do they have to?

WordPress Optimization Load from multiple sub-domains yourdomain.com good: foo1.yourdomain.com, foo2.yourdomain.com better: foo1.otherdomain.com, foo2.otheromain2.com Difficult to do. More overhead to configure and support.

WordPress Optimization That's front end tweaks Now what? What good is a fast front end with a slow back end? What if the back end can't handle what still comes through?

WordPress Optimization Review your theme Theme – know your theme. Did you buy it? Codex? Off the street? HTML - does it validate? CSS at the top, JS at the bottom (not inline) PHP - Any weird code (if it looks bad, it probably is) - weary of file_get_contents() / fgets() - base64_decode() (injected malware or unnecessarily compressed code)

WordPress Optimization Pull your data wisely What could possibly go bad here?

WordPress Optimization Keep WP up to date Why wouldnt you? Code optimizations, core changes, security

WordPress Optimization Unused plugins - deactivate plugins you dont use at all - delete plugins you dont use at all

WordPress Optimization Bad PHP code Poor use of DB calls, update/insert to DB on every page load Don't scale under load, cripple the back end Put stuff on wp-cron scheduler that pops too often. Ex: (but not limited to) - backupwordpress backwpup- broken-link-checker - dynamic-related-posts- file-commander - google-sitemap-generator- LinkMan (MyReviewPlugin Link Man)- MyRP (MyReviewPlugin) - wp-symposium-alerts Beware of poor performers

WordPress Optimization RSS feed How many requests to your blog are /feed? Are you using a service like feedburner?

WordPress Optimization Show me the cache! Let's start with plugins W3-Total-Cache, WPSuperCache Has features to do CDN path rewrites, page and object and db caching, minification, cache purging/clearing WP-Minify JS, CSS – remove white space, comments sent to end user (browser)

WordPress Optimization Browser Caching What is it? HTTP Cache-Control, Expires headers, Entity Tags (ETags) Already done for me? W3-Total-Cache, WPSuperCache Gzip compression on server and uncompressed in browser

WordPress Optimization Server side caching What is it? saves bandwidth and improves performance HTTP Accelerator server– reverse proxy caching behind nginx Memcached server – object caching, persistent vs transients opcode: caching compiled PHP code bytecode object caching: in memory key-value storage for data, transients page caching: full caching of HTML page Tools for the job: APC, Eaccerator, Xcache, Zend Optimizer, ionCube

WordPress Optimization Web server - Move as much as possible out of Apache - Stand up Nginx in front of Apache (reverse proxy) - Don't run your PHP in Apache at all, use PHP Fast CGI, lighthttpd, etc. - Server static files from disk in Nginx - Put known redirects (301/302 in Nginx config) - Move.htaccess rules to Apache httpd.conf or better yet Nginx config. - Google Page Speed Apache module

WordPress Optimization MySQL DB - Optimize tables, clean house - PHPMyAdmin, OptimizeDB, manually - Tables, Innodb (transactional, faster for writes) vs MyISAM (can be less memory) - Master/Slave replication + HyperDB - dedicated server(s) - turn on log and investigate mysql-slow.log - database caching - mysqltuner.pl

WordPress Optimization If you're reading this, you're too geeky Server: metal server vs virtual or cloud instance OS: *nix, sun, MS Packages: compiled, package installed Hardware: CPU + cores, memory, SSD disk drives DB : MySQL, Percona,

WordPress Optimization No-Nos - Don't edit WP-core files (wp-includes, wp-admin) - Amazon EC2 not silver bullet - Beware of plugins that update database tables on every page load. Use external resources.

WordPress Optimization Q&A