Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5747
Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.92ms] Passed 4 tests
Analyzing server-side resources used by Metabox Header Color
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.11 ▼3.55 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.96 ▼8.38 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.15 ▼4.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.87 ▼7.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.78 ▲7.29 |
Metabox Header Color /wp-admin/options-general.php?page=metabox-header-color/kl-metabox-header-color.php | 3.22 | 33.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
kl-metabox-header-color |
Browser metrics Passed 4 tests
Checking browser requirements for Metabox Header Color
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.25 ▼0.13 | 1.69 ▼0.09 | 42.82 ▼0.94 |
Dashboard /wp-admin | 2,201 ▲27 | 5.61 ▼0.01 | 95.74 ▼2.29 | 42.56 ▼1.99 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▲0.01 | 34.53 ▼4.86 | 33.91 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.57 ▲0.59 | 696.49 ▲35.27 | 58.68 ▲2.36 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.10 ▼0.05 | 112.67 ▲10.20 | 47.91 ▲3.10 |
Metabox Header Color /wp-admin/options-general.php?page=metabox-header-color/kl-metabox-header-color.php | 1,182 | 2.40 | 61.83 | 26.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- kl-metabox-header-color
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/metabox-header-color/uninstall.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/metabox-header-color/kl-metabox-header-color.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: metabox, mu-compatible, style
metabox-header-color/kl-metabox-header-color.php 92% from 13 tests
"Metabox Header Color" version 1.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("metabox-header-color.php" instead of "kl-metabox-header-color.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin121 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 21 | 75 |
Markdown | 1 | 15 | 0 | 29 |
JavaScript | 1 | 2 | 1 | 17 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin