Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.64ms] Passed 4 tests
Analyzing server-side resources used by Min and Max for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.54 ▲1.49 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.32 ▼0.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.08 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.30 ▼3.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.30 ▲3.37 |
Min & Max Quantity /wp-admin/options-general.php?page=_mmfwc_ | 3.21 | 34.68 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
mmfwc_version |
mmfwc_options_option_name |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
mmfwc_installed |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Min and Max for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.69 ▲0.12 | 1.66 ▼0.41 | 45.77 ▲0.73 |
Dashboard /wp-admin | 2,196 ▲19 | 5.53 ▼0.04 | 91.50 ▼9.77 | 38.41 ▼6.63 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.95 ▲0.00 | 33.24 ▼2.80 | 36.02 ▲0.15 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.66 ▲0.45 | 675.81 ▼26.86 | 65.99 ▲8.95 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.22 ▲0.08 | 102.03 ▼8.32 | 42.99 ▼2.90 |
Min & Max Quantity /wp-admin/options-general.php?page=_mmfwc_ | 801 | 2.00 | 26.58 | 27.06 |
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 detected upon uninstall: 9 options
- db_upgraded
- mmfwc_options_option_name
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- mmfwc_installed
- theysaidso_admin_options
- widget_recent-posts
- mmfwc_version
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Trait 'MinMaxWoocommerce\\Traits\\Singleton' not found in wp-content/plugins/min-and-max-for-woocommerce/includes/Admin/Settings.php on line 11
- > PHP Fatal error
Trait 'MinMaxWoocommerce\\Traits\\Singleton' not found in wp-content/plugins/min-and-max-for-woocommerce/includes/Frontend/Storefront.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Please describe screenshot #1 in min-and-max-for-woocommerce/assets to your readme.txt
min-and-max-for-woocommerce/min-max-for-woocommerce.php 77% from 13 tests
The main file in "Min and Max for WooCommerce" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("min-and-max-for-woocommerce.php" instead of "min-max-for-woocommerce.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected733 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 210 | 505 | 714 |
JSON | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 57 | |
▷ Static methods | 6 | 10.53% |
▷ Public methods | 55 | 96.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.51% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin