77% socialall-social-login

Code Review | SocialAll - Social Login

WordPress plugin SocialAll - Social Login scored77%from 54 tests.

About plugin

  • Plugin page: socialall-social-...
  • Plugin version: 2.5
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Aug 1, 2020
  • Number of updates: 37
  • Update frequency: every 47.2 days
  • Top authors: sandklock (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /7,200 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.09ms] Passed 4 tests

This is a short check of server-side resources used by SocialAll - Social Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.62 ▼6.03
Dashboard /wp-admin3.37 ▲0.0749.14 ▼2.57
Posts /wp-admin/edit.php3.49 ▲0.1347.16 ▲0.75
Add New Post /wp-admin/post-new.php5.95 ▲0.0787.12 ▼4.52
Media Library /wp-admin/upload.php3.29 ▲0.0742.23 ▲5.79

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
sk_soclall_login_api_networks_settings
sk_soclall_login_settings
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by SocialAll - Social Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.56 ▼0.821.82 ▼0.2143.55 ▲1.67
Dashboard /wp-admin2,213 ▲255.84 ▲0.9698.41 ▼19.6771.14 ▲26.16
Posts /wp-admin/edit.php2,108 ▲162.03 ▼0.0336.13 ▲3.1533.11 ▼0.40
Add New Post /wp-admin/post-new.php1,684 ▲17022.39 ▲4.77661.77 ▼16.3953.15 ▼4.15
Media Library /wp-admin/upload.php1,401 ▲134.22 ▼0.04101.08 ▼6.2947.78 ▲1.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • can_compress_scripts
    • sk_soclall_login_api_networks_settings
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • sk_soclall_login_settings
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/socialall-social-login/admin/how-to-get-app-id.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/socialall-social-login/social-login/bottom-login-form.php on line 15
    • > PHP Notice
      Undefined variable: networks in wp-content/plugins/socialall-social-login/social-login/bottom-login-form.php on line 15
    • > PHP Notice
      Undefined variable: theme_applied in wp-content/plugins/socialall-social-login/social-login/bottom-login-form.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/socialall-social-login/admin/shortcode-guide.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/socialall-social-login/social-login/bottom-login-form.php:30
    • > PHP Notice
      Undefined variable: theme_applied in wp-content/plugins/socialall-social-login/social-login/bottom-login-form.php on line 7
    • > PHP Warning
      Use of undefined constant SK_SOCLALL_LOGIN_SHORTCODE - assumed 'SK_SOCLALL_LOGIN_SHORTCODE' (this will throw an Error in a future version of PHP) in wp-content/plugins/socialall-social-login/admin/shortcode-guide.php on line 1
    • > PHP Notice
      Undefined variable: theme_applied in wp-content/plugins/socialall-social-login/social-login/bottom-login-form.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: social network login, soclall, social connect, socialall, social...

socialall-social-login/sk-soclall-login.php 77% from 13 tests

The main PHP script in "SocialAll - Social Login" version 2.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("socialall-social-login.php" instead of "sk-soclall-login.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected3,438 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
CSS4292171,804
PHP18210211,332
JavaScript24011302

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity27.00
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods46
▷ Static methods24.35%
▷ Public methods4495.65%
▷ Protected methods00.00%
▷ Private methods24.35%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants31
▷ Global constants929.03%
▷ Class constants2270.97%
▷ Public constants22100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.74MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/soclall-icon.png0.46KB0.35KB▼ 24.68%
images/white-icons.png150.02KB80.14KB▼ 46.58%
images/icons@2x.png40.50KB22.37KB▼ 44.76%
images/black-icons.png36.49KB10.30KB▼ 71.78%
images/soclall-logo.png1.28KB0.87KB▼ 32.29%