Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.92MB] [CPU: ▲4.18ms] Passed 4 tests
A check of server-side resources used by APCu Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.82 | 48.91 ▲7.46 |
Dashboard /wp-admin | 4.28 ▲0.93 | 54.40 ▼12.60 |
Posts /wp-admin/edit.php | 4.33 ▲0.97 | 60.40 ▲11.87 |
Add New Post /wp-admin/post-new.php | 6.88 ▲0.99 | 93.83 ▲9.98 |
Media Library /wp-admin/upload.php | 4.20 ▲0.97 | 47.70 ▲11.94 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 4.18 | 42.71 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 4.22 | 39.18 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 4.17 | 42.60 |
APCu /wp-admin/admin.php?page=apcm-viewer | 4.81 | 48.36 |
APCu /wp-admin/admin.php?page=apcm-tools | 4.48 | 42.77 |
APCu Manager /wp-admin/admin.php?page=apcm-settings | 4.27 | 42.77 |
Server storage [IO: ▲2.60MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 569 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_apcm_details |
wp_apcm_statistics |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by APCu Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲116 | 14.71 ▲0.37 | 1.88 ▲0.09 | 42.26 ▼1.93 |
Dashboard /wp-admin | 2,261 ▲81 | 5.63 ▼0.04 | 93.81 ▼0.23 | 39.01 ▼4.23 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.03 ▲0.02 | 40.81 ▲3.80 | 35.98 ▲2.99 |
Add New Post /wp-admin/post-new.php | 1,562 ▲32 | 23.36 ▲0.21 | 654.34 ▲59.53 | 58.00 ▲0.79 |
Media Library /wp-admin/upload.php | 1,464 ▲64 | 4.19 ▲0.04 | 99.71 ▲3.10 | 41.41 ▼1.26 |
Analytics /wp-admin/admin.php?page=perfopsone-analytics | 917 | 2.01 | 25.77 | 28.64 |
Control Center /wp-admin/admin.php?page=perfopsone-dashboard | 1,107 | 2.18 | 28.83 | 36.22 |
Tools /wp-admin/admin.php?page=perfopsone-tools | 938 | 2.00 | 26.49 | 25.55 |
APCu /wp-admin/admin.php?page=apcm-viewer | 3,233 | 5.17 | 194.96 | 81.12 |
APCu /wp-admin/admin.php?page=apcm-tools | 1,134 | 2.11 | 27.60 | 34.13 |
APCu Manager /wp-admin/admin.php?page=apcm-settings | 1,054 | 2.01 | 27.35 | 32.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/apcu-manager/public/partials/apcu-manager-public-display.php
- 113× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'APCMKint\\Parser\\Plugin' not found in wp-content/plugins/apcu-manager/includes/libraries/kint/src/Parser/TracePlugin.php:33
- > PHP Fatal error
Uncaught Error: Class 'APCMKint\\Renderer\\Text\\Plugin' not found in wp-content/plugins/apcu-manager/includes/libraries/kint/src/Renderer/Text/DepthLimitPlugin.php:30
- > PHP Fatal error
Uncaught Error: Class 'APCMKint\\Kint' not found in wp-content/plugins/apcu-manager/includes/libraries/kint/init.php:48
- > PHP Fatal error
Trait 'cebe\\markdownparser\\block\\CodeTrait' not found in wp-content/plugins/apcu-manager/includes/libraries/markdown/block/FencedCodeTrait.php on line 15
- > PHP Fatal error
Uncaught Error: Interface 'APCMKint\\Renderer\\Rich\\PluginInterface' not found in wp-content/plugins/apcu-manager/includes/libraries/kint/src/Renderer/Rich/Plugin.php:31
- > PHP Fatal error
Uncaught Error: Class 'APCMKint\\Renderer\\Text\\Plugin' not found in wp-content/plugins/apcu-manager/includes/libraries/kint/src/Renderer/Text/TracePlugin.php:31
- > PHP Fatal error
Uncaught Error: Class 'APCMKint\\Parser\\Plugin' not found in wp-content/plugins/apcu-manager/includes/libraries/kint/src/Parser/ThrowablePlugin.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function APCuManager\\Plugin\\Feature\\add_shortcode() in wp-content/plugins/apcu-manager/includes/features/class-wpcli.php:438
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/apcu-manager/perfopsone/class-installer.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'APCMKint\\Renderer\\Rich\\Plugin' not found in wp-content/plugins/apcu-manager/includes/libraries/kint/src/Renderer/Rich/ColorPlugin.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: monitor, apcu, cache, w3tc, object cache
apcu-manager/apcu-manager.php Passed 13 tests
This is the main PHP file of "APCu Manager" version 3.7.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
70 characters long description:
APCu statistics and management right in the WordPress admin dashboard.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected44,857 lines of code in 537 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 20 | 1,922 | 2,305 | 20,496 |
PHP | 204 | 3,230 | 10,811 | 17,741 |
SVG | 285 | 0 | 1 | 4,251 |
CSS | 18 | 270 | 2 | 1,819 |
Markdown | 8 | 194 | 0 | 497 |
JSON | 2 | 0 | 0 | 53 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 134)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 17.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 263.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 134.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 16 | |
Traits | 15 | |
Classes | 153 | |
▷ Abstract classes | 6 | 3.92% |
▷ Concrete classes | 147 | 96.08% |
▷ Final classes | 1 | 0.68% |
Methods | 1,101 | |
▷ Static methods | 284 | 25.79% |
▷ Public methods | 803 | 72.93% |
▷ Protected methods | 145 | 13.17% |
▷ Private methods | 153 | 13.90% |
Functions | 46 | |
▷ Named functions | 34 | 73.91% |
▷ Anonymous functions | 12 | 26.09% |
Constants | 113 | |
▷ Global constants | 71 | 62.83% |
▷ Class constants | 42 | 37.17% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin