element119 / module-admin-opcache-report

element119/module-admin-opcache-report

A Magento 2 module to show some PHP OpCache-related information in the admin.

  • element119
magento2-module Compatibility: 2.4.7 Code Quality: Fail Tests: N/A Security: Pass proprietary

element119 | Admin OpCache Report

📝 Features

✔️ Provides a current health check of the PHP OpCache

✔️ Flush PHP OpCache from the admin

✔️ Theme agnostic

✔️ Built in accordance with Magento best practises

✔️ Dedicated module configuration section and custom admin user controls

✔️ Seamless integration with Magento

✔️ Built with developers and extensibility in mind to make customisations as easy as possible

✔️ Installable via Composer

⏳ Logging of OpCache statistics for temporal analysis

⏳ Data visualisation


🔌 Installation

Run the following command to install this module:

composer require element119/module-admin-opcache-report
php bin/magento setup:upgrade

⏫ Updating

Run the following command to update this module:

composer update element119/module-admin-opcache-report
php bin/magento setup:upgrade

❌ Uninstallation

Run the following command to uninstall this module:

composer remove element119/module-admin-opcache-report
php bin/magento setup:upgrade

📚 User Guide

Configuration for this module can be found in the Magento admin under Stores -> Settings -> Configuration -> Advanced -> System -> PHP OpCache Report.


OpCache Report

The OpCache information can be found in the admin under System -> Tools -> PHP OpCache Report.


Memory Units

The units used when referencing memory in the OpCache report. The default value is GB.


Float Precision

The number of decimal places to use in the OpCache report.


Date Format

The date format to use in the OpCache report. Supports
PHP date formats.


📸 Screenshots & GIFs

Report - OpCache Disabled

e119-opcache-report-disabled

Report - OpCache Enabled

e119-opcache-report-enabled

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
1.1.1 stable Fail Magento 2.4.7 Details 2025-03-26 23:45:56
1.1.0 stable Not tested Not yet tested Details 2024-09-04 19:51:09
1.0.0 stable Not tested Not yet tested Details 2024-09-01 12:42:15

Requires 3

Package Constraint
php ~8.1.0 || ~8.2.0 || ~8.3.0
hyva-themes/module-magento2-admin ^1.1
magento/module-backend *

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass not tested
2.4.9 not tested not tested

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Fail 25 2 errors, 23 warnings (ruleset: Magento2) — 2 auto-fixable with phpcbf
PHPMD Warning 2 2 rule violations (UnusedFormalParameter:2)
Cpd Pass 0
Composer validate Info 1 valid; 1 advisory note (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 3 3
2.4.8 3 N/A
2.4.9 N/A N/A

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
proprietary
Authors

More from element119

View vendor
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.