77% heateor-social-login

Code Review | Heateor Social Login WordPress

WordPress plugin Heateor Social Login WordPress scored77%from 54 tests.

About plugin

  • Plugin page: heateor-social-login
  • Plugin version: 1.1.30
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.4
  • WordPress version: 6.3.1
  • First release: Sep 21, 2020
  • Latest release: Nov 13, 2023
  • Number of updates: 74
  • Update frequency: every 15.6 days
  • Top authors: Heateor (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /17,298 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: ▲1.08MB] [CPU: ▲0.65ms] Passed 4 tests

An overview of server-side resources used by Heateor Social Login WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.61 ▲1.1446.87 ▼0.52
Dashboard /wp-admin4.43 ▲1.0854.54 ▼2.90
Posts /wp-admin/edit.php4.49 ▲1.1256.20 ▲11.59
Add New Post /wp-admin/post-new.php6.95 ▲1.0690.82 ▼5.55
Media Library /wp-admin/upload.php4.29 ▲1.0646.40 ▲11.57

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

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

Browser metrics Passed 4 tests

Heateor Social Login WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18113.49 ▼0.808.05 ▲5.8335.63 ▼14.18
Dashboard /wp-admin2,216 ▲395.57 ▼0.0895.47 ▲5.0483.06 ▲40.70
Posts /wp-admin/edit.php2,137 ▲401.98 ▼0.0939.69 ▲0.1338.56 ▲1.62
Add New Post /wp-admin/post-new.php1,569 ▲3521.15 ▼4.01736.87 ▲77.0660.69 ▼5.27
Media Library /wp-admin/upload.php1,439 ▲394.20 ▼0.0197.47 ▼6.1666.83 ▲23.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 13× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/heateor-social-login/admin/index.php
    • > /wp-content/plugins/heateor-social-login/images/snaps/index.php
    • > /wp-content/plugins/heateor-social-login/library/SteamLogin/index.php
    • > /wp-content/plugins/heateor-social-login/heateor-social-login.php
    • > /wp-content/plugins/heateor-social-login/includes/class-heateor-social-login-widgets.php
    • > /wp-content/plugins/heateor-social-login/images/index.php
    • > /wp-content/plugins/heateor-social-login/library/Line/index.php
    • > /wp-content/plugins/heateor-social-login/index.php
    • > /wp-content/plugins/heateor-social-login/library/Vkontakte/index.php
    • > /wp-content/plugins/heateor-social-login/images/login/index.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Abraham\\TwitterOAuth\\SignatureMethod' not found in wp-content/plugins/heateor-social-login/library/Twitter/src/HmacSha1.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Abraham\\TwitterOAuth\\Config' not found in wp-content/plugins/heateor-social-login/library/Twitter/src/TwitterOAuth.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (42 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots require images: #1 (**Social Login - WordPress login form**: Social Login button at WordPress login form), #2 (**Social Login - WordPress Comment form**: Social Login button at WordPress Comment form), #3 (**Social Login - WooCommerce login form**: Social Login button at WooCommerce login and register form), #4 (**Social Login - WooCommerce checkout page**: Social Login button at WooCommerce checkout page)
The official readme.txt might help

heateor-social-login/heateor-social-login.php 92% from 13 tests

Analyzing the main PHP file in "Heateor Social Login WordPress" version 1.1.30
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 299 characters long)

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected7,838 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
PHP278361,6417,678
JSON10055
JavaScript43048
YAML10022
Markdown13019
XML10013
CSS2003

PHP code 0% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,580)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 1,008)
Cyclomatic complexity
Average complexity per logical line of code0.82
Average class complexity97.20
▷ Minimum class complexity1.00
▷ Maximum class complexity1,580.00
Average method complexity10.92
▷ Minimum method complexity1.00
▷ Maximum method complexity1,008.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes19
▷ Abstract classes15.26%
▷ Concrete classes1894.74%
▷ Final classes00.00%
Methods199
▷ Static methods73.52%
▷ Public methods16884.42%
▷ Protected methods10.50%
▷ Private methods3015.08%
Functions6
▷ Named functions466.67%
▷ Anonymous functions233.33%
Constants12
▷ Global constants216.67%
▷ Class constants1083.33%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/snaps/sl_email_required.png24.20KB9.81KB▼ 59.46%
images/snaps/sl_email_popup_message.png16.60KB6.89KB▼ 58.50%
images/info.png0.77KB0.58KB▼ 25.13%
images/snaps/sl_emailreq_message.png23.67KB9.34KB▼ 60.54%
images/star.png0.65KB0.72KB0.00%