Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.29ms] Passed 4 tests
An overview of server-side resources used by Free Trial Coupon for Woocommerce Subscriptions
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.65 ▼5.43 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.01 ▼3.76 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.52 ▲3.31 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 78.79 ▼3.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.31 ▼0.03 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Free Trial Coupon for Woocommerce Subscriptions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.43 ▼0.25 | 1.71 ▼0.39 | 44.18 ▼1.95 |
Dashboard /wp-admin | 2,218 ▲30 | 5.81 ▲0.95 | 100.96 ▼15.17 | 39.34 ▼7.03 |
Posts /wp-admin/edit.php | 2,101 ▲30 | 2.00 ▼0.02 | 40.56 ▲2.58 | 38.11 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,526 ▲7 | 17.48 ▼6.07 | 690.37 ▲47.02 | 58.55 ▲3.33 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.24 ▲0.02 | 95.81 ▼8.68 | 43.23 ▲1.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/woo-subscription-trial-coupon/woo-subscription-trial-coupon.php
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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: extends free trial, woocommerce subscription free trial coupon, trial coupon, woocommerce subscription trial coupon, free trial coupon
woo-subscription-trial-coupon/woo-subscription-trial-coupon.php 85% from 13 tests
Analyzing the main PHP file in "Free Trial Coupon for Woocommerce Subscriptions" version 1.0.1
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin171 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 89 | 202 | 137 |
JavaScript | 1 | 10 | 13 | 34 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 5.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 5 | 45.45% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
PNG images were not found in this plugin