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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 40.39 ▲1.07 |
Dashboard /wp-admin | 3.99 ▲0.69 | 46.81 ▼2.32 |
Posts /wp-admin/edit.php | 4.05 ▲0.69 | 47.13 ▲1.34 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 91.73 ▲0.73 |
Media Library /wp-admin/upload.php | 3.85 ▲0.63 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.17 ▼0.08 | 1.57 ▼0.03 | 39.57 ▼1.77 |
Dashboard /wp-admin | 2,195 ▲18 | 5.58 ▼0.02 | 81.86 ▼6.03 | 37.06 ▼5.35 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.14 ▲0.15 | 34.07 ▼3.00 | 35.54 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.18 ▲0.21 | 582.22 ▼80.83 | 61.17 ▲9.22 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.18 ▼0.04 | 96.63 ▼2.76 | 41.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 266 | 8,406 | 25,901 | 35,389 |
JavaScript | 68 | 693 | 984 | 5,659 |
Markdown | 84 | 1,889 | 0 | 5,332 |
CSS | 4 | 217 | 57 | 1,963 |
JSON | 15 | 0 | 0 | 1,217 |
SVG | 21 | 0 | 0 | 130 |
XML | 1 | 0 | 0 | 13 |
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 code | 0.37 |
Average class complexity | 15.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 688.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 201.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 27 | |
Traits | 4 | |
Classes | 218 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 218 | 100.00% |
▷ Final classes | 35 | 16.06% |
Methods | 3,276 | |
▷ Static methods | 700 | 21.37% |
▷ Public methods | 2,930 | 89.44% |
▷ Protected methods | 57 | 1.74% |
▷ Private methods | 289 | 8.82% |
Functions | 156 | |
▷ Named functions | 31 | 19.87% |
▷ Anonymous functions | 125 | 80.13% |
Constants | 176 | |
▷ Global constants | 3 | 1.70% |
▷ Class constants | 173 | 98.30% |
▷ Public constants | 162 | 93.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo-splitit.png | 3.40KB | 1.82KB | ▼ 46.44% |
assets/img/shirt-icon.png | 3.33KB | 3.18KB | ▼ 4.34% |
assets/img/no-image-icon-23485.png | 2.68KB | 1.62KB | ▼ 39.55% |