When WordPress was developed, right from the start, Matt Mullenweg, the chief programmer and soon to be CEO of Automattic, the company behind WordPress, enforced a long list of rules regarding the code writing that every core contributor have to comply to. Those rules defines how the code should appear. Here is the full list of PHP code standards:
Coding standards have immense importance in developing for WordPress and everyone can implement those when developing for WordPress. It does not matter if you are writing customized plugin for your customer or child theme.
But first let us discuss about coding standards. Why should we use standards? Basically, the code should work, right? Why does anyone should care if there is only single space between the condition clauses or if the some documentation remark should start with a capital letter and end with a full stop?
Coding standards are very common in almost every framework and system. Code that is written by well-defined rules have huge advantages over code that it isn’t.