Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼10.76ms] Passed 4 tests
Analyzing server-side resources used by Customer Coupons for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.69 ▼3.73 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.72 ▼5.60 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.76 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.39 ▼24.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 30.15 ▼9.10 |
Server storage [IO: ▲1.54MB] [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: 66 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Customer Coupons for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.23 ▼1.33 | 5.57 ▲3.69 | 53.26 ▲8.38 |
Dashboard /wp-admin | 2,211 ▲26 | 4.84 ▼0.06 | 112.30 ▼41.76 | 45.26 ▼6.26 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.06 ▲0.00 | 45.13 ▲2.76 | 45.37 ▲5.76 |
Add New Post /wp-admin/post-new.php | 1,524 ▼18 | 23.19 ▲4.98 | 706.36 ▲5.29 | 60.34 ▲1.56 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.25 ▲0.01 | 114.38 ▼10.29 | 49.29 ▼1.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: coupons, custom coupons for woocommerce, woocommerce customer coupons, wc coupons, woocommerce coupons...
woo-customer-coupons/woo-customer-coupons.php Passed 13 tests
The primary PHP file in "Customer Coupons for WooCommerce" version 1.3.1 is used by WordPress to initiate all plugin functionality
79 characters long description:
Customer Coupons for WooCommerce helps you display your coupons on the website.
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
There were no executable files found in this plugin6,163 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 136 | 127 | 2,900 |
SVG | 1 | 0 | 4 | 1,514 |
JavaScript | 20 | 25 | 74 | 694 |
CSS | 19 | 55 | 101 | 659 |
Sass | 2 | 59 | 27 | 396 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 43.71 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 4.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 13 | 18.06% |
▷ Public methods | 66 | 91.67% |
▷ Protected methods | 4 | 5.56% |
▷ Private methods | 2 | 2.78% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |