Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▼3.20ms] Passed 4 tests
A check of server-side resources used by Thank You Page for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.31 ▼0.15 | 22.03 ▼21.72 |
Dashboard /wp-admin | 3.90 ▲0.56 | 53.53 ▼6.82 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 55.81 ▲13.50 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 97.74 ▲11.10 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 38.66 ▲4.63 |
Thank You Page for WooCommerce /wp-admin/admin.php?page=wc-thanks-redirect | 3.89 | 41.89 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 3.99 | 37.89 |
Server storage [IO: ▲4.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 217 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_active_plugins |
fs_debug_mode |
can_compress_scripts |
fs_accounts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Thank You Page for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼282 | 14.26 ▼0.09 | 0.44 ▼1.19 | 7.64 ▼36.64 |
Dashboard /wp-admin | 2,215 ▲40 | 5.47 ▼0.22 | 98.27 ▼6.97 | 46.86 ▲6.67 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.10 ▲0.16 | 42.09 ▲1.74 | 36.55 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,534 ▼0 | 23.69 ▼1.45 | 609.01 ▼1.14 | 53.40 ▼26.89 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.18 ▲0.02 | 96.38 ▼2.19 | 45.81 ▲3.31 |
Thank You Page for WooCommerce /wp-admin/admin.php?page=wc-thanks-redirect | 974 | 1.69 | 28.64 | 58.14 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,069 | 1.65 | 27.58 | 27.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wc-thanks-redirect/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_active_plugins
- db_upgraded
- widget_recent-posts
- fs_accounts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- fs_debug_mode
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wc-thanks-redirect
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wc-thanks-redirect/wc-thanks-redirect.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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: thank you page woocommerce, thanks redirect, woocommerce thank you redirect, thank you redirect, thank you page...
wc-thanks-redirect/wc-thanks-redirect.php 92% from 13 tests
Analyzing the main PHP file in "Thank You Page for WooCommerce" version 4.1.0
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 207 characters long)
Code Analysis 97% from 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
No dangerous file extensions were detected51,572 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 8,195 | 17,482 | 34,181 |
PO File | 17 | 7,584 | 9,199 | 16,927 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
JSON | 1 | 0 | 0 | 27 |
XML | 1 | 3 | 0 | 16 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 87.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,277 | |
▷ Static methods | 199 | 15.58% |
▷ Public methods | 877 | 68.68% |
▷ Protected methods | 17 | 1.33% |
▷ Private methods | 383 | 29.99% |
Functions | 114 | |
▷ Named functions | 113 | 99.12% |
▷ Anonymous functions | 1 | 0.88% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.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
5 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/wc-place-order-without-payment.png | 7.50KB | 4.32KB | ▼ 42.41% |
freemius/assets/img/wc-thanks-redirect.png | 23.38KB | 10.44KB | ▼ 55.36% |
freemius/assets/img/wc-thanks-redirect-pro.png | 23.38KB | 10.44KB | ▼ 55.36% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |