93% userswp-social-login

Code Review | UsersWP - Social Login

WordPress plugin UsersWP - Social Login scored 93% from 54 tests.

About plugin

  • Plugin page: userswp-social-login
  • Plugin version: 1.3.19
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 5.8.1
  • First release: Jan 31, 2020
  • Latest release: Jan 28, 2022
  • Number of updates: 19
  • Update frequency: every 38.3 days
  • Top authors: stiofansisland (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

3,000+ active / 56,192 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼157.02ms] Passed 4 tests

An overview of server-side resources used by UsersWP - Social Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0026.12 ▲1.30
Dashboard /wp-admin3.06 ▼0.0035.84 ▼3.95
Posts /wp-admin/edit.php3.11 ▲0.0033.91 ▼1.67
Add New Post /wp-admin/post-new.php5.43 ▼0.0275.03 ▼614.47
Media Library /wp-admin/upload.php3.01 ▲0.0022.71 ▼7.98

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 125 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for UsersWP - Social Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲2515.80 ▲0.256.96 ▲1.1777.64 ▼0.69
Dashboard /wp-admin2,930 ▲376.11 ▼0.11124.14 ▼9.11180.21 ▲9.39
Posts /wp-admin/edit.php2,743 ▲33.23 ▼0.0165.93 ▲1.51137.40 ▲1.53
Add New Post /wp-admin/post-new.php3,735 ▼7218.39 ▼0.46428.69 ▼13.67158.41 ▼9.05
Media Library /wp-admin/upload.php1,752 ▼35.53 ▲0.01143.68 ▼1.83184.54 ▼2.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 87× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Provider\\Blizzard' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/BlizzardEU.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/LinkedIn.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth2' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/Blizzard.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bloginfo() in wp-content/plugins/userswp-social-login/templates/render_notice_page.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OpenID' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/Steam.php:35
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OAuth1' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/Twitter.php:41
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\AbstractAdapter' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Adapter/OAuth2.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Exception\\RuntimeException' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Exception/InvalidArgumentException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Exception\\RuntimeException' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Exception/BadMethodCallException.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Hybridauth\\Adapter\\OpenID' not found in wp-content/plugins/userswp-social-login/vendor/hybridauth/Provider/OpenID.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

userswp-social-login/uwp-social.php 85% from 13 tests

The main PHP script in "UsersWP - Social Login" version 1.3.19 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("userswp-social-login.php" instead of "uwp-social.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected9,305 lines of code in 116 files:
LanguageFilesBlank linesComment linesLines of code
PO File1144185380

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity8.69
▷ Minimum class complexity1.00
▷ Maximum class complexity189.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
▷ Abstract classes55.32%
▷ Concrete classes8994.68%
▷ Final classes55.62%
▷ Static methods174.28%
▷ Public methods27268.51%
▷ Protected methods11629.22%
▷ Private methods92.27%
▷ Named functions3992.86%
▷ Anonymous functions37.14%
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/btn_google_signin_dark_normal_web.png3.89KB2.09KB▼ 46.20%