Added some inline documentation.
By default return null.
Also added an test for an not existing status.
WordPress Coding Standards optimizations.