Testing Your WP Plugins: A Practical Guide

Proper testing is essential to software quality and WordPress plugins should not be an exception. Every line of code, no matter how short or simple in its logic, is prone to errors and cannot be labeled as working, unless properly tested. Continuous testing and integration are key factors for establishing and maintaining code quality for software projects of all sizes.

This session aims at presenting simple guidelines for writing efficient unit tests for your WordPress plugins, making use of utilities, such as WP-CLI, some software quality tools, and some good coding practices in general.

What You’ll Learn

  • Recommended tools for plugin testing
    • PHPUnit
    • WP-CLI
  • Prerequisites for plugin testing
  • Best practices for testing your plugins