Tools to automatically ensure boilerplate code added


When developing a plugin, there are a number of best practices that are easily missed. I consider these to be boilerplate code. A couple of them are:

  1. Ensuring each folder has a Silence is golden index.php.
  2. Start each PHP file with a check for ABSPATH and exit if necessary.

(Are there others I have missed?)

There are a few problems with these:

  1. These steps are easily forgotten and the plugin will continue to work perfectly.
  2. They add unnecessary noise to the codebase.

Are there any development tools that will automatically adding these items?

vegemite4me 4 months 0 Answers 10 views 0

Leave an answer