Planning ahead / starting development

If you have ever worked in a professional development shop, you are probably familiar with the careful preparations, discussions, wireframes, and mock-ups that are made before any code is written. Projects born of haphazard random hacking are always harder to upgrade and maintain, so it is worth your time to plan your actions before writing a single line of code.

The following are a few important aspects to have in mind when starting development of your plugin:

  • Interfaces
  • Localization
  • Documentation for the developer
  • Version control
  • Environment
  • Tests
  • Security

Interfaces

As you write code, you should constantly ask yourself, "How should this component be used?" If you are coding a particular function, you should choose ...

Get WordPress 3 Plugin Development Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.