89% split-order-by-warehouse

Code Review | Split Order By Warehouse for Woocommerce

WordPress plugin Split Order By Warehouse for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: split-order-by-wa...
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jan 21, 2021
  • Latest release: Apr 25, 2023
  • Number of updates: 19
  • Update frequency: every 43.5 days
  • Top authors: sunarc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /736 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.30ms] Passed 4 tests

A check of server-side resources used by Split Order By Warehouse for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.81 ▲0.50
Dashboard /wp-admin3.33 ▲0.0249.25 ▼7.20
Posts /wp-admin/edit.php3.38 ▲0.0247.34 ▼3.20
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.41 ▼19.28
Media Library /wp-admin/upload.php3.25 ▲0.0239.20 ▲2.99

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
split_by_warehouse_falg
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Split Order By Warehouse for Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.07 ▼0.041.77 ▲0.1043.71 ▲2.05
Dashboard /wp-admin2,198 ▲215.64 ▲0.0187.15 ▼1.3641.26 ▼3.07
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0834.14 ▼2.7033.96 ▼4.43
Add New Post /wp-admin/post-new.php1,526 ▼023.51 ▲0.27674.44 ▼20.7454.97 ▼2.06
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.03100.92 ▼2.9346.30 ▲1.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • db_upgraded
    • widget_recent-comments
    • split_by_warehouse_falg
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • splitorderwarehouse
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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 a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
4 plugin tags: split, woo commerce, split order by warehouse, orders

split-order-by-warehouse/split_order_by_warehouse.php 85% from 13 tests

The primary PHP file in "Split Order By Warehouse for Woocommerce" version 1.1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("split-order-by-warehouse.php" instead of "split_order_by_warehouse.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 detected428 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP411231410
JavaScript10218

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.78
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods222.22%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin