84% quick-login

Code Review | Quick Social Login

WordPress plugin Quick Social Login scored84%from 54 tests.

About plugin

  • Plugin page: quick-login
  • Plugin version: 1.4.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Apr 18, 2018
  • Latest release: Apr 30, 2022
  • Number of updates: 36
  • Update frequency: every 40.9 days
  • Top authors: andrei.igna (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

70+ active /2,718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.68MB] [CPU: ▲4.13ms] Passed 4 tests

This is a short check of server-side resources used by Quick Social Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6845.80 ▲1.05
Dashboard /wp-admin3.98 ▲0.6866.36 ▲12.41
Posts /wp-admin/edit.php4.03 ▲0.6858.95 ▲4.91
Add New Post /wp-admin/post-new.php6.58 ▲0.70109.57 ▲2.29
Media Library /wp-admin/upload.php3.91 ▲0.6844.93 ▲8.27
Quick Social Login /wp-admin/options-general.php?page=quick-login-options3.8138.34

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 423 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Quick Social Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲4214.32 ▼0.061.67 ▼0.3841.45 ▼4.26
Dashboard /wp-admin2,221 ▲475.60 ▼0.0383.24 ▼16.5942.17 ▼5.47
Posts /wp-admin/edit.php2,130 ▲272.06 ▲0.0642.83 ▲1.3137.50 ▲2.41
Add New Post /wp-admin/post-new.php1,557 ▲1223.33 ▲0.12695.36 ▲30.0965.16 ▲3.95
Media Library /wp-admin/upload.php1,429 ▲354.25 ▲0.01100.54 ▼6.7944.55 ▼0.91
Quick Social Login /wp-admin/options-general.php?page=quick-login-options1,4111.9029.1573.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 220× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/quick-login/vendor/guzzlehttp/promises/src/FulfilledPromise.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-login/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'League\\OAuth1\\Client\\Server\\Server' not found in wp-content/plugins/quick-login/vendor/league/oauth1-client/src/Client/Server/Twitter.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-login/vendor/composer/installers/src/Composer/Installers/KnownInstaller.php:4
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/quick-login/vendor/league/oauth2-google/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-login/vendor/league/oauth2-google/examples/provider.php on line 3
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/quick-login/vendor/guzzlehttp/guzzle/src/Pool.php:20
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/quick-login/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'League\\OAuth2\\Client\\Provider\\AbstractProvider' not found in wp-content/plugins/quick-login/vendor/league/oauth2-client/src/Provider/GenericProvider.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-login/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'League\\OAuth2\\Client\\Provider\\AbstractProvider' not found in wp-content/plugins/quick-login/vendor/league/oauth2-linkedin/src/Provider/LinkedIn.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
Attributes that require attention:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

quick-login/quick-login.php Passed 13 tests

This is the main PHP file of "Quick Social Login" version 1.4.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
127 characters long description:
Enable secure login & registration with social accounts! Supports Twitter, Facebook, Google, WordPress.com, LinkedIn and Slack.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected42,579 lines of code in 393 files:
LanguageFilesBlank linesComment linesLines of code
PHP3234,0229,40835,001
Markdown261,66804,485
JSON21102,183
CSS2844427
YAML9473279
XML640143
JavaScript215437
Dockerfile18010
make1409
Bourne Shell2305

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity8.10
▷ Minimum class complexity1.00
▷ Maximum class complexity179.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
Namespaces31
Interfaces23
Traits9
Classes252
▷ Abstract classes72.78%
▷ Concrete classes24597.22%
▷ Final classes2510.20%
Methods1,350
▷ Static methods15711.63%
▷ Public methods1,03776.81%
▷ Protected methods16011.85%
▷ Private methods15311.33%
Functions199
▷ Named functions7638.19%
▷ Anonymous functions12361.81%
Constants173
▷ Global constants4224.28%
▷ Class constants13175.72%
▷ Public constants131100.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