Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼0.47ms] Passed 4 tests
Server-side resources used by OPcache Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 40.72 ▲3.70 |
Dashboard /wp-admin | 3.41 ▲0.11 | 48.86 ▼0.95 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.83 ▼0.30 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 92.42 ▼4.34 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 42.15 ▲9.18 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 3.31 | 33.41 |
OPcache Manager /wp-admin/admin.php?page=opcm-settings | 3.66 | 41.40 |
OPcache /wp-admin/admin.php?page=opcm-viewer | 4.42 | 43.14 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 3.31 | 34.88 |
OPcache /wp-admin/admin.php?page=opcm-tools | 4.37 | 47.44 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 3.35 | 35.16 |
Server storage [IO: ▲2.10MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 460 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_opcm_statistics |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for OPcache Manager
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 14.34 ▼0.00 | 1.88 ▲0.41 | 47.34 ▲6.31 |
Dashboard /wp-admin | 2,267 ▲90 | 5.62 ▲0.09 | 84.83 ▲1.56 | 38.40 ▼1.85 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.02 ▲0.04 | 33.89 ▼7.60 | 36.01 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,576 ▲45 | 18.19 ▼5.03 | 612.69 ▼37.33 | 80.44 ▲25.12 |
Media Library /wp-admin/upload.php | 1,471 ▲71 | 4.22 ▲0.02 | 97.79 ▼0.16 | 42.47 ▼0.31 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 940 | 2.00 | 24.80 | 29.26 |
OPcache Manager /wp-admin/admin.php?page=opcm-settings | 1,058 | 2.05 | 26.17 | 41.13 |
OPcache /wp-admin/admin.php?page=opcm-viewer | 4,155 | 4.93 | 164.29 | 82.94 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 943 | 2.00 | 22.77 | 25.83 |
OPcache /wp-admin/admin.php?page=opcm-tools | 1,987 | 2.20 | 28.59 | 38.89 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 1,112 | 2.14 | 25.06 | 33.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/opcache-manager/public/partials/opcache-manager-public-display.php
- 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/opcache-manager/includes/libraries/psr/http-message/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Client\\ClientExceptionInterface' not found in wp-content/plugins/opcache-manager/includes/libraries/psr/http-client/RequestExceptionInterface.php:14
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/opcache-manager/perfopsone/class-installer.php on line 12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/opcache-manager/includes/libraries/psr/log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'cebe\\markdownparser\\Parser' not found in wp-content/plugins/opcache-manager/includes/libraries/markdown/MarkdownParser.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/opcache-manager/admin/partials/opcache-manager-admin-settings-main.php:14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/opcache-manager/perfopsone/class-installer.php on line 12
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/opcache-manager/perfopsone/class-installer.php on line 12
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/opcache-manager/includes/libraries/psr/http-message/ResponseInterface.php:20
- > PHP Warning
Use of undefined constant OPCM_VENDOR_DIR - assumed 'OPCM_VENDOR_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/opcache-manager/includes/libraries/class-libraries.php on line 64
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: monitor, cache, analytics, opcache, zend
opcache-manager/opcache-manager.php Passed 13 tests
The principal PHP file in "OPcache Manager" v. 2.11.0 is loaded by WordPress automatically on each request
73 characters long description:
OPcache statistics and management right in the WordPress admin dashboard.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin36,361 lines of code in 429 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,923 | 2,305 | 20,488 |
PHP | 110 | 1,150 | 6,780 | 9,381 |
SVG | 285 | 0 | 1 | 4,251 |
CSS | 13 | 275 | 2 | 1,822 |
Markdown | 7 | 155 | 0 | 366 |
JSON | 2 | 0 | 0 | 53 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 133)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 264.00 |
Average method complexity | 3.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 133.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 13 | |
Traits | 15 | |
Classes | 67 | |
▷ Abstract classes | 2 | 2.99% |
▷ Concrete classes | 65 | 97.01% |
▷ Final classes | 0 | 0.00% |
Methods | 622 | |
▷ Static methods | 215 | 34.57% |
▷ Public methods | 455 | 73.15% |
▷ Protected methods | 110 | 17.68% |
▷ Private methods | 57 | 9.16% |
Functions | 17 | |
▷ Named functions | 6 | 35.29% |
▷ Anonymous functions | 11 | 64.71% |
Constants | 59 | |
▷ Global constants | 48 | 81.36% |
▷ Class constants | 11 | 18.64% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected