Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼291.70ms] Passed 4 tests
Analyzing server-side resources used by Admin Columns Diagnostics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.01 | 55.33 ▲3.05 |
Dashboard /wp-admin | 3.47 ▲0.03 | 32.96 ▼1.42 |
Posts /wp-admin/edit.php | 3.70 ▲0.03 | 38.76 ▲1.42 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.06 | 95.13 ▼1,167.08 |
Media Library /wp-admin/upload.php | 3.35 ▲0.03 | 23.57 ▲0.27 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Admin Columns Diagnostics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲13 | 16.20 ▲0.52 | 5.73 ▼0.10 | 2.65 ▲0.09 |
Dashboard /wp-admin | 2,888 ▲30 | 6.17 ▼0.05 | 120.27 ▼9.54 | 157.76 ▼2.92 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.23 ▼0.02 | 64.13 ▼0.52 | 136.07 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,664 ▲26 | 16.53 ▼5.57 | 419.29 ▼25.43 | 155.59 ▲7.08 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.53 ▲0.02 | 142.20 ▼2.60 | 187.76 ▼0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'AC\\Registrable' not found in wp-content/plugins/admin-columns-diagnostics/patch-files/v4308/Manager.php:11
- > PHP Fatal error
Uncaught Error: Class 'AC\\Admin\\Page' not found in wp-content/plugins/admin-columns-diagnostics/classes/Admin/Pages/Diagnostics.php:8
- > PHP Fatal error
Uncaught Error: Class 'AC\\Plugin' not found in wp-content/plugins/admin-columns-diagnostics/classes/Diagnostics.php:9
- > PHP Fatal error
Uncaught Error: Interface 'ACA\\Diagnostics\\Patch' not found in wp-content/plugins/admin-columns-diagnostics/classes/Patches/V4308.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: debug
admin-columns-diagnostics/ac-addon-diagnostics.php 85% from 13 tests
The main PHP script in "Admin Columns Diagnostics" version 1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("admin-columns-diagnostics.php" instead of "ac-addon-diagnostics.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,334 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 240 | 287 | 773 |
PHP | 8 | 192 | 242 | 560 |
CSS | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 15.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 3 | 50.00% |
Methods | 47 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 68.09% |
▷ Protected methods | 2 | 4.26% |
▷ Private methods | 13 | 27.66% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.02MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-1.png | 18.69KB | 17.53KB | ▼ 6.23% |