| @@ -7,8 +7,11 @@ | ||
| 7 | 7 | namespace Extendify; |
| 8 | 8 | |
| 9 | 9 | defined('ABSPATH') || die('No direct access.'); |
| 10 | 10 | |
| 11 | +use Extendify\Mcp\Availability; | |
| 12 | +use Extendify\Mcp\Connections; | |
| 13 | +use Extendify\Mcp\Log; | |
| 11 | 14 | use Extendify\Shared\Services\Sanitizer; |
| 12 | 15 | use Extendify\PartnerData; |
| 13 | 16 | |
| 14 | 17 | /** |
| @@ -35,12 +38,10 @@ | ||
| 35 | 38 | */ |
| 36 | 39 | // phpcs:ignore PSR12.Properties.ConstantVisibility.NotFound |
| 37 | 40 | const AVAILABLE_TESTS = [ |
| 38 | 41 | 'AutoLaunch.HideEnhanceAI', |
| 39 | - 'AutoLaunch.SubmitOutside', | |
| 40 | 42 | 'AutoLaunch.SubmitCreateWebsite', |
| 41 | 43 | 'AutoLaunch.DescriptionPlaceholderLaw', |
| 42 | - 'AutoLaunch.HeaderParagraphOld', | |
| 43 | 44 | 'AutoLaunch.MigrateScreen', |
| 44 | 45 | ]; |
| 45 | 46 | |
| 46 | 47 | /** |
| @@ -151,8 +152,13 @@ | ||
| 151 | 152 | 'lastUpdatedPost' => $this->getLastUpdatedPost('post'), |
| 152 | 153 | 'lastLoginAdmin' => $this->getLastAdminLogin(), |
| 153 | 154 | 'hasImprint' => $this->hasImprint(), |
| 154 | 155 | ]); |
| 156 | + | |
| 157 | + if (Availability::offered()) { | |
| 158 | + $insights['mcp'] = ['usage' => Log::usage(), 'connections' => Connections::count()]; | |
| 159 | + } | |
| 160 | + | |
| 155 | 161 | return $insights; |
| 156 | 162 | }); |
| 157 | 163 | } |
| 158 | 164 | |