# wp-optimize/4.7.0/includes/dashboard/interface-wp-optimize-dashboard-interface.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 4.7.0. 24 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/4.7.0/code/includes/dashboard/interface-wp-optimize-dashboard-interface.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/4.7.0/raw/includes/dashboard/interface-wp-optimize-dashboard-interface.php
- Modified: 2026-09-21T13:29:32+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/wp-optimize/4.7.0/code/includes/dashboard/interface-wp-optimize-dashboard-interface.php#L10-L20`.

```php
<?php

if (!defined('ABSPATH')) die('Access denied.');

if (!interface_exists('WP_Optimize_Dashboard_Interface')) :

/**
 * Contract for all dashboard module data classes.
 *
 * Each implementation collects the data needed to render one module card.
 * The returned array must include it at minimum: bool $active Whether the module is enabled/running & string $label Human-readable module name (translated).
 */
interface WP_Optimize_Dashboard_Interface {

	/**
	 * Collects and returns the module's data payload.
	 *
	 * @return WpoDashboardCacheData|WpoDashboardImagesData|WpoDashboardMinifyData|WpoDashboardDatabaseData
	 */
	public function collect(): array;
}

endif;

```
