Mikkel has written an article about what to do and what not to do when developing WordPress sites.
These are 11 personal «rules» for WordPress theme or plugin developers. They’re based on my own experience developing for the platform and bad practices I frequently see in WordPress themes and plugins. In my opinion, adhering to these rules will help you create better WordPress content.
Go read it now: 11 golden rules for WordPress developers