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.17MB] [CPU: ▼6.88ms] Passed 4 tests
An overview of server-side resources used by CI WooCommerce Minimum Maximum Quantity & Step Control
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.34 ▼1.88 |
Dashboard /wp-admin | 3.55 ▲0.21 | 55.25 ▼7.91 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 59.13 ▲7.99 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 86.61 ▼20.68 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.63 ▲2.95 |
Min & Max Settings /wp-admin/admin.php?page=wcmmqty_options | 3.38 | 38.40 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
wcmmqty_settings |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by CI WooCommerce Minimum Maximum Quantity & Step Control
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,997 ▲236 | 14.89 ▲0.52 | 1.92 ▲0.06 | 42.77 ▼2.62 |
Dashboard /wp-admin | 2,381 ▲178 | 6.64 ▲1.76 | 122.51 ▲12.96 | 38.52 ▼4.44 |
Posts /wp-admin/edit.php | 2,283 ▲183 | 3.52 ▲1.53 | 56.30 ▲20.34 | 34.97 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,541 ▼4 | 21.80 ▼1.62 | 654.99 ▲21.06 | 38.33 ▼32.36 |
Media Library /wp-admin/upload.php | 1,420 ▲26 | 4.37 ▲0.16 | 92.96 ▼5.55 | 48.19 ▲0.90 |
Min & Max Settings /wp-admin/admin.php?page=wcmmqty_options | 1,177 | 3.43 | 49.82 | 72.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- wcmmqty_settings
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× 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/min-max-quantity-for-woocommerce/inc/wc-mmqty-public.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/min-max-quantity-for-woocommerce/inc/wc-mmqty-admin.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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 to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
min-max-quantity-for-woocommerce/wc-mmqty.php 77% from 13 tests
The entry point to "CI WooCommerce Minimum Maximum Quantity & Step Control" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("min-max-quantity-for-woocommerce.php" instead of "wc-mmqty.php")
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
Success! There were no dangerous files found in this plugin750 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 332 | 265 | 750 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 23.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 10 | 90.91% |
▷ Anonymous functions | 1 | 9.09% |
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
There are no PNG files in this plugin