Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Optimize Wordpress

Optimize Wordpress

This presentation was presented on October 31, 2012 at Barcamp Tabpa Bay, FL. It was made to discuss the basics of Optimizing your WordPress Site.

David Parsons

October 13, 2012
Tweet

More Decks by David Parsons

Other Decks in Programming

Transcript

  1. Why Optimize Stupid Google Speed has been a ranking factor

    sense 2010 Usability Quality Credibility
  2. Plugins Image Compression General - Upload images at exact size

    needed Plugin - WP Smush.it (being dropped) CW Image Optimizer EWWW Image Optimizer Applications - One for Mac and One for PC imageoptim.com and pnggauntlet.com
  3. Plugins Social Media Tweet Old Posts TwitPic WP to Twitter

    Twitter Feed for WordPress ShareThis & TweetMeme Button
  4. Plugins Make Search Not Suck Search by Relevance, Not by

    Date Enhance The Display of Results
  5. Final Note on Plugins Resist the Urge for Several Plugins

    Deactivate and Delete old Plugins/Themes Keep Plugins Updated Go for the Better Supported Plugins
  6. Why Faster? Why is 3 or 4 seconds not good

    enough? Phones People are in a rush Around 5% of the web still uses DialUp “For Every 100ms Increase in load time, sales decreased by 1%” - Amazon 2007
  7. Hope Your Doing This Have separate file for CSS Load

    Javascript and other bigger things at bottom of page
  8. Faster Quick Fix #1 - Cache Browser Cache (Saving Files)

    Expires Headers Server Cache (One Static File) Plugin - W3 Total Cache
  9. More On Browser Cache https://github.com/h5bp/html5-boilerplate/ blob/master/.htaccess Up To You! #

     -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ #  Expires  headers  (for  better  cache  control) #  -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐
  10. Faster Quick Fix #2 - Combine Combine Your CSS Files

    Combine JS Files Tool - CodeKit Why? - Less Server Requests
  11. Faster Quick Fix #3 - Theme Choose the Right Theme

    Themes with lots of Graphics will take Longer to Load Double Check CSS and JS Keep Number of Requests in Mind
  12. Faster Quick Fix #5 - GZIP https://github.com/h5bp/html5-boilerplate/ Or Use a

    Plugin GZIP Enable GZIP Output Gzippy #  -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐ #  Gzip  compression #  -­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐-­‐
  13. Faster Not A Quick Fix! Hosting Shared Host Virtual Private

    Server Fully Dedicated Colocation (HostDime.com Specific)
  14. Stronger! Go Away Spammers! Spammers are constantly injecting scripts Slowing

    Your Server Down Essential Plugins Akismet/JetPack Spam Free WordPress Other Option - Captcha
  15. Stronger Don’t Use ‘admin’ Don’t use ‘admin’ as your username

    WordPress 3.0+ lets you change it For older versions - Open phpMyAdmin and run this query:
  16. Stronger P: Secure WordPress • Removes error-information on login-page •

    Adds index.php plugin-directory (virtual) • Removes the wp-version, except in admin-area • Removes Really Simple Discovery • Removes Windows Live Writer • Removes core update information for non-admins • Removes plugin-update information for non-admins • Removes theme-update information for non-admins (only WP 2.8 and higher) • Hides wp-version in backend-dashboard for non-admins • Removes version on URLs from scripts and stylesheets only on frontend • Blocks any bad queries that could be harmful to your WordPress website
  17. Stronger Move wp-config.php WordPress automatically looks for wp- config.php if

    it cannot find it This way, no one except a user with FTP or SSH access to your server will be able to read the file
  18. Stronger Change Database Tables Prefixes Default table prefix is wp_...

    If left in tact, everyone knows the name Can edit by going into wp-config.php Plugin - WP Secure Scan
  19. Stronger Change Default Secret Keys In wp-config.php you have 4

    secret keys Makes logging in to your site even harder for those crazy hackers define('AUTH_KEY',  ''); define('SECURE_AUTH_KEY',  ''); define('LOGGED_IN_KEY',  ''); define('NONCE_KEY',  '');
  20. Stronger Protect wp-admin Plugin - AskApache Password Protect Block people

    from finding your content though server access ... use .htaccess wp-includes wp-content Plugins & Themes
  21. Stronger Backups Plugins WP Database Backup WP Backup to DropBox

    Backup to Google Drive Premium - VaultPress
  22. Thank You! [email protected] Tell me how I did! @david_j_parsons Will

    Post Slides on Twitter davidparsons.me Slides will be on BarCamp Site HostDime.com