# plugin-check/1.5.0/includes/Checker/Check.php

Plugin Check (PCP), version 1.5.0. 88 lines.

- Page: https://pluginprobe.com/plugins/plugin-check/1.5.0/code/includes/Checker/Check.php
- Raw: https://pluginprobe.com/plugins/plugin-check/1.5.0/raw/includes/Checker/Check.php
- Modified: 2024-08-28T12:41:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/plugin-check/1.5.0/code/includes/Checker/Check.php#L10-L20`.

```php
<?php
/**
 * Interface WordPress\Plugin_Check\Checker\Check
 *
 * @package plugin-check
 */

namespace WordPress\Plugin_Check\Checker;

use Exception;

/**
 * Interface for a single check.
 *
 * @since 1.0.0
 */
interface Check {
	/**
	 * Stability value for stable checks.
	 *
	 * @since 1.0.0
	 * @var string
	 */
	const STABILITY_STABLE = 'STABLE';

	/**
	 * Stability value for experimental checks.
	 *
	 * @since 1.0.0
	 * @var string
	 */
	const STABILITY_EXPERIMENTAL = 'EXPERIMENTAL';

	/**
	 * Returns the check's stability.
	 *
	 * @since 1.0.0
	 *
	 * @return string One of the check stability constant values.
	 */
	public function get_stability();

	/**
	 * Amends the given result by running the check on the associated plugin.
	 *
	 * @since 1.0.0
	 *
	 * @param Check_Result $result The check result to amend, including the plugin context to check.
	 *
	 * @throws Exception Thrown when the check fails with a critical error (unrelated to any errors detected as part of
	 *                   the check).
	 */
	public function run( Check_Result $result );

	/**
	 * Gets the categories for the check.
	 *
	 * Every check must have at least one category.
	 *
	 * @since 1.0.0
	 *
	 * @return array The categories for the check.
	 */
	public function get_categories();

	/**
	 * 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;

	/**
	 * 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;
}

```
