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
Install script ran successfully
Server metrics [RAM: ▼0.67MB] [CPU: ▼18.55ms] Passed 4 tests
An overview of server-side resources used by Easy Coupon Code WP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.98 ▼6.32 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.27 ▲1.08 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.33 ▼0.22 |
Add New Post /wp-admin/post-new.php | 3.12 ▼2.77 | 33.05 ▼67.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.28 ▼0.38 |
Add New /wp-admin/post-new.php?post_type=np_coupon_code | 3.12 | 33.28 |
Coupon Code /wp-admin/edit.php?post_type=np_coupon_code | 3.30 | 37.23 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
npcc_activated_on |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Coupon Code WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,870 ▲124 | 13.92 ▼0.28 | 1.88 ▼0.48 | 42.64 ▼2.75 |
Dashboard /wp-admin | 2,251 ▲63 | 5.83 ▼0.06 | 114.27 ▲6.30 | 84.89 ▲46.06 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.42 ▲0.38 | 48.04 ▲4.56 | 37.93 ▲1.37 |
Add New Post /wp-admin/post-new.php | 1,562 ▲29 | 23.42 ▲0.38 | 636.33 ▲33.00 | 36.91 ▼12.27 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.98 ▲0.81 | 103.58 ▼1.10 | 81.93 ▲39.68 |
Add New /wp-admin/post-new.php?post_type=np_coupon_code | 1,530 | 3.34 | 58.73 | 64.11 |
Coupon Code /wp-admin/edit.php?post_type=np_coupon_code | 1,132 | 2.35 | 40.37 | 31.68 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=np_coupon_code
- > Notice in wp-content/plugins/easy-coupon-code-wp/np-coupon-code.php+138
Undefined index: social_noncename
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output 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 on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (On the coupon list page, you will get all the details in columns.), #2 (How it looks like in while adding coupon)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== easy-coupon-code-wp ===
)
easy-coupon-code-wp/np-coupon-code.php 85% from 13 tests
This is the main PHP file of "Easy Coupon Code WP" version 2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-coupon-code-wp.php" instead of "np-coupon-code.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 309 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected13,006 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 2,099 | 1,153 | 11,769 |
CSS | 1 | 34 | 49 | 1,095 |
PHP | 3 | 45 | 45 | 142 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 24.89KB | 12.97KB | ▼ 47.88% |
npcc-icon.png | 3.68KB | 1.23KB | ▼ 66.45% |
screenshot-2.png | 26.73KB | 14.85KB | ▼ 44.45% |