Add generic get_plugin_requirement() function and change expected structure for plugi...