Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.98ms] Passed 4 tests
Server-side resources used by Quantity Plus Minus Button for WooCommerce by CodeAstrology
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.80 ▼0.29 |
Dashboard /wp-admin | 3.34 ▲0.03 | 43.96 ▼5.13 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.14 ▼1.48 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.12 ▼17.00 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 35.53 ▲0.45 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 82 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
wqpmb_configs |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Quantity Plus Minus Button for WooCommerce by CodeAstrology
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.20 ▼0.16 | 1.70 ▲0.14 | 43.54 ▼0.46 |
Dashboard /wp-admin | 2,213 ▲36 | 5.55 ▼0.11 | 86.45 ▼2.33 | 39.86 ▼2.36 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.01 ▼0.02 | 41.19 ▲3.11 | 37.14 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 22.97 ▲0.09 | 671.20 ▲19.83 | 55.55 ▲4.78 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.24 ▼0.03 | 106.95 ▲10.53 | 45.78 ▲0.28 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- wqpmb_configs
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 20× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Form\\Inc\\Field_Base' not found in wp-content/plugins/wc-quantity-plus-minus-button/framework/ca-framework/form/fields/select.php:6
- > PHP Fatal error
Uncaught Error: Class 'WQPMB\\Core\\Base' not found in wp-content/plugins/wc-quantity-plus-minus-button/admin/page-loader.php:7
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Form\\Inc\\Field_Base' not found in wp-content/plugins/wc-quantity-plus-minus-button/framework/ca-framework/form/inc/input-base.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wc-quantity-plus-minus-button/admin/html/live-support.php:9
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Form\\Inc\\Form_Base' not found in wp-content/plugins/wc-quantity-plus-minus-button/framework/ca-framework/form/form-bk.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wc-quantity-plus-minus-button/admin/html/button-settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Form\\Inc\\Form_Base' not found in wp-content/plugins/wc-quantity-plus-minus-button/framework/ca-framework/form/form.php:9
- > PHP Fatal error
Uncaught Error: Class 'CA_Framework\\Form\\Inc\\Field_Base' not found in wp-content/plugins/wc-quantity-plus-minus-button/framework/ca-framework/form/inc/field.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wc-quantity-plus-minus-button/includes/load-scripts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wc-quantity-plus-minus-button/admin/html/main-page.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: Please a description for screenshot #11 in wc-quantity-plus-minus-button/assets to your readme.txt
wc-quantity-plus-minus-button/init.php 77% from 13 tests
Analyzing the main PHP file in "Quantity Plus Minus Button for WooCommerce by CodeAstrology" version 1.1.9
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wc-quantity-plus-minus-button.php" instead of "init.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path folder was not found ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected5,912 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 652 | 844 | 2,781 |
CSS | 11 | 164 | 107 | 1,896 |
HTML | 1 | 9 | 1 | 480 |
JSON | 1 | 0 | 0 | 478 |
JavaScript | 4 | 24 | 41 | 141 |
SVG | 1 | 77 | 0 | 89 |
Markdown | 1 | 8 | 0 | 47 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 124 | |
▷ Static methods | 23 | 18.55% |
▷ Public methods | 110 | 88.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 11.29% |
Functions | 20 | |
▷ Named functions | 18 | 90.00% |
▷ Anonymous functions | 2 | 10.00% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.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
20 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/products/woo-min-max-quantity-step-control-single.png | 5.11KB | 2.92KB | ▼ 43.00% |
assets/images/logo.png | 4.27KB | 2.94KB | ▼ 31.10% |
assets/images/social/linkedin.png | 1.05KB | 0.96KB | ▼ 8.47% |
assets/images/social/yelp.png | 2.77KB | 2.04KB | ▼ 26.35% |
assets/images/plus-minus-small.png | 1.98KB | 1.29KB | ▼ 35.06% |