79% heateor-login

Code Review | Heateor Login - Social Login Plugin

WordPress plugin Heateor Login - Social Login Plugin scored79%from 54 tests.

About plugin

  • Plugin page: heateor-login
  • Plugin version: 1.1.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5.0-6.3
  • WordPress version: 6.3.1
  • First release: Sep 28, 2019
  • Latest release: Aug 11, 2023
  • Number of updates: 48
  • Update frequency: every 29.5 days
  • Top authors: Heateor (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /4,180 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
Install script ran successfully

Server metrics [RAM: ▲0.22MB] [CPU: ▼4.41ms] Passed 4 tests

Analyzing server-side resources used by Heateor Login - Social Login Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2243.84 ▲1.00
Dashboard /wp-admin3.52 ▲0.2249.76 ▼4.77
Posts /wp-admin/edit.php3.64 ▲0.2849.08 ▼2.41
Add New Post /wp-admin/post-new.php6.10 ▲0.2188.74 ▼11.47
Media Library /wp-admin/upload.php3.45 ▲0.2139.82 ▲2.76

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
heateor_fbl
db_upgraded
widget_recent-posts
heateor_fbl_version
widget_recent-comments
widget_theysaidso_widget
widget_heateorfacebooklogin
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Heateor Login - Social Login Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13914.27 ▼0.131.99 ▲0.3431.12 ▼8.83
Dashboard /wp-admin2,213 ▲365.60 ▼0.0682.09 ▼6.3274.45 ▲31.91
Posts /wp-admin/edit.php2,115 ▲151.99 ▲0.0035.14 ▼2.1133.75 ▼0.00
Add New Post /wp-admin/post-new.php1,553 ▲2723.08 ▲0.13662.92 ▼36.3290.31 ▲35.19
Media Library /wp-admin/upload.php1,418 ▲244.23 ▲0.0899.31 ▼4.7771.62 ▲28.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • can_compress_scripts
    • theysaidso_admin_options
    • heateor_fbl
    • widget_theysaidso_widget
    • widget_heateorfacebooklogin
    • heateor_fbl_version
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 13× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/heateor-login/languages/index.php
    • > /wp-content/plugins/heateor-login/images/index.php
    • > /wp-content/plugins/heateor-login/index.php
    • > /wp-content/plugins/heateor-login/heateor-login.php
    • > /wp-content/plugins/heateor-login/js/index.php
    • > /wp-content/plugins/heateor-login/js/admin/index.php
    • > /wp-content/plugins/heateor-login/admin/index.php
    • > /wp-content/plugins/heateor-login/images/login/index.php
    • > /wp-content/plugins/heateor-login/css/admin/index.php
    • > /wp-content/plugins/heateor-login/images/snaps/index.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/heateor-login/widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/heateor-login/admin/options-page.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/heateor-login/shortcode.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/heateor-login/admin/help.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: social analytics, social login, single sign-on, facebook login, social plugin...

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

The main PHP script in "Heateor Login - Social Login Plugin" version 1.1.9 is automatically included on every request by WordPress
80 characters long description:
Allow your website visitors to login to your website via their Facebook accounts

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,611 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP81841631,596
XML10011
CSS2002
JavaScript2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions3897.44%
▷ Anonymous functions12.56%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.01MB 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/star.png0.65KB0.72KB0.00%
images/transparent_bg.png0.91KB0.09KB▼ 89.70%
images/login/login.png5.91KB2.95KB▼ 50.04%
images/close.png1.45KB1.66KB0.00%