2. WHO AM I
• Using WordPress since 2004 (version 1.2)
• WordPress Professional for hire
3. WHY DO IT RIGHT
• Save yourself time
• Save others time
• Save your clients money
• Save everybody from headaches
4. WAYS TO DO IT RIGHT
• Learn to organize your code
• ... document your code
• ... optimize your code
• Don’t reinvent the wheel
• Action Hooks and Filters
• Other very bad things to avoid
5. FIRST THINGS FIRST
• Use the debug bar plugin
define(‘WP_DEBUG’, true);
define(‘WP_DEBUG_DISPLAY, false);
define(‘SAVEQUERIES’, true);
6. ORGANIZE YOUR CODE
• What goes in a plugin?
• What goes in a theme?
• Utilize mu-plugins/
11. OPTIMIZE YOUR CODE
• Make sure the code you’re expecting matches
• Use $wpdb class in the correct cases, WP_Query otherwise
• Sanitize everything http://codex.wordpress.org/Data_Validation
12. DON’T REINVENT THE WHEEL
• Clever code is not clever.
• Use built in APIs and methods