'php', 'standard' => WP_PLUGIN_CHECK_PLUGIN_DIR_PATH . 'phpcs-rulesets/plugin-review.xml', ); } /** * Gets the description for the check. * * Every check must have a short description explaining what the check does. * * @since 1.1.0 * * @return string Description. */ public function get_description(): string { return __( 'Runs PHP_CodeSniffer to detect certain best practices plugins should follow for submission on WordPress.org.', 'plugin-check' ); } /** * Gets the documentation URL for the check. * * Every check must have a URL with further information about the check. * * @since 1.1.0 * * @return string The documentation URL. */ public function get_documentation_url(): string { return __( 'https://developer.wordpress.org/plugins/plugin-basics/best-practices/', 'plugin-check' ); } }