84% vbsso-lite

Code Review | vBSSO-lite

WordPress plugin vBSSO-lite scored 84% from 53 tests.

About plugin

  • Plugin page: vbsso-lite
  • Plugin version: 1.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 5.8.1
  • First release: Jul 11, 2017
  • Latest release: Nov 30, 2020
  • Number of updates: 26
  • Update frequency: every 47.6 days
  • Top authors: extremeidea (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 5,953 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▼294.47ms] Passed 4 tests

Server-side resources used by vBSSO-lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.33 ▲0.5041.12 ▲5.51
Dashboard /wp-admin3.55 ▲0.4951.44 ▲4.74
Posts /wp-admin/edit.php3.60 ▲0.4951.65 ▲3.25
Add New Post /wp-admin/post-new.php5.91 ▲0.4893.07 ▼1,180.97
Media Library /wp-admin/upload.php3.49 ▲0.4834.75 ▼4.88
vBSSO /wp-admin/options-general.php?page=vbsso_options3.4032.54

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 95 new files
Database: no new tables, 1 new option
New WordPress options
widget_vbsso_login_form

Browser metrics Passed 4 tests

Checking browser requirements for vBSSO-lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,796 ▲21416.56 ▲0.9210.87 ▲1.8248.10 ▼1.36
Dashboard /wp-admin2,941 ▲915.93 ▲0.06133.24 ▼1.39108.90 ▲8.84
Posts /wp-admin/edit.php2,719 ▲132.69 ▲0.0065.54 ▼2.4394.18 ▼0.08
Add New Post /wp-admin/post-new.php1,861 ▲21019.17 ▲0.73380.38 ▲24.56105.62 ▼3.18
Media Library /wp-admin/upload.php1,788 ▲165.02 ▼0.05144.98 ▼10.03112.43 ▼3.77
vBSSO /wp-admin/options-general.php?page=vbsso_options1,0982.2257.0538.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_vbsso_login_form

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 17× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Foolz\\Package\\Loader' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/src/Loader.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/tests/classes/PluginTest.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/tests/classes/EventTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/tests/classes/ResultTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-package-fork/tests/classes/LoaderTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Foolz\\Package\\AssetManager' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/src/AssetManager.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/tests/classes/LoaderTest.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/tests/classes/VoidTest.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/tests/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/tests/bootstrap.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'Foolz\\Plugin\\Event' not found in wp-content/plugins/vbsso-lite/vendor/com.extremeidea.vbsso/foolz-plugin-fork/tests/mock/foolz/fake/bootstrap.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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: login, registration, single sign-on, user management, bridge...

vbsso-lite/vbsso.php 92% from 13 tests

The entry point to "vBSSO-lite" version 1.4.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vbsso-lite.php" instead of "vbsso.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
Good job! No executable or dangerous file extensions detected4,348 lines of code in 78 files:
LanguageFilesBlank linesComment linesLines of code
PHP477891,4563,128
Markdown53160474
PO File3142149384
JSON1860288
CSS271544
XML22016
JavaScript11014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.34
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes28
▷ Abstract classes00.00%
▷ Concrete classes28100.00%
▷ Final classes00.00%
Methods180
▷ Static methods2212.22%
▷ Public methods17295.56%
▷ Protected methods31.67%
▷ Private methods52.78%
Functions102
▷ Named functions8179.41%
▷ Anonymous functions2120.59%
Constants201
▷ Global constants201100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/arrow_down.png0.16KB0.16KB0.00%
assets/images/arrow_up.png0.14KB0.16KB0.00%