Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼11.23ms] Passed 4 tests
An overview of server-side resources used by Coupon Card
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.09 ▲1.98 |
Dashboard /wp-admin | 3.37 ▲0.02 | 51.24 ▼14.21 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.97 ▼9.50 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 86.77 ▼19.00 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 37.74 ▼2.19 |
Add New /wp-admin/admin.php?page=add-new-coupon-card | 3.31 | 38.86 |
All Cards /wp-admin/admin.php?page=coupon-card | 3.29 | 37.89 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_coupon_card |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Coupon Card
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲190 | 13.67 ▼1.00 | 8.67 ▲7.01 | 37.06 ▼4.69 |
Dashboard /wp-admin | 2,216 ▲25 | 5.86 ▲0.94 | 98.01 ▼4.74 | 71.65 ▲31.08 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 1.98 ▼0.08 | 34.41 ▼6.14 | 34.47 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.39 ▲2.25 | 679.18 ▲5.00 | 55.67 ▲10.62 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.18 ▼0.04 | 94.87 ▼19.37 | 72.38 ▲24.28 |
Add New /wp-admin/admin.php?page=add-new-coupon-card | 1,078 | 3.12 | 39.21 | 57.18 |
All Cards /wp-admin/admin.php?page=coupon-card | 1,045 | 3.06 | 40.16 | 56.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_coupon_card
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coupon-card/inc/functions.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coupon-card/inc/menu.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: offers, discounts, coupon, promo code
coupon-card/coupon-card.php Passed 13 tests
This is the main PHP file of "Coupon Card" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Promote Various Coupon And Discount Offers.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,835 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 337 | 21 | 1,423 |
PHP | 5 | 60 | 99 | 307 |
JavaScript | 2 | 24 | 13 | 105 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 11 | |
▷ Named functions | 11 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-tag.png | 0.62KB | 0.76KB | 0.00% |
images/paypal.png | 1.52KB | 1.53KB | 0.00% |