Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.82ms] Passed 4 tests
Server-side resources used by Header Image Uploader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.84 ▼0.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.20 ▼1.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 52.14 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.61 ▼9.30 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.35 ▲1.70 |
Server storage [IO: ▲0.43MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Header Image Uploader
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.34 ▼0.04 | 1.77 ▼0.17 | 41.97 ▼1.35 |
Dashboard /wp-admin | 2,195 ▲15 | 5.55 ▼0.09 | 91.38 ▲4.36 | 38.52 ▼5.53 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.00 ▲0.05 | 41.42 ▼1.92 | 38.08 ▼3.16 |
Add New Post /wp-admin/post-new.php | 6,247 ▲4,721 | 18.95 ▼4.60 | 948.12 ▲308.79 | 65.30 ▲17.56 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▼0.01 | 110.01 ▲7.28 | 46.58 ▲5.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/header-image-uploader/header-image-uploader.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Uploader field), #2 (WordPress media uploader), #3 (Image uploaded), #4 (Image selected)
- Contributors: Plugin contributors not specified
header-image-uploader/header-image-uploader.php Passed 13 tests
"Header Image Uploader" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
85 characters long description:
A Simple WordPress plugin that adds header image uploader meta box in the post admin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected159 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 66 | 15 | 159 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.75 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.42MB with 0.25MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 4.23KB | 2.94KB | ▼ 30.67% |
screenshot-3.png | 313.96KB | 79.94KB | ▼ 74.54% |
screenshot-2.png | 29.94KB | 13.88KB | ▼ 53.64% |
screenshot-4.png | 83.25KB | 20.90KB | ▼ 74.89% |