Sometimes, your plugin may require the use of non-standard functions that are only available if PHP was compiled using special options. You can use PHP's get_loaded_extensions()
function to list all loaded extensions on the server you developed on, and you can then test against this list on the production server. This is a bit more advanced than the standard tests, but it can really help ensure that the environment is set up correctly before someone tries to run your plugin.
/** * PHP might have been compiled without some module that you require. Pass this * function an array of $required_extensions and it will register a message * about any missing modules. * * @param array $required_extensions an array of PHP modules you want to * ensure are installed on your server, e.g. array('pcre', 'mysqli', 'mcrypt'); * @return none An error message is registered in self::$errors if the test fails. */ public static function php_extensions($required_extensions) {...