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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.52ms] Passed 4 tests
A check of server-side resources used by Hook Customizer for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.26 ▼3.12 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.57 ▼0.84 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.06 ▲0.96 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.55 ▼7.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.33 ▼2.64 |
Server storage [IO: ▲0.91MB] [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: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hook Customizer for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.59 ▼0.69 | 1.99 ▲0.07 | 38.10 ▼1.76 |
Dashboard /wp-admin | 2,206 ▲14 | 4.86 ▼0.09 | 110.33 ▲1.79 | 42.44 ▲1.08 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.01 ▼0.01 | 37.06 ▼1.95 | 34.80 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.08 ▼5.08 | 633.30 ▲6.65 | 46.14 ▼4.18 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.29 ▲0.24 | 97.22 ▼1.88 | 40.06 ▼5.05 |
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 does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_settings_field() in wp-content/plugins/hookywoo/includes/checkout-page-fields.php:173
- > PHP Fatal error
Uncaught Error: Call to undefined function add_settings_field() in wp-content/plugins/hookywoo/includes/cart-page-fields.php:117
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in hookywoo/assets to your readme.txt
hookywoo/hookywoo-hooks-customizer.php 85% from 13 tests
"Hook Customizer for WooCommerce" version 2.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires PHP: Required version must match the one declared in readme.txt ("7.0" instead of "7.2")
- Main file name: Name the main plugin file the same as the plugin slug ("hookywoo.php" instead of "hookywoo-hooks-customizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,120 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 19 | 31 | 1,038 |
Markdown | 1 | 18 | 0 | 55 |
CSS | 1 | 3 | 4 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.86MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cart.png | 118.47KB | 33.80KB | ▼ 71.47% |
images/single-product.png | 319.67KB | 79.14KB | ▼ 75.24% |
images/checkout1.png | 132.35KB | 39.18KB | ▼ 70.40% |
images/shop.png | 246.42KB | 63.73KB | ▼ 74.14% |
images/checkout2.png | 65.78KB | 18.71KB | ▼ 71.56% |