private static function format_plugin_slug($key) { $slug = explode('/', $key); $slug = explode('.', end($slug)); return $slug[0]; }