Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼8.36ms] Passed 4 tests
This is a short check of server-side resources used by Coupon Box for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 36.53 ▼4.27 |
Dashboard /wp-admin | 3.44 ▲0.09 | 46.34 ▼15.99 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.70 ▲3.09 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 82.80 ▼15.66 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.36 ▲2.48 |
Server storage [IO: ▲2.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 97 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Coupon Box for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲12 | 14.67 ▲0.33 | 1.59 ▼0.39 | 37.13 ▼6.28 |
Dashboard /wp-admin | 2,207 ▲27 | 5.62 ▼0.04 | 92.76 ▲3.61 | 39.53 ▼1.67 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.01 ▼0.01 | 37.09 ▼0.47 | 34.70 ▲2.08 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 23.04 ▲0.06 | 653.59 ▲16.14 | 55.77 ▼1.39 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.22 ▼0.00 | 97.48 ▼0.67 | 43.63 ▲3.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
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 errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: coupon, coupon box, woocommerce coupon, coupon subscribe, woocommerce subscribe
woo-coupon-box/woo-coupon-box.php 92% from 13 tests
This is the main PHP file of "Coupon Box for WooCommerce" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 226 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin19,480 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 587 | 329 | 7,003 |
JavaScript | 14 | 1,334 | 468 | 6,598 |
CSS | 40 | 727 | 230 | 3,770 |
SVG | 4 | 0 | 9 | 2,109 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 33.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 1 | 0.82% |
▷ Public methods | 100 | 81.97% |
▷ Protected methods | 19 | 15.57% |
▷ Private methods | 3 | 2.46% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
images/color-picker-transparency-grid.png | 2.58KB | 2.80KB | 0.00% |
images/transparency-grid.png | 2.58KB | 2.80KB | 0.00% |
images/scissors.png | 0.47KB | 0.39KB | ▼ 16.35% |