Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.96MB] [CPU: ▼38.03ms] Passed 4 tests
Server-side resources used by WooCommerce Advanced Product Quantities
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.01 ▼0.44 | 15.95 ▼27.51 |
Dashboard /wp-admin | 3.05 ▼0.25 | 21.51 ▼25.72 |
Posts /wp-admin/edit.php | 3.05 ▼0.30 | 19.97 ▼30.61 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.83 | 19.73 ▼68.29 |
Media Library /wp-admin/upload.php | 3.05 ▼0.17 | 19.33 ▼18.18 |
Add New /wp-admin/post-new.php?post_type=quantity-rule | 3.05 | 18.14 |
All Rules /wp-admin/edit.php?post_type=quantity-rule | 3.05 | 18.89 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Advanced Product Quantities
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,512 ▼223 | 13.21 ▼1.19 | 0.89 ▼1.20 | 15.68 ▼29.03 |
Dashboard /wp-admin | 2,250 ▲62 | 5.88 ▲1.01 | 100.21 ▼15.74 | 40.81 ▼1.33 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.02 ▲0.02 | 40.21 ▲3.77 | 35.61 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,560 ▲40 | 23.42 ▲0.44 | 639.61 ▼14.67 | 63.48 ▲4.30 |
Media Library /wp-admin/upload.php | 1,432 ▲50 | 4.26 ▲0.10 | 98.32 ▲4.22 | 43.17 ▲2.89 |
Advanced Rules /wp-admin/class-ipq-advanced-rules.php | 26 | 0.44 | 0.11 | 13.23 |
Add New /wp-admin/post-new.php?post_type=quantity-rule | 1,854 | 2.72 | 55.50 | 71.60 |
All Rules /wp-admin/edit.php?post_type=quantity-rule | 1,232 | 2.01 | 33.70 | 35.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=quantity-rule
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- 14 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=quantity-rule
- > Notice in wp-content/plugins/woocommerce-incremental-product-quantities/includes/class-ipq-post-type.php+339
Trying to get property 'term_id' of non-object
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=quantity-rule
- > Notice in wp-content/plugins/woocommerce-incremental-product-quantities/includes/class-ipq-post-type.php+340
Trying to get property 'name' of non-object
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/class-ipq-advanced-rules.php
- > Network (severe)
wp-admin/class-ipq-advanced-rules.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Required configuration for Out of Stock quantities to be displayed.) image required
woocommerce-incremental-product-quantities/incremental-product-quantities.php 85% from 13 tests
The entry point to "WooCommerce Advanced Product Quantities" version 2.1.9 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("woocommerce-incremental-product-quantities.php" instead of "incremental-product-quantities.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 273 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,921 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 515 | 462 | 1,617 |
CSS | 1 | 26 | 13 | 121 |
Markdown | 1 | 45 | 0 | 119 |
JavaScript | 2 | 27 | 29 | 64 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.70 |
Average class complexity | 45.86 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 6.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 1 | 1.82% |
▷ Public methods | 55 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.47MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/wpbo-logo.png | 24.75KB | 8.99KB | ▼ 63.66% |
screenshot-1.png | 127.62KB | 43.10KB | ▼ 66.22% |
screenshot-5.png | 78.40KB | 24.44KB | ▼ 68.83% |
screenshot-3.png | 35.57KB | 9.83KB | ▼ 72.35% |
screenshot-2.png | 115.13KB | 35.68KB | ▼ 69.00% |