Drupal and Wordpress both have a list of guidelines based on the PEAR Coding Standards: Drupal Coding Standards | Wordpress Coding Standards I wish I had followed such guidelines from the beginning, but it would be better to implement them now rather than later so I'm putting further development on hold until the current code is cleaned up and the coding standards become second nature. There may be some PEAR standards that don't apply to Hotaru, in which case I'll add notes to this thread later. If you'd like to assist me in tidying up the code, that would be wonderful! Update: Having made a start on this, it's safer to say *loosely* based on PEAR's coding standards than trying to follow them rigidly. One bonus of all this is that phpDocumentor can generate automatic documentation, which I'll put in these forums when it's all done. (Edit: phpDocumentor wouldn't play nice so I've dropped that idea for now). Please note that although the suggested coding standards in the following posts still apply, the code snippets themselves are from an older version of Hotaru.