83% bc-woo-custom-thank-you-pages

Code Review | Custom Thank You Page Customize For WooCommerce by Binary Carpenter

WordPress plugin Custom Thank You Page Customize For WooCommerce by Binary Carpenter scored83%from 54 tests.

About plugin

  • Plugin page: bc-woo-custom-tha...
  • Plugin version: 1.4.11
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 8, 2019
  • Latest release: Nov 28, 2023
  • Number of updates: 19
  • Update frequency: every 84.5 days
  • Top authors: bc2018 (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

2,000+ active /20,943 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.39MB] [CPU: ▼2.31ms] Passed 4 tests

Analyzing server-side resources used by Custom Thank You Page Customize For WooCommerce by Binary Carpenter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.89 ▲0.4338.78 ▼5.90
Dashboard /wp-admin3.73 ▲0.4349.72 ▼3.06
Posts /wp-admin/edit.php3.78 ▲0.4253.61 ▼0.37
Add New Post /wp-admin/post-new.php6.25 ▲0.3699.72 ▲0.37
Media Library /wp-admin/upload.php3.59 ▲0.3636.25 ▲0.11

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Custom Thank You Page Customize For WooCommerce by Binary Carpenter: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.12 ▼0.221.69 ▼0.1435.57 ▼9.57
Dashboard /wp-admin2,195 ▲205.61 ▼0.0692.29 ▼29.8243.90 ▲0.38
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0139.86 ▲0.6034.86 ▲2.60
Add New Post /wp-admin/post-new.php1,526 ▼023.63 ▲0.37645.35 ▲0.1355.21 ▲0.35
Media Library /wp-admin/upload.php1,397 ▼64.22 ▼0.0396.05 ▼0.9740.89 ▼2.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BinaryCarpenter\\BC_TK\\add_action() in wp-content/plugins/bc-woo-custom-thank-you-pages/Initiator.php:603

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
6 plugin tags: order received, custom thank you page, woocommerce, woocommerce thank you page, thank you page builder...

bc-woo-custom-thank-you-pages/Initiator.php 77% from 13 tests

The entry point to "Custom Thank You Page Customize For WooCommerce by Binary Carpenter" version 1.4.11 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("bc-woo-custom-thank-you-pages.php" instead of "Initiator.php")
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "3.0.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
Success! There were no dangerous files found in this plugin10,596 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23,552838,692
PHP95503621,903
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity25.22
▷ Minimum class complexity1.00
▷ Maximum class complexity97.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods135
▷ Static methods8965.93%
▷ Public methods12794.07%
▷ Protected methods00.00%
▷ Private methods85.93%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants97
▷ Global constants00.00%
▷ Class constants97100.00%
▷ Public constants97100.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
No PNG files were detected