10% boxy-woocommerce-custom-redirect-after-checkout

Code Review | Boxy woocommerce custom redirect after checkout

WordPress plugin Boxy woocommerce custom redirect after checkout scored10%from 54 tests.

About plugin

  • Plugin page: boxy-woocommerce-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9.2
  • WordPress version: 6.3.1
  • First release: May 5, 2016
  • Latest release: Aug 3, 2023
  • Number of updates: 9
  • Update frequency: every 294.1 days
  • Top authors: mandeep007 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

800+ active /6,980 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/boxy-woocommerce-custom-redirect-after-checkout/boxy woocommerce custom redirect after checkout .php+165
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.90MB] [CPU: ▼49.64ms] Passed 4 tests

An overview of server-side resources used by Boxy woocommerce custom redirect after checkout
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.385.45 ▼34.89
Dashboard /wp-admin2.11 ▼1.206.09 ▼38.39
Posts /wp-admin/edit.php2.11 ▼1.256.32 ▼38.21
Add New Post /wp-admin/post-new.php2.11 ▼3.786.77 ▼87.07
Media Library /wp-admin/upload.php2.11 ▼1.125.30 ▼28.42
Boxy Wc Redirect /wp-admin/options-general.php?page=boxy-wc-redirect2.116.54

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Boxy woocommerce custom redirect after checkout
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.25 ▼1.331.63 ▼0.2644.35 ▼3.75
Dashboard /wp-admin2,210 ▲245.82 ▲0.8799.49 ▼14.6638.43 ▼9.28
Posts /wp-admin/edit.php2,090 ▲12.04 ▲0.0235.91 ▼4.2133.98 ▼1.33
Add New Post /wp-admin/post-new.php1,549 ▲1323.46 ▲0.22662.78 ▲33.2059.04 ▲10.43
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0198.95 ▼3.5241.20 ▼3.21
Boxy Wc Redirect /wp-admin/options-general.php?page=boxy-wc-redirect7792.0626.1927.22

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/boxy-woocommerce-custom-redirect-after-checkout/boxy woocommerce custom redirect after checkout .php+165
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=boxy-wc-redirect
    • > Notice in wp-content/plugins/boxy-woocommerce-custom-redirect-after-checkout/boxy woocommerce custom redirect after checkout .php+165
    Trying to access array offset on value of type bool

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
Congratulations! This plugin passed the SRP test

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: boxy plugins, woocommerce thankyou page, wocommerce custom redirect

boxy-woocommerce-custom-redirect-after-checkout/boxy woocommerce custom redirect after checkout .php 85% from 13 tests

"Boxy woocommerce custom redirect after checkout" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("boxy-woocommerce-custom-redirect-after-checkout.php" instead of "boxy woocommerce custom redirect after checkout .php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin246 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12137535240
JavaScript24546
CSS2080

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin