89% order-redirects-for-woocommerce

Code Review | Order Redirects for WooCommerce

WordPress plugin Order Redirects for WooCommerce scored 89% from 54 tests.

About plugin

  • Plugin page: order-redirects-f...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2021
  • Latest release: Mar 30, 2023
  • Number of updates: 15
  • Update frequency: every 48.1 days
  • Top authors: wpsunshine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,785 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.12MB] [CPU: ▼7.98ms] Passed 4 tests

Analyzing server-side resources used by Order Redirects for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▼0.5821.15 ▼21.98
Dashboard /wp-admin3.34 ▲0.0447.31 ▼4.82
Posts /wp-admin/edit.php3.39 ▲0.0453.19 ▼7.25
Add New Post /wp-admin/post-new.php5.92 ▲0.0494.18 ▲2.15
Media Library /wp-admin/upload.php3.27 ▲0.0434.50 ▲2.62

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Order Redirects for WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,456 ▼30113.32 ▼1.430.55 ▼1.9219.24 ▼28.79
Dashboard /wp-admin2,206 ▲155.89 ▲0.99109.22 ▲6.2844.03 ▲0.11
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0339.00 ▼0.9232.78 ▼2.08
Add New Post /wp-admin/post-new.php1,514 ▼1917.65 ▼5.78619.33 ▼48.8962.17 ▲8.86
Media Library /wp-admin/upload.php1,382 ▼64.32 ▲0.1094.46 ▼2.3242.47 ▼0.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: redirect, woocommerce, purchase, thank you, order...

order-redirects-for-woocommerce/woocommerce-order-redirects.php 85% from 13 tests

The main PHP script in "Order Redirects for WooCommerce" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("order-redirects-for-woocommerce.php" instead of "woocommerce-order-redirects.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected146 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12820146

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity3.38
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected