WordPress plugin Splitit scored78%from 54 tests.

About plugin

  • Plugin page: splitit-installme...
  • Plugin version: 4.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Jul 24, 2021
  • Latest release: Oct 23, 2023
  • Number of updates: 43
  • Update frequency: every 19.1 days
  • Top authors: SplitIt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /5,485 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.64MB] [CPU: ▲0.21ms] Passed 4 tests

An overview of server-side resources used by Splitit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6340.39 ▲1.07
Dashboard /wp-admin3.99 ▲0.6946.81 ▼2.32
Posts /wp-admin/edit.php4.05 ▲0.6947.13 ▲1.34
Add New Post /wp-admin/post-new.php6.51 ▲0.6391.73 ▲0.73
Media Library /wp-admin/upload.php3.85 ▲0.6340.37 ▲6.82

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Splitit
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.17 ▼0.081.57 ▼0.0339.57 ▼1.77
Dashboard /wp-admin2,195 ▲185.58 ▼0.0281.86 ▼6.0337.06 ▼5.35
Posts /wp-admin/edit.php2,097 ▼32.14 ▲0.1534.07 ▼3.0035.54 ▲1.31
Add New Post /wp-admin/post-new.php1,526 ▼223.18 ▲0.21582.22 ▼80.8361.17 ▲9.22
Media Library /wp-admin/upload.php1,397 ▼04.18 ▼0.0496.63 ▼2.7641.23 ▼1.52

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/splitit-installment-payments/template/flex-field-index.php
  • 165× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Splitit\\Model\\ModelInterface' not found in wp-content/plugins/splitit-installment-payments/vendor/konfig/splitit-web-php-sdk/lib/Model/ErrorExtended.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Splitit\\CustomApi' not found in wp-content/plugins/splitit-installment-payments/vendor/konfig/splitit-web-php-sdk/lib/Api/InstallmentPlanApi.php:40
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/splitit-installment-payments/vendor/guzzlehttp/psr7/src/AppendStream.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Splitit\\Model\\ModelInterface' not found in wp-content/plugins/splitit-installment-payments/vendor/konfig/splitit-web-php-sdk/lib/Model/Installment.php:35
    • > PHP Fatal error
      Uncaught Error: Interface 'Splitit\\Model\\ModelInterface' not found in wp-content/plugins/splitit-installment-payments/vendor/konfig/splitit-web-php-sdk/lib/Model/InstallmentPlanCreateResponse.php:35
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/splitit-installment-payments/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/splitit-installment-payments/vendor/konfig/splitit-web-php-sdk/test/Model/PaymentMethodTypeTest.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/splitit-installment-payments/vendor/konfig/splitit-web-php-sdk/test/Model/RefundModelTest.php:34
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/splitit-installment-payments/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/splitit-installment-payments/vendor/guzzlehttp/psr7/src/FnStream.php:16

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

splitit-installment-payments/splitIt-flexfields-payment-gateway.php 92% from 13 tests

This is the main PHP file of "Splitit" version 4.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("splitit-installment-payments.php" instead of "splitIt-flexfields-payment-gateway.php")

Code Analysis 97% from 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 plugin49,703 lines of code in 459 files:
LanguageFilesBlank linesComment linesLines of code
PHP2668,40625,90135,389
JavaScript686939845,659
Markdown841,88905,332
CSS4217571,963
JSON15001,217
SVG2100130
XML10013

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 201)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity15.31
▷ Minimum class complexity1.00
▷ Maximum class complexity688.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity201.00
Code structure
Namespaces16
Interfaces27
Traits4
Classes218
▷ Abstract classes00.00%
▷ Concrete classes218100.00%
▷ Final classes3516.06%
Methods3,276
▷ Static methods70021.37%
▷ Public methods2,93089.44%
▷ Protected methods571.74%
▷ Private methods2898.82%
Functions156
▷ Named functions3119.87%
▷ Anonymous functions12580.13%
Constants176
▷ Global constants31.70%
▷ Class constants17398.30%
▷ Public constants16293.64%

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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo-splitit.png3.40KB1.82KB▼ 46.44%
assets/img/shirt-icon.png3.33KB3.18KB▼ 4.34%
assets/img/no-image-icon-23485.png2.68KB1.62KB▼ 39.55%