# wp-extra/trunk/src/Base.php

WP EXtra – One Click Optimize, version trunk. 19 lines.

- Page: https://pluginprobe.com/plugins/wp-extra/trunk/code/src/Base.php
- Raw: https://pluginprobe.com/plugins/wp-extra/trunk/raw/src/Base.php
- Modified: 2026-08-26T17:59:58+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-extra/trunk/code/src/Base.php#L10-L20`.

```php
<?php
namespace WPEXtra;

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class Base {
	protected $features = [];

	public function __construct() {
		foreach ( $this->features as $feature ) {
			if ( Helper::is_feature_active( $feature ) && method_exists( $this, $feature ) ) {
				$this->$feature();
			}
		}
	}
}

```
