Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼11.13MB] [CPU: ▼2,302,475.96ms] Passed 4 tests
Server-side resources used by HashCoupon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▼44.59 | 39.60 ▼9,209,876.90 |
Dashboard /wp-admin | 3.39 ▼0.00 | 50.01 ▼18.73 |
Posts /wp-admin/edit.php | 3.50 ▲0.10 | 49.49 ▼0.99 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.04 | 90.24 ▼7.21 |
Media Library /wp-admin/upload.php | 3.31 ▲0.03 | 39.66 ▲2.84 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by HashCoupon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 14.28 ▲0.13 | 1.64 ▼0.20 | 43.90 ▲5.11 |
Dashboard /wp-admin | 2,195 ▲17 | 5.56 ▼0.05 | 94.91 ▼10.71 | 42.76 ▲0.96 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.99 ▲0.04 | 37.13 ▼4.46 | 39.20 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.29 ▲0.09 | 688.23 ▲32.31 | 55.44 ▲2.85 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.28 ▲0.07 | 100.82 ▼0.49 | 43.77 ▼1.18 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/hash-coupon/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Contributors: Plugin contributors field is missing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is the main screen of HashCoupon.You have to active the status of HashCoupon here.), #2 (Dashboard Widget of HashCoupon Will Show you the status of HashCoupon.), #3 (You Will see the apply coupon link like this.), #4 (The Pop Model will show all Available Coupon List.)
hash-coupon/wp-hash-coupon.php 92% from 13 tests
"HashCoupon" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hash-coupon.php" instead of "wp-hash-coupon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,732 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 100 | 25 | 727 |
JavaScript | 2 | 112 | 52 | 586 |
PHP | 7 | 98 | 207 | 382 |
Markdown | 2 | 15 | 0 | 36 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 3.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 9 | 34.62% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/favicon.png | 3.88KB | 3.72KB | ▼ 4.25% |
assets/img/logo.png | 11.58KB | 10.38KB | ▼ 10.37% |