Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼6.62ms] Passed 4 tests
Server-side resources used by Thankyou Coupons for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.75 ▼0.88 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.65 ▼14.16 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.15 ▲0.86 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.85 ▼10.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.27 ▼1.35 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Thankyou Coupons for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.66 ▼0.54 | 2.04 ▲0.28 | 43.66 ▲5.35 |
Dashboard /wp-admin | 2,206 ▲14 | 5.84 ▲0.96 | 96.96 ▼16.85 | 39.15 ▼7.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.02 | 42.50 ▲6.12 | 36.47 ▲1.43 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.23 ▼0.48 | 682.55 ▼22.83 | 56.97 ▲6.36 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.04 | 97.39 ▼10.22 | 48.84 ▲3.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php:14
- > PHP Notice
Undefined variable: args in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php on line 11
- > PHP Notice
Undefined variable: args in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php on line 12
- > PHP Notice
Undefined variable: args in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php on line 12
- > PHP Notice
Undefined variable: args in wp-content/plugins/thankyou-coupons-for-wc/templates/basic-coupon.php on line 10
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: dynamic coupon, woocommerce thankyou page, woocommerce discount coupons, woocommerce coupons, coupons...
thankyou-coupons-for-wc/thankyou-coupons-for-wc.php 92% from 13 tests
The principal PHP file in "Thankyou Coupons for WooCommerce" v. 2.2.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,077 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 175 | 472 | 922 |
Markdown | 1 | 75 | 0 | 136 |
CSS | 1 | 3 | 0 | 14 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 24 | 31.58% |
▷ Public methods | 65 | 85.53% |
▷ Protected methods | 6 | 7.89% |
▷ Private methods | 5 | 6.58% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.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