89% split-order-by-category

Code Review | Split Order by category for Woocommerce

WordPress plugin Split Order by category for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: split-order-by-ca...
  • Plugin version: 1.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 18, 2020
  • Latest release: Apr 25, 2023
  • Number of updates: 26
  • Update frequency: every 40.5 days
  • Top authors: sunarc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,935 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼15.94ms] Passed 4 tests

Server-side resources used by Split Order by category for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1837.77 ▼10.31
Dashboard /wp-admin3.35 ▲0.0048.75 ▼17.29
Posts /wp-admin/edit.php3.41 ▲0.0448.10 ▼6.63
Add New Post /wp-admin/post-new.php5.94 ▲0.0483.79 ▼29.54
Media Library /wp-admin/upload.php3.28 ▲0.0434.81 ▼3.42

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
split_by_cat_falg
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Split Order by category for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.001.50 ▼0.5240.13 ▼1.91
Dashboard /wp-admin2,198 ▲185.65 ▲0.0695.34 ▲8.1940.78 ▲0.13
Posts /wp-admin/edit.php2,100 ▼02.14 ▲0.1141.04 ▼1.5935.74 ▼10.60
Add New Post /wp-admin/post-new.php1,526 ▼023.11 ▼0.01607.68 ▼3.8454.74 ▼2.83
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.03101.92 ▼2.9242.41 ▼3.15

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • splitordercategory
    • widget_recent-comments
    • split_by_cat_falg
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Screenshot #1 (Woocommerce setting tab to configure Split order by category woocommerce (Free Plugin)) image required
  • Donate link: Please fix this invalid url: ""
You can take inspiration from this readme.txt

split-order-by-category/split_order_by_category.php 85% from 13 tests

Analyzing the main PHP file in "Split Order by category for Woocommerce" version 1.1.3
It is important to fix the following:
  • 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-category.php" instead of "split_order_by_category.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
There were no executable files found in this plugin421 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP411637403
JavaScript10218

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity20.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin