Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.62ms] Passed 4 tests
This is a short check of server-side resources used by Decimal Product Quantity for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.46 ▼5.80 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.40 ▲0.45 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.60 ▼3.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.90 ▼22.05 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.46 ▲1.92 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
woodecimalproduct_updated_poductmeta |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Decimal Product Quantity for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.23 ▼1.16 | 2.16 ▲0.37 | 42.54 ▼8.92 |
Dashboard /wp-admin | 2,205 ▲14 | 5.86 ▼0.04 | 109.78 ▲10.16 | 40.18 ▼3.63 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.01 ▲0.05 | 35.60 ▼5.33 | 33.15 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,370 ▼164 | 17.25 ▼5.87 | 558.65 ▼33.21 | 41.86 ▼9.64 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.21 ▲0.04 | 96.36 ▼7.51 | 41.58 ▼2.03 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- woodecimalproduct_updated_poductmeta
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/decimal-product-quantity-for-woocommerce/includes/admin_setup_woo.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/decimal-product-quantity-for-woocommerce/includes/options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/decimal-product-quantity-for-woocommerce/includes/admin_order.php:12
- > PHP Notice
Undefined variable: WooDecimalProduct_QuantityData in wp-content/plugins/decimal-product-quantity-for-woocommerce/includes/ajax_quantity.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/decimal-product-quantity-for-woocommerce/includes/admin_setup_product.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/decimal-product-quantity-for-woocommerce/includes/admin_setup_woo.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_send_json() in wp-content/plugins/decimal-product-quantity-for-woocommerce/includes/ajax_quantity.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/decimal-product-quantity-for-woocommerce/includes/admin_setup_category.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Invalid URI found ("wpgear.xyz/decimal-product-quantity-woo")
decimal-product-quantity-for-woocommerce/decimal-product-quantity-for-woocommerce.php 92% from 13 tests
The principal PHP file in "Decimal Product Quantity for WooCommerce" v. 10.31 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 415 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,157 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 334 | 185 | 1,135 |
JavaScript | 1 | 6 | 1 | 22 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 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
No PNG files were detected