Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.72ms] Passed 4 tests
Server-side resources used by Product Quantity Dropdown For Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.19 ▼0.36 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.24 ▼6.39 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.67 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.83 ▼11.86 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.47 ▲3.98 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Product Quantity Dropdown For Woocommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.42 ▼0.16 | 1.73 ▼0.05 | 43.58 ▼0.01 |
Dashboard /wp-admin | 2,195 ▲15 | 5.57 ▼0.10 | 94.96 ▲2.97 | 39.38 ▼0.97 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.02 ▲0.01 | 38.08 ▼1.21 | 33.12 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 22.95 ▼0.67 | 668.80 ▼42.77 | 47.00 ▼4.69 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.26 ▼0.10 | 107.18 ▲7.65 | 48.13 ▲2.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
The following issues need your attention
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-quantity-dropdown-for-woocommerce/main/resources/pqdfw-language.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-quantity-dropdown-for-woocommerce/main/resources/pqdfw-installation-require.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-quantity-dropdown-for-woocommerce/main/resources/pqdfw-load-js-css.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-quantity-dropdown-for-woocommerce/main/backend/pqdfw_admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-quantity-dropdown-for-woocommerce/main/backend/pqdfw_comman.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/product-quantity-dropdown-for-woocommerce/main/frontend/pqdfw-frontend.php:258
- > 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 93% 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 your attention:
- Screenshots: Add an image for screenshot #5 (Shop page products quantity dropdown)
- Contributors: The plugin contributors field is not present
product-quantity-dropdown-for-woocommerce/product-quantity-dropdown-for-woocommerce.php Passed 13 tests
The entry point to "Product Quantity Dropdown For Woocommerce" version 1.1 is a PHP file that has certain tags in its header comment area
79 characters long description:
This plugin allows Product Quantity dropdown add in Shop page and Product page.
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 detected610 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 76 | 44 | 488 |
CSS | 2 | 1 | 0 | 86 |
JavaScript | 2 | 10 | 3 | 36 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected