89% custom-thank-you-for-woocommerce

Code Review | Custom Thank You for WooCommerce

WordPress plugin Custom Thank You for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: custom-thank-you-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Feb 26, 2020
  • Latest release: Aug 11, 2023
  • Number of updates: 21
  • Update frequency: every 60.1 days
  • Top authors: artiosmedia (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /5,154 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.83ms] Passed 4 tests

Server-side resources used by Custom Thank You for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.10 ▼3.23
Dashboard /wp-admin3.31 ▲0.0044.70 ▼2.30
Posts /wp-admin/edit.php3.36 ▲0.0044.62 ▼1.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.37 ▼8.76
Media Library /wp-admin/upload.php3.23 ▲0.0033.28 ▼0.72

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
ctyw_enable_fb_social_box
ctyw_enable_twitter_social_box
ctyw_enable_pinterest_social_box
ctyw_notice_dismiss
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Thank You for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.54 ▲0.141.57 ▲0.1237.30 ▼0.59
Dashboard /wp-admin2,192 ▲185.66 ▲0.0581.32 ▼8.2839.89 ▲1.53
Posts /wp-admin/edit.php2,097 ▼31.98 ▲0.0333.19 ▼3.3035.56 ▼0.60
Add New Post /wp-admin/post-new.php1,535 ▲1018.17 ▼5.68658.96 ▲34.8669.08 ▲9.84
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.1193.60 ▼10.0042.36 ▼1.90

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 10 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • ctyw_enable_twitter_social_box
    • widget_theysaidso_widget
    • widget_recent-comments
    • ctyw_notice_dismiss
    • ctyw_enable_fb_social_box
    • ctyw_enable_pinterest_social_box

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
7 plugin tags: receipt, invoice, woocommerce, redirect, checkout...

custom-thank-you-for-woocommerce/custom-thank-you-for-woocommerce.php 85% from 13 tests

The principal PHP file in "Custom Thank You for WooCommerce" v. 1.1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("4.6" instead of "4.6.0")

Code Analysis Passed 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
There were no executable files found in this plugin1,569 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP4192238843
PO File3105114333
CSS1511228
JavaScript33465161
SVG4004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity45.33
▷ Minimum class complexity10.00
▷ Maximum class complexity100.00
Average method complexity5.16
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods412.50%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/next.png0.80KB0.73KB▼ 7.98%
assets/images/prev.png0.82KB0.76KB▼ 6.80%