Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼4.96ms] Passed 4 tests
This is a short check of server-side resources used by CouponPanel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.26 | 44.36 ▼2.80 |
Dashboard /wp-admin | 3.84 ▲0.28 | 50.17 ▼6.32 |
Posts /wp-admin/edit.php | 3.89 ▲0.21 | 55.53 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.21 | 91.89 ▼10.39 |
Media Library /wp-admin/upload.php | 3.70 ▲0.21 | 44.62 ▲5.27 |
Server storage [IO: ▲0.98MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
cpnl_o |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_cpnl_w |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
CouponPanel: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲155 | 13.60 ▼0.78 | 11.88 ▲10.15 | 43.50 ▼0.16 |
Dashboard /wp-admin | 2,207 ▲30 | 5.58 ▼0.03 | 85.78 ▼14.58 | 37.52 ▼3.84 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 2.02 ▼0.11 | 40.79 ▲0.24 | 36.82 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,559 ▲28 | 23.23 ▲0.02 | 679.48 ▲17.15 | 56.80 ▼4.00 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.20 ▼0.02 | 97.32 ▼6.39 | 50.21 ▲1.32 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_cpnl_w
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
couponpanel/couponpanel.php 92% from 13 tests
"CouponPanel" version 1.7.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 178 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
There were no executable files found in this plugin448 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 82 | 12 | 341 |
JavaScript | 4 | 16 | 16 | 104 |
PHP | 2 | 0 | 9 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 30 | 96.77% |
▷ Anonymous functions | 1 | 3.23% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/layout_l1.png | 8.75KB | 6.36KB | ▼ 27.41% |
img/layout_l2.png | 7.94KB | 5.83KB | ▼ 26.51% |
img/checkmark.png | 6.37KB | 2.87KB | ▼ 54.94% |
img/layout_l3.png | 7.11KB | 5.28KB | ▼ 25.73% |