Coding Standards audit

As previously discussed with @rmccue, here is the promised WP coding standards PR. I'll be amassing commits here.