84% splitter-orders-for-woocommerce

Code Review | Splitter Orders For Woocommerce

WordPress plugin Splitter Orders For Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: splitter-orders-f...
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 13, 2022
  • Latest release: Dec 19, 2022
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: liyanitsolution (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /466 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.52ms] Passed 4 tests

This is a short check of server-side resources used by Splitter Orders For Woocommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1949.16 ▲6.95
Dashboard /wp-admin3.37 ▲0.0750.74 ▼0.60
Posts /wp-admin/edit.php3.48 ▲0.1351.12 ▼0.36
Add New Post /wp-admin/post-new.php5.97 ▲0.0994.54 ▼1.92
Media Library /wp-admin/upload.php3.29 ▲0.0737.22 ▼3.18
Order_Splitter /wp-admin/admin.php?page=order-splitter3.2635.77

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
lisg_ordersplitterpro

Browser metrics Passed 4 tests

This is an overview of browser requirements for Splitter Orders For Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7513.88 ▼0.351.61 ▼1.0441.27 ▼1.62
Dashboard /wp-admin2,227 ▲395.02 ▲0.14109.91 ▲4.6739.29 ▼2.82
Posts /wp-admin/edit.php2,115 ▲262.30 ▲0.3340.95 ▲2.0835.28 ▲0.70
Add New Post /wp-admin/post-new.php1,530 ▲1023.48 ▲0.23678.77 ▼13.1137.13 ▼21.87
Media Library /wp-admin/upload.php1,406 ▲184.38 ▲0.26101.10 ▼13.8343.48 ▼7.08
Order_Splitter /wp-admin/admin.php?page=order-splitter8551.9627.6723.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • lisg_auto_forced
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • lisg_ordersplitterpro
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/splitter-orders-for-woocommerce/inc/configuration.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/splitter-orders-for-woocommerce/inc/emails_all.php:3

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: split order, orders, split, woocommerce

splitter-orders-for-woocommerce/index.php 92% from 13 tests

This is the main PHP file of "Splitter Orders For Woocommerce" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("splitter-orders-for-woocommerce.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin681 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP614135629
CSS13034
JavaScript10218

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity13.67
▷ Minimum class complexity3.00
▷ Maximum class complexity27.00
Average method complexity3.11
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 images were found in this plugin