Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.13ms] Passed 4 tests
A check of server-side resources used by WC Thank You Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.75 ▼2.88 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.45 ▲1.18 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.23 ▲1.92 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.06 ▼4.72 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.01 ▲3.94 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 8 new options
New WordPress options |
---|
WPTE_thankyou_installed |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
WPTE_thankyou_version |
Browser metrics Passed 4 tests
An overview of browser requirements for WC Thank You Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 13.20 ▼1.23 | 1.82 ▼0.15 | 38.52 ▼2.23 |
Dashboard /wp-admin | 2,229 ▲77 | 5.89 ▲0.20 | 107.23 ▼1.95 | 37.44 ▼4.32 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 2.01 ▲0.02 | 35.14 ▼3.77 | 36.26 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 23.49 ▲5.89 | 669.68 ▲63.16 | 52.98 ▼8.19 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.25 ▲0.00 | 97.03 ▼10.07 | 41.11 ▼4.19 |
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
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- WPTE_thankyou_version
- db_upgraded
- WPTE_thankyou_installed
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-tabs.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wc-thank-you-page/wc-thank-you-page.php:15
- > PHP Warning
Use of undefined constant WPTE_THANKYOU_MINIMUM_WC_VERSION - assumed 'WPTE_THANKYOU_MINIMUM_WC_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-status.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-tutorial.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-status.php:46
- > PHP Warning
Use of undefined constant WP_CACHE - assumed 'WP_CACHE' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-status.php on line 5
- > PHP Warning
Use of undefined constant WPTE_THANKYOU_MINIMUM_PHP_VERSION - assumed 'WPTE_THANKYOU_MINIMUM_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-status.php on line 20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-shortcode.php:13
- > PHP Warning
Use of undefined constant WC_VERSION - assumed 'WC_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-status.php on line 31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-thank-you-page/includes/Admin/views/wpte-thankyou-general.php:37
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: redirect thank you page, thank you page, woocommerce thanks redirect, woocommerce thank you, wordpress...
wc-thank-you-page/wc-thank-you-page.php Passed 13 tests
The main PHP file in "WC Thank You Page" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
This is redirect to thank you page plugin after complete order for Woocommerce
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,572 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 318 | 398 | 977 |
CSS | 4 | 111 | 37 | 518 |
JavaScript | 2 | 32 | 9 | 37 |
HTML | 1 | 1 | 0 | 24 |
SVG | 1 | 3 | 0 | 15 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 58 | |
▷ Static methods | 5 | 8.62% |
▷ Public methods | 56 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.45% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 12 | |
▷ Global constants | 8 | 66.67% |
▷ Class constants | 4 | 33.33% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/Screenshot_2.png | 104.55KB | 62.79KB | ▼ 39.95% |
assets/img/Screenshot_1.png | 74.85KB | 29.09KB | ▼ 61.13% |
assets/img/logo.png | 20.26KB | 12.06KB | ▼ 40.47% |
assets/img/Screenshot_3.png | 78.45KB | 30.51KB | ▼ 61.10% |