Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.87ms] Passed 4 tests
An overview of server-side resources used by WPC Coupon Listing for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.48 ▲1.92 |
Dashboard /wp-admin | 3.39 ▲0.04 | 45.06 ▼14.31 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.39 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 90.60 ▼15.89 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.75 ▲2.60 |
About /wp-admin/admin.php?page=wpclever | 3.27 | 30.16 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 3.27 | 29.95 |
Server storage [IO: ▲0.53MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WPC Coupon Listing for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲131 | 13.27 ▼1.13 | 1.64 ▼0.16 | 40.73 ▼3.31 |
Dashboard /wp-admin | 2,286 ▲98 | 4.90 ▼0.03 | 108.43 ▲1.87 | 80.85 ▲38.91 |
Posts /wp-admin/edit.php | 2,172 ▲80 | 2.02 ▲0.03 | 38.70 ▼2.38 | 33.53 ▼0.57 |
Add New Post /wp-admin/post-new.php | 1,598 ▲79 | 23.04 ▼0.38 | 786.67 ▲186.74 | 60.38 ▲13.79 |
Media Library /wp-admin/upload.php | 1,465 ▲77 | 4.15 ▼0.02 | 103.69 ▲4.56 | 44.29 ▲1.55 |
About /wp-admin/admin.php?page=wpclever | 1,393 | 2.15 | 28.92 | 38.19 |
Essential Kit /wp-admin/admin.php?page=wpclever-kit | 5,723 | 2.17 | 35.15 | 61.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpc-coupon-listing/wpc-coupon-listing.php:19
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3 in wpc-coupon-listing/assets to your readme.txt
wpc-coupon-listing/wpc-coupon-listing.php Passed 13 tests
"WPC Coupon Listing for WooCommerce" version 1.1.8's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
106 characters long description:
WPC Coupon Listing will display coupons in a list on the cart and checkout page for the buyer easy to use.
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
Everything looks great! No dangerous files found in this plugin8,327 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 948 | 530 | 6,264 |
PHP | 7 | 167 | 38 | 1,160 |
CSS | 5 | 134 | 42 | 675 |
Sass | 1 | 30 | 1 | 188 |
SVG | 3 | 0 | 0 | 40 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 5 | 10.64% |
▷ Public methods | 47 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 8 | |
▷ Global constants | 8 | 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
No PNG files were detected