Are we allowed to use the Allman (BSD) indent style when coding WordPress plugins and themes?

WordPress.org does not have any hard requirements for code styles for plugins or themes.

In the plugin guidelines, the relevant section is #4, “Keep your code (mostly) human readable.” Mainly it is about obfuscation. The most relevant line is this:

We recommend following WordPress Core Coding Standards.

Note the word recommend, there. This is not a hard requirement.

The relevant portion of the theme review guidelines doesn’t really mention code style directly, so there’s no requirements for this kind of thing for themes either.

I’m kind of glad that there is some freedom here, but you will find that there’s plenty of very messy code in the plugin directory, that doesn’t really follow any one code style consistently at all. That’s allowed—for better or worse. 🙂