84% sso-vbulletin

Code Review | SSO vBulletin

WordPress plugin SSO vBulletin scored84%from 54 tests.

About plugin

  • Plugin page: sso-vbulletin
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 6.3.1
  • First release: Jun 7, 2017
  • Latest release: Nov 30, 2020
  • Number of updates: 34
  • Update frequency: every 37.4 days
  • Top authors: extremeidea (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,818 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼7.32ms] Passed 4 tests

An overview of server-side resources used by SSO vBulletin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2143.54 ▼0.22
Dashboard /wp-admin3.57 ▲0.2255.52 ▼11.13
Posts /wp-admin/edit.php3.62 ▲0.2649.28 ▼1.60
Add New Post /wp-admin/post-new.php6.09 ▲0.2091.75 ▼16.34
Media Library /wp-admin/upload.php3.43 ▲0.2042.06 ▲6.67
SSO vBulletin /wp-admin/options-general.php?page=wvsso_options3.4134.90

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for SSO vBulletin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.75 ▲0.351.84 ▼0.0943.88 ▼0.58
Dashboard /wp-admin2,202 ▲255.70 ▲0.0585.52 ▼10.2140.01 ▼6.82
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0336.84 ▼4.9233.24 ▼1.30
Add New Post /wp-admin/post-new.php1,548 ▲223.21 ▲0.02665.10 ▲1.8157.22 ▲3.59
Media Library /wp-admin/upload.php1,407 ▲44.22 ▼0.02107.48 ▼3.2449.44 ▲6.64
SSO vBulletin /wp-admin/options-general.php?page=wvsso_options9612.1623.3627.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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 50% 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
  • 74× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Processor\\MemoryProcessor' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Processor/MemoryPeakUsageProcessor.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Handler/MandrillHandler.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Monolog\\Handler\\HandlerInterface' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Handler/HandlerWrapper.php:33
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Logger.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Handler/FilterHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Handler/SlackWebhookHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Handler/ErrorLogHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Handler/BrowserConsoleHandler.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Handler/RavenHandler.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/sso-vbulletin/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 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: authentication, login, vbulletin, bridge, user management...

sso-vbulletin/sso-vbulletin.php Passed 13 tests

The principal PHP file in "SSO vBulletin" v. 1.2.0 is loaded by WordPress automatically on each request
92 characters long description:
The SSO vBulletin allows you to synchronize the WordPress authentication with the vBulletin.

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
Success! There were no dangerous files found in this plugin8,088 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
PHP1171,8414,5557,657
JSON500304
JavaScript212265
CSS17049
Markdown18013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces13
Interfaces5
Traits2
Classes98
▷ Abstract classes77.14%
▷ Concrete classes9192.86%
▷ Final classes00.00%
Methods581
▷ Static methods325.51%
▷ Public methods38766.61%
▷ Protected methods14024.10%
▷ Private methods549.29%
Functions80
▷ Named functions6075.00%
▷ Anonymous functions2025.00%
Constants85
▷ Global constants3338.82%
▷ Class constants5261.18%
▷ Public constants52100.00%

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
There are no PNG files in this plugin