In reply to Sally G..

The Coding Standards handbook might be a good starting point ?
https://developer.wordpress.org/coding-standards/wordpress-coding-standards/