47% bsd-woo-stripe-connect-split-pay

Code Review | Split Pay for Stripe Connect on Woocommerce - Create a Marketplace in Minutes

WordPress plugin Split Pay for Stripe Connect on Woocommerce - Create a Marketplace in Minutes scored47%from 54 tests.

About plugin

  • Plugin page: bsd-woo-stripe-co...
  • Plugin version: 3.3.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2021
  • Latest release: Oct 2, 2023
  • Number of updates: 37
  • Update frequency: every 24.2 days
  • Top authors: brandonfire (89.19%)paulmiller3000 (13.51%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active /2,249 total downloads

Benchmarks

Plugin footprint 47% 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: ▲5.44MB] [CPU: ▲24.89ms] 75% from 4 tests

This is a short check of server-side resources used by Split Pay for Stripe Connect on Woocommerce - Create a Marketplace in Minutes
Please take the time to fix the following items
  • Extra RAM: The extra memory usage should kept under 5MB (currently 5.44MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.20 ▲5.7472.46 ▲32.95
Dashboard /wp-admin9.22 ▲5.8878.42 ▲14.01
Posts /wp-admin/edit.php9.22 ▲5.8783.09 ▲27.17
Add New Post /wp-admin/post-new.php10.18 ▲4.30128.67 ▲25.41
Media Library /wp-admin/upload.php9.22 ▲5.9982.79 ▲47.35
Split Pay for Stripe Connect on WooCommerce (PRO) /wp-admin/admin.php?page=bsd-split-pay-stripe-connect-woo9.2273.52
Split Pay Plugin /wp-admin/admin.php?page=bsd-split-pay-stripe-connect-woo-settings9.2279.18
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius9.2265.13

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 503 new files
Database: 3 new tables, 11 new options
New tables
wp_bsd_scsp_transfer_log
wp_bsd_strp_connected_id
wp_bsd_strp_accnt
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
fs_debug_mode
bsd_connected_id_table_created
widget_recent-posts
can_compress_scripts
fs_accounts
bsd_split_pay_stripe_connect_woo_back_end
theysaidso_admin_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for Split Pay for Stripe Connect on Woocommerce - Create a Marketplace in Minutes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7213.60 ▼0.941.46 ▼0.5033.82 ▼8.87
Dashboard /wp-admin2,239 ▲595.20 ▼0.4899.95 ▲6.3643.43 ▲2.94
Posts /wp-admin/edit.php2,148 ▲482.62 ▲0.6346.43 ▲7.2034.71 ▼4.00
Add New Post /wp-admin/post-new.php1,563 ▲3523.09 ▲0.48635.16 ▼12.8834.37 ▼21.72
Media Library /wp-admin/upload.php1,447 ▲444.62 ▲0.45106.59 ▲5.7247.55 ▲4.39
Split Pay for Stripe Connect on WooCommerce (PRO) /wp-admin/admin.php?page=bsd-split-pay-stripe-connect-woo1,0002.3232.5463.43
Split Pay Plugin /wp-admin/admin.php?page=bsd-split-pay-stripe-connect-woo-settings8672.1334.2828.71
Freemius Debug [v.2.5.12] /wp-admin/admin.php?page=freemius1,0872.4727.7528.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/bsd-woo-stripe-connect-split-pay/freemius/includes/class-freemius.php+8515
    Undefined property: stdClass::$plugins
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_bsd_strp_connected_id
    • wp_bsd_strp_accnt
    • wp_bsd_scsp_transfer_log
  • Zombie WordPress options detected upon uninstall: 11 options
    • fs_active_plugins
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • fs_debug_mode
    • bsd_split_pay_stripe_connect_woo_back_end
    • bsd_connected_id_table_created
    • db_upgraded
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% from 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
Please fix the following items
  • 6× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/build.php
    • > /wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/class-bsd-split-pay-stripe-connect-woo.php
    • > /wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/admin/partials/bsd-variable-product-table.php
    • > /wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/update_certs.php
    • > /wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/admin/partials/bsd-simple-product-table.php
    • > /wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/admin/class-bsd-sca.php
  • 226× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/ApplicationFee.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/Service/Radar/ValueListService.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/Recipient.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/Service/PromotionCodeService.php:7
    • > PHP Fatal error
      Uncaught Error: Interface 'Stripe\\Exception\\ExceptionInterface' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/Exception/ApiErrorException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/Service/FinancialConnections/SessionService.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/admin/partials/tab-transfers.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/Service/Sigma/SigmaServiceFactory.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/Subscription.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'Stripe\\Exception\\ApiErrorException' not found in wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/lib/Exception/PermissionException.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: Please take inspiration from this readme.txt

bsd-woo-stripe-connect-split-pay/bsd-split-pay-stripe-connect-woo.php 77% from 13 tests

"Split Pay for Stripe Connect on Woocommerce - Create a Marketplace in Minutes" version 3.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.2.3" instead of "3.7.1")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bsd-woo-stripe-connect-split-pay.php" instead of "bsd-split-pay-stripe-connect-woo.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
  • For security reasons, never distribute binary or executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/bsd-woo-stripe-connect-split-pay/includes/vendor/stripe/stripe-php/data/ca-certificates.crt
47,765 lines of code in 433 files:
LanguageFilesBlank linesComment linesLines of code
PHP39810,98529,12145,419
Markdown373001,265
JavaScript77779536
CSS165122294
JSON300121
XML34079
make110029
SVG10119
YAML1003

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
Please fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,088)
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity18.68
▷ Minimum class complexity1.00
▷ Maximum class complexity3,088.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces33
Interfaces9
Traits8
Classes287
▷ Abstract classes124.18%
▷ Concrete classes27595.82%
▷ Final classes00.00%
Methods2,205
▷ Static methods39217.78%
▷ Public methods1,69776.96%
▷ Protected methods763.45%
▷ Private methods43219.59%
Functions132
▷ Named functions11990.15%
▷ Anonymous functions139.85%
Constants985
▷ Global constants11411.57%
▷ Class constants87188.43%
▷ Public constants871100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
15 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png5.12KB4.92KB▼ 3.97%
assets/stripe-connect-transfers-table.png25.73KB25.54KB▼ 0.74%
assets/remove-account-id.png7.83KB8.39KB0.00%
assets/multi-account-upgrade-img.png9.14KB5.15KB▼ 43.68%
assets/screenshot-1.png16.43KB16.31KB▼ 0.70%