Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.23ms] Passed 4 tests
Analyzing server-side resources used by Change Quantity on Checkout for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 35.94 ▼4.92 |
Dashboard /wp-admin | 3.31 ▼0.04 | 45.68 ▼16.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.13 ▼3.52 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.15 ▼11.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.56 ▲5.41 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
cqoc_addQuantityField |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Change Quantity on Checkout for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.21 ▲0.14 | 1.67 ▼0.12 | 37.65 ▼6.59 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▲0.01 | 91.31 ▼10.49 | 41.62 ▼5.11 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▼0.00 | 38.75 ▼1.22 | 35.64 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.04 ▼0.65 | 598.43 ▼62.46 | 48.86 ▲1.44 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.21 ▲0.02 | 97.56 ▼0.95 | 41.80 ▲0.89 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- cqoc_addQuantityField
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/change-quantity-on-checkout-for-woocommerce/change-quantity-on-checkout-woocommerce.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please describe screenshot #2 in change-quantity-on-checkout-for-woocommerce/assets to your readme.txt
change-quantity-on-checkout-for-woocommerce/change-quantity-on-checkout-woocommerce.php 77% from 13 tests
The main PHP file in "Change Quantity on Checkout for WooCommerce" ver. 3.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("1.4" instead of "3.0.0")
- Description: Keep the plugin description shorter than 140 characters (currently 210 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("change-quantity-on-checkout-for-woocommerce.php" instead of "change-quantity-on-checkout-woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin258 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 40 | 240 |
CSS | 1 | 1 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 11 | 73.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cqoc-pro-setttings.png | 48.90KB | 21.63KB | ▼ 55.76% |
screenshot-1.png | 21.32KB | 9.31KB | ▼ 56.36% |