Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.19MB] [CPU: ▼40.41ms] Passed 4 tests
This is a short check of server-side resources used by Easy Heads Up Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 14.29 ▼27.53 |
Dashboard /wp-admin | 2.83 ▼0.48 | 18.22 ▼29.56 |
Posts /wp-admin/edit.php | 2.83 ▼0.53 | 17.26 ▼30.65 |
Add New Post /wp-admin/post-new.php | 2.83 ▼3.06 | 16.65 ▼73.88 |
Media Library /wp-admin/upload.php | 2.83 ▼0.40 | 17.24 ▼18.47 |
New Heads up Bar /wp-admin/post-new.php?post_type=heads_up_bar | 2.83 | 20.17 |
All Heads up Bars /wp-admin/edit.php?post_type=heads_up_bar | 2.83 | 19.31 |
Server storage [IO: ▲0.34MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
ehb_old_db |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Heads Up Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,079 ▲322 | 15.18 ▲0.90 | 6.46 ▲4.44 | 39.69 ▼9.35 |
Dashboard /wp-admin | 2,374 ▲186 | 6.41 ▲0.53 | 132.81 ▲25.49 | 38.83 ▼5.66 |
Posts /wp-admin/edit.php | 2,283 ▲194 | 3.33 ▲1.33 | 60.00 ▲20.83 | 36.80 ▲4.51 |
Add New Post /wp-admin/post-new.php | 1,569 ▲55 | 23.02 ▲5.51 | 672.47 ▼28.68 | 38.11 ▼14.53 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.15 ▼0.05 | 82.96 ▼24.74 | 43.96 ▼4.12 |
New Heads up Bar /wp-admin/post-new.php?post_type=heads_up_bar | 2,872 | 7.72 | 206.95 | 79.43 |
All Heads up Bars /wp-admin/edit.php?post_type=heads_up_bar | 1,470 | 3.40 | 45.37 | 65.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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 did not uninstall without warnings or errors
- > Warning in wp-content/plugins/easy-heads-up-bar/lib/cmb/init.php+746
count(): Parameter must be an array or an object that implements Countable
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- ehb_old_db
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=heads_up_bar
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/easy-heads-up-bar/lib/cmb/init.php+746
count(): Parameter must be an array or an object that implements Countable
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=heads_up_bar
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 50% 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
Almost there! Just fix the following items
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/easy-heads-up-bar/lib/cmb/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-heads-up-bar/lib/ehb-migrate-old-data.php:121
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-heads-up-bar/lib/cmb/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-heads-up-bar/lib/ehb-frontend.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/easy-heads-up-bar/lib/ehb-utility-functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/easy-heads-up-bar/lib/ehb-metaboxs.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
easy-heads-up-bar/easy-heads-up-bar.php Passed 13 tests
Analyzing the main PHP file in "Easy Heads Up Bar" version 2.1.7
98 characters long description:
An Easy to use notification (heads up) bar for your WordPress website with a linked call to action
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected5,497 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 596 | 1,184 | 2,639 |
JavaScript | 5 | 316 | 382 | 2,262 |
CSS | 3 | 65 | 24 | 596 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 53.62 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 144 | |
▷ Static methods | 34 | 23.61% |
▷ Public methods | 142 | 98.61% |
▷ Protected methods | 2 | 1.39% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/cmb/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
lib/cmb/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
images/open.png | 1.42KB | 0.76KB | ▼ 46.28% |
images/arrow-down.png | 1.38KB | 0.53KB | ▼ 61.61% |
lib/cmb/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |