This plugin is a set of tools to assist in developing plugins in Moodle.
This <50 slide presentation by Justin Filip of Remote-Learner provides an overview of the best practices for Moodle development. Included in the presentation are tips for development tools and environments for effectively working with Moodle, security, types of addons, and testing.
Access the presentation here: http://www.slideshare.net/justinfilip/moodle-development-best-pracitces
Moodle’s profiling tool
When your software is too slow, you need measurements to tell you which are the slow bits. Tools that do that are called profilers. One of the better profiling tools for PHP is called XHProf. The good news is that it has already been integrated into Moodle, and there is documenation about getting it working. Basically, you just need to install a PHP extension and turn on some options under Admin -> Development -> Profiling.
Code generation feature in moosh 0.5