Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▲0.49ms] Passed 4 tests
Analyzing server-side resources used by WP Header Images
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.32 | 40.89 ▼3.34 |
Dashboard /wp-admin | 3.48 ▲0.17 | 48.18 ▼1.89 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 53.10 ▲4.26 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 96.04 ▲3.46 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 38.41 ▲3.71 |
WP Header Images /wp-admin/options-general.php?page=wp_hi | 3.69 | 43.70 |
Server storage [IO: ▲5.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Header Images
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.18 ▼1.05 | 1.50 ▼0.68 | 41.19 ▼8.44 |
Dashboard /wp-admin | 2,210 ▲25 | 4.84 ▼0.02 | 109.72 ▲0.96 | 41.88 ▼10.97 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.10 ▲0.10 | 39.54 ▼1.52 | 34.14 ▼2.74 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.05 ▲5.49 | 665.35 ▼57.70 | 70.05 ▲5.71 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.19 ▼0.02 | 96.86 ▼12.46 | 46.43 ▲0.30 |
WP Header Images /wp-admin/options-general.php?page=wp_hi | 3,716 | 26.90 | 806.20 | 95.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-header-images/inc/wphi-settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-header-images/inc/functions.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-header-images/index.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-header-images/inc/gluri-slider-support.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-header-images/inc/functions-inner.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: custom images, header images, images, header, image slider...
wp-header-images/index.php 85% from 13 tests
The main PHP script in "WP Header Images" version 2.1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 151 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-header-images.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin12,953 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,546 |
PHP | 6 | 831 | 149 | 1,521 |
CSS | 5 | 110 | 23 | 882 |
PO File | 3 | 317 | 398 | 720 |
JavaScript | 3 | 152 | 28 | 284 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
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 | 33 | |
▷ Named functions | 29 | 87.88% |
▷ Anonymous functions | 4 | 12.12% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.60MB with 0.28MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/banner-style-0.png | 0.07KB | 0.08KB | 0.00% |
img/banner-style-3.png | 406.80KB | 128.58KB | ▼ 68.39% |
img/screenshot-12.png | 202.71KB | 57.55KB | ▼ 71.61% |