90% woo-thank-you-page-customizer

Code Review | Thank You Page Customizer for WooCommerce - Increase Your Sales

WordPress plugin Thank You Page Customizer for WooCommerce - Increase Your Sales scored90%from 54 tests.

About plugin

  • Plugin page: woo-thank-you-pag...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Aug 11, 2023
  • Number of updates: 46
  • Update frequency: every 37.8 days
  • Top authors: dragonlord47 (32.61%)mytrinh (26.09%)mrt3vn (23.91%)kimvt1991 (23.91%)

Code review

54 tests

User reviews

35 reviews

Install metrics

5,000+ active /62,222 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.16MB] [CPU: ▲1.52ms] Passed 4 tests

A check of server-side resources used by Thank You Page Customizer for WooCommerce - Increase Your Sales
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1748.98 ▲10.38
Dashboard /wp-admin3.47 ▲0.1646.54 ▼2.65
Posts /wp-admin/edit.php3.58 ▲0.2253.19 ▲4.82
Add New Post /wp-admin/post-new.php6.05 ▲0.1696.60 ▲2.20
Media Library /wp-admin/upload.php3.39 ▲0.1637.23 ▲1.69

Server storage [IO: ▲2.29MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 110 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Thank You Page Customizer for WooCommerce - Increase Your Sales: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.33 ▼0.031.67 ▼0.0340.99 ▼2.93
Dashboard /wp-admin2,198 ▲185.63 ▲0.1090.03 ▼0.1941.01 ▼2.34
Posts /wp-admin/edit.php2,113 ▲131.95 ▼0.0840.58 ▲2.7036.18 ▲0.57
Add New Post /wp-admin/post-new.php1,543 ▲618.21 ▼0.31610.19 ▲7.2072.87 ▲6.26
Media Library /wp-admin/upload.php1,412 ▲94.23 ▲0.0095.01 ▼5.6549.76 ▲5.27

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce thank you page, custom thank you page for woocommerce, wc custom thank you, woocommerce thank you page customizer, woocommerce thank you page coupon

woo-thank-you-page-customizer/woo-thank-you-page-customizer.php 92% from 13 tests

"Thank You Page Customizer for WooCommerce - Increase Your Sales" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "6.0")

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
There were no executable files found in this plugin19,390 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP135802338,619
JavaScript141,3234336,660
CSS213241481,951
SVG4091,626
PO File1234417534

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity40.50
▷ Minimum class complexity1.00
▷ Maximum class complexity231.00
Average method complexity5.75
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods117
▷ Static methods43.42%
▷ Public methods8673.50%
▷ Protected methods1210.26%
▷ Private methods1916.24%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.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
38 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/markers/red-pushpin.png1.30KB1.41KB0.00%
images/markers/pink-pushpin.png1.39KB1.40KB0.00%
images/markers/if-marker-10.png1.53KB1.51KB▼ 0.90%
images/markers/if-marker-8.png1.61KB1.51KB▼ 6.31%
images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%