78% social-login-bws

Code Review | Social Login by BestWebSoft

WordPress plugin Social Login by BestWebSoft scored78%from 54 tests.

About plugin

  • Plugin page: social-login-bws
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Jan 31, 2017
  • Latest release: Aug 15, 2023
  • Number of updates: 26
  • Update frequency: every 91.7 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /7,887 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.92MB] [CPU: ▲2.69ms] Passed 4 tests

An overview of server-side resources used by Social Login by BestWebSoft
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.46 ▲0.9949.19 ▲11.63
Dashboard /wp-admin4.27 ▲0.9265.89 ▲3.94
Posts /wp-admin/edit.php4.32 ▲0.9654.72 ▲3.41
Add New Post /wp-admin/post-new.php6.81 ▲0.9289.64 ▼8.23
Media Library /wp-admin/upload.php4.13 ▲0.9048.95 ▲11.68

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 227 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
bstwbsftwppdtplgns_options
scllgn_options
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Social Login by BestWebSoft
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲6213.29 ▼1.302.05 ▲0.2042.24 ▼3.73
Dashboard /wp-admin2,239 ▲564.92 ▼0.06106.93 ▼2.3737.58 ▼4.80
Posts /wp-admin/edit.php2,104 ▲122.07 ▲0.0235.25 ▼7.3734.23 ▼3.82
Add New Post /wp-admin/post-new.php1,541 ▲1323.18 ▲0.16670.69 ▼10.5859.26 ▼0.59
Media Library /wp-admin/upload.php1,424 ▲364.21 ▼0.02110.84 ▼4.9848.04 ▲0.54
BWS Panel /wp-admin/social-login.php?page=scllgn-bws-panel260.440.0912.43
Settings /wp-admin/social-login.php260.440.076.71

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 83× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/social-login-bws/includes/hybrid/Provider/ORCID.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/social-login-bws/includes/hybrid/Provider/Google.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/social-login-bws/includes/hybrid/Provider/GitHub.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/social-login-bws/includes/hybrid/Provider/WordPress.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Exception\\RuntimeException' not found in wp-content/plugins/social-login-bws/includes/hybrid/Exception/UnexpectedValueException.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/social-login-bws/includes/hybrid/Provider/StackExchange.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Exception\\RuntimeException' not found in wp-content/plugins/social-login-bws/includes/hybrid/Exception/BadMethodCallException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\AbstractAdapter' not found in wp-content/plugins/social-login-bws/includes/hybrid/Adapter/OAuth2.php:25
    • > PHP Fatal error
      Uncaught Error: Interface 'Hybridauth\\Logger\\LoggerInterface' not found in wp-content/plugins/social-login-bws/includes/hybrid/Logger/Logger.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/social-login-bws/includes/hybrid/Provider/Reddit.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/social-login.php?page=scllgn-bws-panel
    • > Network (severe)
    wp-admin/social-login.php?page=scllgn-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/social-login.php
    • > Network (severe)
    wp-admin/social-login.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Social Login buttons displaying on the login form.), #2 (Social Login short buttons displaying on the login form.), #3 (Social Login buttons displaying on the comment form.), #4 (Plugin Settings page.), #5 (Linking social accounts to existing WordPress account on the profile page.)
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt might help

social-login-bws/social-login-bws.php Passed 13 tests

The main PHP file in "Social Login by BestWebSoft" ver. 1.4.4 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
Add social media login, registration, and commenting to your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin26,150 lines of code in 146 files:
LanguageFilesBlank linesComment linesLines of code
PHP1072,5025,37711,408
PO File113,7045,5858,137
CSS111942775,900
JavaScript734113467
SVG400150
YAML211269
Markdown310018
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity10.90
▷ Minimum class complexity1.00
▷ Maximum class complexity225.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces11
Interfaces5
Traits1
Classes94
▷ Abstract classes55.32%
▷ Concrete classes8994.68%
▷ Final classes55.62%
Methods395
▷ Static methods143.54%
▷ Public methods26567.09%
▷ Protected methods11729.62%
▷ Private methods133.29%
Functions92
▷ Named functions8996.74%
▷ Anonymous functions33.26%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
66 PNG files occupy 3.18MB with 0.82MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png145.52KB48.83KB▼ 66.44%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-icons_cd0a0a_256x240.png4.57KB4.18KB▼ 8.43%
bws_menu/css/jquery-ui-styles/1.9.2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
bws_menu/css/jquery-ui-styles/1.11.4/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%