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.14MB] [CPU: ▼1.79ms] Passed 4 tests
An overview of server-side resources used by Extended Trial Coupon for WC Subscription
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 44.65 ▼2.00 |
Dashboard /wp-admin | 3.44 ▲0.13 | 47.49 ▼4.08 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.00 ▲0.08 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 91.29 ▼1.15 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 42.08 ▲4.38 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
wcs_trial_coupon_installed |
widget_theysaidso_widget |
widget_recent-posts |
wcs_trial_coupon_version |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Extended Trial Coupon for WC Subscription
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 13.29 ▼1.11 | 1.67 ▼0.19 | 40.13 ▼5.61 |
Dashboard /wp-admin | 2,226 ▲37 | 5.81 ▼0.10 | 99.69 ▼8.72 | 42.51 ▼2.86 |
Posts /wp-admin/edit.php | 2,108 ▲14 | 2.01 ▼0.05 | 34.09 ▼4.70 | 36.64 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 23.22 ▲5.70 | 694.90 ▲13.59 | 56.95 ▼2.08 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.26 ▲0.02 | 101.70 ▼14.46 | 46.18 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- wcs_trial_coupon_installed
- db_upgraded
- wcs_trial_coupon_version
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/extended-trial-coupon-for-wc-subscription/includes/views/coupon-fields.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: extends free trial, woo subscription free trial coupon, trial coupon, free trial coupon, woocommerce subscription trial coupon
extended-trial-coupon-for-wc-subscription/wcs-trial-coupon.php 77% from 13 tests
"Extended Trial Coupon for WC Subscription" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 180 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("extended-trial-coupon-for-wc-subscription.php" instead of "wcs-trial-coupon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,159 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 162 | 281 | 620 |
PO File | 5 | 95 | 105 | 429 |
Markdown | 1 | 11 | 0 | 48 |
JavaScript | 1 | 9 | 13 | 34 |
JSON | 2 | 0 | 0 | 21 |
CSS | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 48 | |
▷ Static methods | 9 | 18.75% |
▷ Public methods | 45 | 93.75% |
▷ Protected methods | 1 | 2.08% |
▷ Private methods | 2 | 4.17% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ 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
There are no PNG files in this plugin