Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.36ms] Passed 4 tests
Analyzing server-side resources used by Advanced Redirect Thank You for Woocommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.30 ▼1.03 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.40 ▼4.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.00 ▼0.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.91 ▼14.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.47 ▼1.58 |
Server storage [IO: ▲4.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Advanced Redirect Thank You for Woocommerce: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.42 | 1.95 ▲0.33 | 42.31 ▼0.94 |
Dashboard /wp-admin | 2,192 ▲15 | 5.65 ▲0.12 | 85.99 ▼3.67 | 39.18 ▼3.15 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.02 | 41.30 ▲7.01 | 37.59 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.22 ▲0.08 | 635.54 ▼9.18 | 71.32 ▲15.67 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.27 ▲0.04 | 99.29 ▼10.04 | 49.55 ▲5.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in redirect-thank-you-page/assets to your readme.txt
redirect-thank-you-page/redirect-thank-you-page.php 92% from 13 tests
The main file in "Advanced Redirect Thank You for Woocommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.8" instead of "3.0")
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
No dangerous file extensions were detected6,625 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 297 | 1,155 | 2,561 |
JavaScript | 4 | 231 | 303 | 1,907 |
CSS | 7 | 368 | 6 | 1,868 |
PO File | 1 | 93 | 135 | 210 |
Markdown | 1 | 27 | 0 | 79 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 38.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 30 | 30.93% |
▷ Public methods | 89 | 91.75% |
▷ Protected methods | 6 | 6.19% |
▷ Private methods | 2 | 2.06% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 4.31MB with 3.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/free-product-listing.png | 241.50KB | 59.12KB | ▼ 75.52% |
assets/images/global-thank-you-free.png | 250.65KB | 61.45KB | ▼ 75.49% |
assets/images/payment-single-settings.png | 297.30KB | 75.57KB | ▼ 74.58% |
assets/images/global-thank-you.png | 217.26KB | 54.40KB | ▼ 74.96% |
assets/images/payment-gateway-based-redirection-listing.png | 212.68KB | 49.63KB | ▼ 76.67% |