Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.54ms] Passed 4 tests
A check of server-side resources used by WooCommerce Coupon Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 36.20 ▼7.65 |
Dashboard /wp-admin | 3.34 ▲0.03 | 44.80 ▼6.15 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.18 ▼6.33 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.23 ▼6.01 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 32.62 ▼1.98 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WooCommerce Coupon Shortcodes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲75 | 14.27 ▼0.44 | 1.91 ▼0.10 | 38.73 ▼5.06 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.03 | 95.68 ▼1.33 | 43.00 ▼3.68 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▲0.01 | 39.49 ▼0.57 | 38.08 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,536 ▲6 | 23.29 ▼0.06 | 578.12 ▼42.30 | 56.71 ▲6.06 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.15 ▲0.02 | 97.27 ▼3.43 | 39.89 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
woocommerce-coupon-shortcodes/woocommerce-coupon-shortcodes.php 92% from 13 tests
The primary PHP file in "WooCommerce Coupon Shortcodes" version 2.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "7.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,924 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 297 | 693 | 1,924 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 296.00 |
Average method complexity | 6.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 55.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 55 | 94.83% |
▷ Public methods | 45 | 77.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 22.41% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 10 | 58.82% |
▷ Class constants | 7 | 41.18% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-256x256.png | 3.69KB | 1.80KB | ▼ 51.16% |