89% redirect-thank-you-page

Code Review | Advanced Redirect Thank You for Woocommerce

WordPress plugin Advanced Redirect Thank You for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: redirect-thank-yo...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8
  • WordPress version: 6.3.1
  • First release: Aug 8, 2021
  • Latest release: Aug 8, 2021
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: actpro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /476 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.30 ▼1.03
Dashboard /wp-admin3.31 ▲0.0049.40 ▼4.31
Posts /wp-admin/edit.php3.36 ▲0.0050.00 ▼0.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.91 ▼14.53
Media Library /wp-admin/upload.php3.23 ▲0.0036.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.421.95 ▲0.3342.31 ▼0.94
Dashboard /wp-admin2,192 ▲155.65 ▲0.1285.99 ▼3.6739.18 ▼3.15
Posts /wp-admin/edit.php2,100 ▼02.04 ▲0.0241.30 ▲7.0137.59 ▲1.48
Add New Post /wp-admin/post-new.php1,528 ▼023.22 ▲0.08635.54 ▼9.1871.32 ▲15.67
Media Library /wp-admin/upload.php1,403 ▲34.27 ▲0.0499.29 ▼10.0449.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: Please take inspiration from this 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:
LanguageFilesBlank linesComment linesLines of code
PHP132971,1552,561
JavaScript42313031,907
CSS736861,868
PO File193135210
Markdown127079

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 code0.39
Average class complexity38.62
▷ Minimum class complexity1.00
▷ Maximum class complexity67.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods97
▷ Static methods3030.93%
▷ Public methods8991.75%
▷ Protected methods66.19%
▷ Private methods22.06%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/free-product-listing.png241.50KB59.12KB▼ 75.52%
assets/images/global-thank-you-free.png250.65KB61.45KB▼ 75.49%
assets/images/payment-single-settings.png297.30KB75.57KB▼ 74.58%
assets/images/global-thank-you.png217.26KB54.40KB▼ 74.96%
assets/images/payment-gateway-based-redirection-listing.png212.68KB49.63KB▼ 76.67%