src/class-plugin-checker.php
public function plugin_active( $plugin_file, $plugin_name ) {
		return $this->add_check(
			function() use ( $plugin_file ) {
				return in_array(
					$plugin_file,
					(array) get_option( 'active_plugins' ),
					true
				);
			},
			sprintf( '%s must be installed and active', $plugin_name )
		);
	}
public function plugin_active( $plugin_file, $plugin_name ) {
		return $this->add_check(
			function() use ( $plugin_file ) {
				return in_array(
					$plugin_file,
					(array) get_option( 'active_plugins' ),
					true
				);
			},
			sprintf( '%s must be installed and active', $plugin_name )
		);
	}
public function plugin_active ( $ plugin_file , $ plugin_name ) { return $ this -> add_check ( function ( ) use ( $ plugin_file ) { return in_array ( $ plugin_file , ( array ) get_option ( 'active_plugins' ) , true ) ; } , sprintf ( '%s must be installed and active' , $ plugin_name ) ) ; }
Check whether a plugin is active.

@param  string $plugin_file Plugin file to check relative to plugins dir.
@param  string $plugin_name Plugin name for notifications.

@return self
Check whether a plugin is active .