Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼12.15ms] Passed 4 tests
An overview of server-side resources used by Individual Use Solver for WooCommerce Coupons - Coupon Categories
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.38 ▲0.30 |
Dashboard /wp-admin | 3.41 ▲0.06 | 42.58 ▼19.33 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 40.05 ▼6.93 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 78.49 ▼22.65 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 38.74 ▲4.47 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Individual Use Solver for WooCommerce Coupons - Coupon Categories
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.09 | 1.69 ▼0.08 | 44.26 ▼3.54 |
Dashboard /wp-admin | 2,195 ▲18 | 5.48 ▼0.17 | 83.23 ▼22.44 | 40.07 ▼2.27 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.03 ▲0.06 | 31.80 ▼8.34 | 36.07 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,528 ▼1 | 23.24 ▲2.30 | 668.27 ▲36.30 | 53.93 ▼4.43 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.13 ▼0.04 | 111.70 ▲11.36 | 48.27 ▼5.00 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add an image for screenshot #1 (...)
coupon-individual-use-solver-for-woocommerce/lws-coupon-individual-use-solver.php 69% from 13 tests
The primary PHP file in "Individual Use Solver for WooCommerce Coupons - Coupon Categories" version 1.1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("coupon-individual-use-solver-for-woocommerce.php" instead of "lws-coupon-individual-use-solver.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("5.3" instead of "7.1.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin778 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 82 | 108 | 777 |
JavaScript | 1 | 0 | 0 | 1 |
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.41 |
Average class complexity | 14.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 41 | |
▷ Static methods | 10 | 24.39% |
▷ Public methods | 34 | 82.93% |
▷ Protected methods | 4 | 9.76% |
▷ Private methods | 3 | 7.32% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 16 | |
▷ Global constants | 6 | 37.50% |
▷ Class constants | 10 | 62.50% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin