84% wp-vbulletin-sso

Code Review | WP vBulletin SSO

WordPress plugin WP vBulletin SSO scored84%from 54 tests.

About plugin

  • Plugin page: wp-vbulletin-sso
  • Plugin version: 1.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 6.3.1
  • First release: Dec 14, 2018
  • Latest release: Nov 30, 2020
  • Number of updates: 16
  • Update frequency: every 44.9 days
  • Top authors: extremeidea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /882 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.56ms] Passed 4 tests

A check of server-side resources used by WP vBulletin SSO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0347.21 ▲0.17
Dashboard /wp-admin3.32 ▲0.0146.25 ▼2.20
Posts /wp-admin/edit.php3.37 ▲0.0148.05 ▼1.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.58 ▼15.01
Media Library /wp-admin/upload.php3.24 ▲0.0134.85 ▲4.31
WP vBulletin SSO /wp-admin/options-general.php?page=wvsso_options3.2733.90

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 136 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WP vBulletin SSO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.71 ▼0.664.01 ▲1.7639.92 ▼7.85
Dashboard /wp-admin2,207 ▲165.83 ▲0.90102.47 ▼1.0937.46 ▼3.15
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0342.21 ▲1.3136.07 ▼0.61
Add New Post /wp-admin/post-new.php1,535 ▼723.37 ▲5.31685.43 ▲37.2553.90 ▼14.44
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0991.06 ▼10.6540.12 ▼3.84
WP vBulletin SSO /wp-admin/options-general.php?page=wvsso_options9622.0723.7423.68

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 fix the following items
  • 75× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Handler/PHPConsoleHandler.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Handler/NewRelicHandler.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Handler/SamplingHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Handler/ZendMonitorHandler.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Formatter/LineFormatter.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\MailHandler' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Handler/NativeMailerHandler.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\BufferHandler' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Handler/DeduplicationHandler.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Handler/MongoDBHandler.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Monolog\\Formatter\ormalizerFormatter' not found in wp-content/plugins/wp-vbulletin-sso/vendor/monolog/monolog/src/Monolog/Formatter/HtmlFormatter.php:22

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention: You can take inspiration from this readme.txt

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

The main PHP script in "WP vBulletin SSO" version 1.3.5 is automatically included on every request by WordPress
95 characters long description:
The WP vBulletin SSO allows you to synchronize the WordPress authentication with the vBulletin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin8,637 lines of code in 130 files:
LanguageFilesBlank linesComment linesLines of code
PHP1181,8904,7537,920
JSON500304
Markdown31080163
XML150136
JavaScript212265
CSS17049

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.69
▷ Minimum class complexity1.00
▷ Maximum class complexity45.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces13
Interfaces5
Traits2
Classes99
▷ Abstract classes77.07%
▷ Concrete classes9292.93%
▷ Final classes00.00%
Methods589
▷ Static methods325.43%
▷ Public methods39567.06%
▷ Protected methods14023.77%
▷ Private methods549.17%
Functions86
▷ Named functions6373.26%
▷ Anonymous functions2326.74%
Constants85
▷ Global constants3338.82%
▷ Class constants5261.18%
▷ Public constants52100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin