public static function get_plugin_slug_by_path($path) {
		if (is_string($path) && $path) {
			$slug = $path;
			while (false !== strpos($slug, '/')) {
				$slug = dirname($slug);
			}
			$slug = preg_replace('/\.php$/i', '', $slug);

			return $slug ? $slug : false;
		}

		return false;
	}