Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.99MB] [CPU: ▲5.51ms] Passed 4 tests
An overview of server-side resources used by AwoCoupon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.45 ▲0.99 | 44.74 ▲1.56 |
Dashboard /wp-admin | 4.30 ▲1.00 | 52.50 ▲2.18 |
Posts /wp-admin/edit.php | 4.35 ▲0.99 | 58.26 ▲12.65 |
Add New Post /wp-admin/post-new.php | 6.88 ▲0.99 | 97.53 ▲6.50 |
Media Library /wp-admin/upload.php | 4.22 ▲0.99 | 42.18 ▲11.78 |
Server storage [IO: ▲1.06MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 164 new files
Database: 8 new tables, 8 new options
New tables |
---|
wp_awocoupon_tag |
wp_awocoupon |
wp_awocoupon_cron |
wp_awocoupon_lang_text |
wp_awocoupon_config |
wp_awocoupon_auto |
wp_awocoupon_asset |
wp_awocoupon_history |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
awocoupon_version |
widget_recent-comments |
widget_recent-posts |
awocoupon_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for AwoCoupon
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.21 ▼0.01 | 1.64 ▼0.02 | 37.75 ▼6.11 |
Dashboard /wp-admin | 2,195 ▲14 | 5.58 ▼0.06 | 92.61 ▼27.03 | 38.73 ▼5.42 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.04 | 39.67 ▲1.89 | 35.50 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.31 ▼1.92 | 653.33 ▲8.97 | 50.04 ▼17.42 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▲0.02 | 106.82 ▲10.86 | 45.76 ▲3.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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 | 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 a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2 in awocoupon/assets to your readme.txt
awocoupon/awocoupon.php Passed 13 tests
This is the main PHP file of "AwoCoupon" version 3.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
16 characters long description:
Coupons enhanced
Code Analysis 97% from 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
No dangerous file extensions were detected13,274 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,847 | 1,603 | 10,246 |
CSS | 10 | 201 | 59 | 1,622 |
JavaScript | 13 | 174 | 104 | 1,303 |
SQL | 2 | 25 | 14 | 103 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 103)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 52.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 590.00 |
Average method complexity | 5.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 103.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 1 | 2.86% |
Methods | 381 | |
▷ Static methods | 18 | 4.72% |
▷ Public methods | 287 | 75.33% |
▷ Protected methods | 58 | 15.22% |
▷ Private methods | 36 | 9.45% |
Functions | 32 | |
▷ Named functions | 5 | 15.62% |
▷ Anonymous functions | 27 | 84.38% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
66 compressed PNG files occupy 0.16MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
media/assets/images/awocoupon-small.png | 1.16KB | 1.06KB | ▼ 8.42% |
media/assets/images/c_table3.png | 1.38KB | 0.87KB | ▼ 36.58% |
media/assets/images/icon-16-home.png | 0.99KB | 0.84KB | ▼ 14.97% |
media/assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
media/assets/images/template.png | 1.07KB | 0.93KB | ▼ 13.13% |