Michael Novotnymanovotny

How To Test And Troubleshoot WordPress Plugins And Themes

I spoke at WordCamp Atlanta last week. My presentation, Testing and Troubleshooting WordPress Plugins and Themes, is the culmination of three years leading quality at 8BIT.

WordCamp Atlanta 2013 logo

Here's the full presentation, with cliff notes and resource links for each slide.

Troubleshoot WordPress Plugins And Themes — Slide 1
Troubleshoot WordPress Plugins And Themes — Slide 2
Troubleshoot WordPress Plugins And Themes — Slide 3
Troubleshoot WordPress Plugins And Themes — Slide 4
Troubleshoot WordPress Plugins And Themes — Slide 5
Troubleshoot WordPress Plugins And Themes — Slide 6
Troubleshoot WordPress Plugins And Themes — Slide 7
Troubleshoot WordPress Plugins And Themes — Slide 8
Troubleshoot WordPress Plugins And Themes — Slide 9
Troubleshoot WordPress Plugins And Themes — Slide 10
Troubleshoot WordPress Plugins And Themes — Slide 11
/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false ); // change to true if Debug Bar is off
define( 'SCRIPT_DEBUG', true );
@ini_set( 'display_errors', 0 ); // Hide errors from being displayed on screen
Troubleshoot WordPress Plugins And Themes — Slide 12
Troubleshoot WordPress Plugins And Themes — Slide 13
Troubleshoot WordPress Plugins And Themes — Slide 14

Many Debug Bar extensions give a deeper view into what's happening:

Troubleshoot WordPress Plugins And Themes — Slide 15
Troubleshoot WordPress Plugins And Themes — Slide 16
Troubleshoot WordPress Plugins And Themes — Slide 17
Troubleshoot WordPress Plugins And Themes — Slide 18
Troubleshoot WordPress Plugins And Themes — Slide 19
Troubleshoot WordPress Plugins And Themes — Slide 20
Troubleshoot WordPress Plugins And Themes — Slide 21
define( 'JETPACK_DEV_DEBUG', true );
Troubleshoot WordPress Plugins And Themes — Slide 22
Troubleshoot WordPress Plugins And Themes — Slide 23
Troubleshoot WordPress Plugins And Themes — Slide 24

At 8BIT we use process of elimination to find where a failure starts:

  1. If things aren't working, we disable all plugins first to see if that resolves the issue.
  2. If things start working again, we enable plugins one by one until the issue reappears. That's our culprit, and we can start troubleshooting the plugin.
  3. If plugins aren't the issue, we switch to a default WordPress theme like TwentyEleven or TwentyTwelve. If the issue goes away, it's a theme problem we need to resolve.
  4. If neither plugins nor themes are causing the issue, it's WordPress core or a server configuration issue.
Troubleshoot WordPress Plugins And Themes — Slide 25
Troubleshoot WordPress Plugins And Themes — Slide 26
Troubleshoot WordPress Plugins And Themes — Slide 27
Troubleshoot WordPress Plugins And Themes — Slide 28
Troubleshoot WordPress Plugins And Themes — Slide 29
Troubleshoot WordPress Plugins And Themes — Slide 30
Troubleshoot WordPress Plugins And Themes — Slide 31
Troubleshoot WordPress Plugins And Themes — Slide 32

Using the Chrome DevTools Toggle device toolbar is a better approach now.

Troubleshoot WordPress Plugins And Themes — Slide 33
Troubleshoot WordPress Plugins And Themes — Slide 34

An example of a website in IE 8 running on a Windows 7 machine all from within my browser. The websites are fully interactive, not just screenshots.

Troubleshoot WordPress Plugins And Themes — Slide 35

You can download the slides, watch my session, or watch all the other WordCamp Atlanta 2013 sessions.

A special thanks to Jared Erickson for making our team look united in our presentations. The guy can make anything look good — even slides.

And thanks to everyone who attended my talk and everyone who came to WordCamp Atlanta. Meeting you all face-to-face was a pleasure, and the conversations we had are priceless.