Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.76ms] Passed 4 tests
Analyzing server-side resources used by CMB2 Admin Extension
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.35 ▲4.44 |
Dashboard /wp-admin | 3.33 ▼0.02 | 46.35 ▼12.70 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 41.54 ▼4.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.19 ▼20.09 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.99 ▼2.07 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for CMB2 Admin Extension
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.25 ▼0.01 | 1.73 ▲0.18 | 43.58 ▲2.50 |
Dashboard /wp-admin | 2,204 ▲27 | 5.57 ▼0.10 | 81.45 ▼7.02 | 41.08 ▼1.12 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.98 ▼0.02 | 35.35 ▼0.28 | 37.25 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.76 ▲0.47 | 682.41 ▲6.05 | 55.30 ▼8.74 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.16 ▼0.15 | 95.40 ▼5.99 | 43.61 ▼1.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cmb2-admin-extension/includes/class-meta-box-settings.php:58
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cmb2-admin-extension/includes/class-meta-box-post-type.php:44
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: forms, fields, settings, options, metaboxes
cmb2-admin-extension/cmb2-admin-extension.php Passed 13 tests
The main PHP script in "CMB2 Admin Extension" version 0.2.3 is automatically included on every request by WordPress
104 characters long description:
CMB2 Admin Extension add a user interface for admins to create CMB2 meta boxes from the WordPress admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,558 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 193 | 391 | 837 |
PO File | 2 | 237 | 260 | 633 |
JavaScript | 1 | 14 | 70 | 79 |
CSS | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 3 | 8.11% |
▷ Public methods | 33 | 89.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.81% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin