Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼145.60ms] Passed 4 tests
Server-side resources used by Hatchbuck
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 29.88 ▲7.68 |
Dashboard /wp-admin | 3.16 ▲0.10 | 43.16 ▲0.81 |
Posts /wp-admin/edit.php | 3.24 ▲0.14 | 35.04 ▼10.24 |
Add New Post /wp-admin/post-new.php | 5.76 ▲0.33 | 80.76 ▼564.92 |
Media Library /wp-admin/upload.php | 3.12 ▲0.11 | 30.44 ▼8.04 |
Addons /wp-admin/admin.php?page=hatchbuck-addons | 3.11 | 30.91 |
Help /wp-admin/admin.php?page=hatchbuck-help | 3.07 | 49.56 |
Settings /wp-admin/admin.php?page=hatchbuck-settings | 3.09 | 31.79 |
Forms /wp-admin/admin.php?page=hatchbuck-manage | 3.10 | 31.87 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 89 new files
Database: 1 new table, 4 new options
New tables |
---|
wp_hatchbuck_shortcode |
New WordPress options |
---|
hatchbuck_limit |
hatchbuck_postTypeTc |
hatchbuck_addons_metabox |
hatchbuck_help_script |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hatchbuck
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,847 ▲252 | 16.09 ▲0.63 | 8.04 ▼0.25 | 49.15 ▲3.23 |
Dashboard /wp-admin | 3,077 ▲146 | 7.02 ▲0.82 | 140.17 ▼4.38 | 126.13 ▲18.73 |
Posts /wp-admin/edit.php | 2,870 ▲131 | 2.78 ▲0.11 | 64.86 ▲2.27 | 120.76 ▲37.09 |
Add New Post /wp-admin/post-new.php | 2,397 ▲714 | 25.25 ▲6.46 | 394.77 ▲27.00 | 134.29 ▲23.82 |
Media Library /wp-admin/upload.php | 1,858 ▲51 | 5.44 ▲0.45 | 129.34 ▼21.78 | 132.57 ▲10.30 |
Addons /wp-admin/admin.php?page=hatchbuck-addons | 1,544 | 3.11 | 66.61 | 81.74 |
Help /wp-admin/admin.php?page=hatchbuck-help | 2,921 | 17.84 | 484.65 | 114.03 |
Settings /wp-admin/admin.php?page=hatchbuck-settings | 1,509 | 3.26 | 66.05 | 102.61 |
Forms /wp-admin/admin.php?page=hatchbuck-manage | 1,401 | 3.25 | 64.18 | 92.91 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- hatchbuck_help_script
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/hatchbuck/admin/header.php
- > /wp-content/plugins/hatchbuck/admin/sidebar.php
- > /wp-content/plugins/hatchbuck/admin/footer.php
- 32× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/hatchbuck/admin/addons/addons-view/addons-view.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hatchbuck/admin/addons/addons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/hatchbuck/admin/snippet-status.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hatchbuck/admin/ajax-backlink.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hatchbuck/add_shortcode_tynimce.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hatchbuck/admin/settings.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/hatchbuck/admin/snippets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hatchbuck/hatchbuck-functions.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hatchbuck/hatchbuck-admin-menu.php:2
- > PHP Warning
Use of undefined constant PLUGIN_NAME - assumed 'PLUGIN_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/hatchbuck/admin/header.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
hatchbuck/hatchbuck.php 85% from 13 tests
"Hatchbuck" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Description: The description should be shorter than 140 characters (currently 171 characters long)
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 plugin2,558 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 423 | 177 | 1,987 |
CSS | 2 | 44 | 3 | 288 |
JavaScript | 37 | 43 | 35 | 244 |
Sass | 3 | 3 | 1 | 38 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 40 | 97.56% |
▷ Anonymous functions | 1 | 2.44% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/addons/addons-view/image/form-widget-screenshot.png | 4.85KB | 3.63KB | ▼ 25.12% |
images/hb-scroll-box-thumb.png | 23.16KB | 9.26KB | ▼ 60.00% |
admin/addons/addons-view/image/gutenberg-block.png | 1.53KB | 0.36KB | ▼ 76.53% |
admin/addons/addons-view/image/scroll-box-screenshot.png | 5.82KB | 2.63KB | ▼ 54.92% |
images/hb-tutorial-thumb.png | 21.97KB | 8.86KB | ▼ 59.67% |