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.01MB] [CPU: ▼9.48ms] Passed 4 tests
This is a short check of server-side resources used by Woo Coupons Pay for Shipping
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.36 ▼4.71 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.12 ▼19.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.28 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.26 ▼15.03 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.23 ▲1.70 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Woo Coupons Pay for Shipping
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.35 | 1.68 ▼0.15 | 40.70 ▼4.72 |
Dashboard /wp-admin | 2,198 ▲21 | 5.55 ▼0.07 | 89.71 ▼3.10 | 38.19 ▼0.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.04 | 35.05 ▼3.46 | 36.78 ▲4.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 22.88 ▲4.92 | 587.25 ▼69.03 | 47.42 ▼20.51 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.31 ▲0.11 | 95.80 ▼9.73 | 43.20 ▼4.40 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Before active the WpAnt Coupons Pay for Shipping plugin), #2 (After activate the WpAnt Coupons Pay for Shipping plugin)
wpant-coupons-pay-for-shipping-woocommerce/wordpressant-coupons-pay-for-shipping-woocommerce.php 77% from 13 tests
The entry point to "Woo Coupons Pay for Shipping" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 484 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpant-coupons-pay-for-shipping-woocommerce.php" instead of "wordpressant-coupons-pay-for-shipping-woocommerce.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin127 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 62 | 171 | 127 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.50MB with 0.33MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 328.64KB | 127.00KB | ▼ 61.36% |
screenshot-2.png | 188.18KB | 56.84KB | ▼ 69.79% |