84% split-order-for-woocommerce

Code Review | Split Order on checkout pro for Woocommerce

WordPress plugin Split Order on checkout pro for Woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: split-order-for-w...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 23, 2020
  • Latest release: Apr 25, 2023
  • Number of updates: 39
  • Update frequency: every 30.5 days
  • Top authors: sunarc (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.41ms] Passed 4 tests

This is a short check of server-side resources used by Split Order on checkout pro for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2042.44 ▲2.89
Dashboard /wp-admin3.37 ▲0.0344.70 ▼11.66
Posts /wp-admin/edit.php3.48 ▲0.1342.95 ▼2.70
Add New Post /wp-admin/post-new.php5.97 ▲0.0989.94 ▼13.45
Media Library /wp-admin/upload.php3.29 ▲0.0735.93 ▲2.17
Split Order /wp-admin/admin.php?page=split-order3.2630.97

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
wos_splitorderpro

Browser metrics Passed 4 tests

A check of browser resources used by Split Order on checkout pro for Woocommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4913.23 ▼1.494.23 ▲2.6143.65 ▲1.49
Dashboard /wp-admin2,216 ▲365.79 ▲0.1786.10 ▼1.1337.50 ▼3.95
Posts /wp-admin/edit.php2,126 ▲262.27 ▲0.3341.30 ▲0.7635.82 ▼3.29
Add New Post /wp-admin/post-new.php1,551 ▲2318.30 ▼4.77632.61 ▼26.3647.38 ▼9.81
Media Library /wp-admin/upload.php1,415 ▲124.56 ▲0.40105.03 ▲4.5446.99 ▲3.17
Split Order /wp-admin/admin.php?page=split-order8671.8526.8326.12

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_recent-posts
    • wos_auto_forced
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • wos_splitorderpro
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/split-order-for-woocommerce/inc/emails_all.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/split-order-for-woocommerce/inc/configuration.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
There were no plugin tags found

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

This is the main PHP file of "Split Order on checkout pro for Woocommerce" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("split-order-for-woocommerce.php" instead of "index.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin681 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP633935629
CSS13034
JavaScript10218

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.00
▷ Minimum class complexity3.00
▷ Maximum class complexity25.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin