Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.13ms] Passed 4 tests
This is a short check of server-side resources used by HyBa for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 40.66 ▼6.82 |
Dashboard /wp-admin | 3.39 ▲0.04 | 54.24 ▼0.82 |
Posts /wp-admin/edit.php | 3.50 ▲0.10 | 51.64 ▼5.19 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.04 | 85.60 ▼19.69 |
Media Library /wp-admin/upload.php | 3.31 ▲0.04 | 39.18 ▲0.44 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
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 HyBa for Woocommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▼0.00 | 1.67 ▼0.10 | 41.06 ▼0.16 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▼0.01 | 83.81 ▼4.71 | 40.19 ▼9.31 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.03 ▲0.04 | 35.58 ▼5.05 | 32.17 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.92 ▼0.04 | 663.40 ▼36.78 | 69.07 ▲17.23 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.10 ▼0.08 | 97.79 ▼7.35 | 41.50 ▼8.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WC_Hyba' not found in wp-content/plugins/hyba-for-woocommerce/includes/abstracts/class-wc-hyba-ipizza.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Hyba_Ipizza' not found in wp-content/plugins/hyba-for-woocommerce/includes/gateways/class-wc-hyba-pay-gateway.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/hyba-for-woocommerce/includes/abstracts/class-wc-hyba.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Hyba_Ipizza' not found in wp-content/plugins/hyba-for-woocommerce/includes/gateways/class-wc-hyba-split-gateway.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Hyba_Ipizza' not found in wp-content/plugins/hyba-for-woocommerce/includes/gateways/class-wc-hyba-plan-gateway.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (-)
hyba-for-woocommerce/hyba-for-woocommerce.php 85% from 13 tests
"HyBa for Woocommerce" version 1.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("4.1" instead of "2.6")
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 detected726 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 146 | 307 | 624 |
PO File | 1 | 35 | 35 | 102 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 2 | 33.33% |
▷ Concrete classes | 4 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/hybapay.png | 5.79KB | 1.62KB | ▼ 71.98% |
assets/img/hybasplit.png | 5.83KB | 1.65KB | ▼ 71.72% |
assets/img/hybaplan.png | 4.02KB | 1.55KB | ▼ 61.45% |