10% accesspress-social-login-lite

Code Review | AccessPress Social Login Lite - Social Login WordPress Plugin

WordPress plugin AccessPress Social Login Lite - Social Login WordPress Plugin scored 10% from 54 tests.

About plugin

  • Plugin page: accesspress-socia...
  • Plugin version: 3.4.8
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.9.2
  • First release: Jun 19, 2015
  • Latest release: Nov 30, 2021
  • Number of updates: 94
  • Update frequency: every 25.1 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

10,000+ active / 479,917 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/accesspress-social-login-lite/accesspress-social-login-lite.php+164
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.23MB] [CPU: ▼300.78ms] Passed 4 tests

This is a short check of server-side resources used by AccessPress Social Login Lite - Social Login WordPress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.83 ▲0.3257.59 ▼1.10
Dashboard /wp-admin3.67 ▲0.2636.90 ▼3.11
Posts /wp-admin/edit.php3.89 ▲0.2544.85 ▼1.29
Add New Post /wp-admin/post-new.php7.14 ▲0.1698.93 ▼1,192.74
Media Library /wp-admin/upload.php3.55 ▲0.2529.06 ▼5.97

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 263 new files
Database: 1 new table, 2 new options
New tables
wp_apsl_users_social_profile_details
New WordPress options
widget_apsl_widget
apsl-lite-settings

Browser metrics Passed 4 tests

An overview of browser requirements for AccessPress Social Login Lite - Social Login WordPress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,952 ▲20816.37 ▲0.739.01 ▲0.172.90 ▲0.37
Dashboard /wp-admin2,913 ▲526.22 ▲0.06119.04 ▼16.69173.82 ▲11.99
Posts /wp-admin/edit.php2,694 ▲93.14 ▼0.1065.99 ▲0.98131.25 ▼11.06
Add New Post /wp-admin/post-new.php1,682 ▼1619.14 ▼2.47388.33 ▼41.05195.77 ▲35.55
Media Library /wp-admin/upload.php1,714 ▲165.66 ▲0.13124.79 ▼24.29193.97 ▼1.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_apsl_users_social_profile_details
  • Zombie WordPress options detected upon uninstall: 2 options
    • apsl-lite-settings
    • widget_apsl_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
  • 10× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/accesspress-social-login-lite/inc/backend/save-settings.php
    • > /wp-content/plugins/accesspress-social-login-lite/inc/backend/about.php
    • > /wp-content/plugins/accesspress-social-login-lite/inc/backend/how-to-use.php
    • > /wp-content/plugins/accesspress-social-login-lite/inc/frontend/login_check.php
    • > /wp-content/plugins/accesspress-social-login-lite/accesspress-social-login-lite.php
    • > /wp-content/plugins/accesspress-social-login-lite/inc/backend/widget.php
    • > /wp-content/plugins/accesspress-social-login-lite/inc/backend/main-page.php
    • > /wp-content/plugins/accesspress-social-login-lite/inc/frontend/login_integration.php
    • > /wp-content/plugins/accesspress-social-login-lite/inc/frontend/shortcode.php
    • > /wp-content/plugins/accesspress-social-login-lite/inc/backend/activation.php
  • 169× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      require_once(APSL_PLUGIN_DIRgoogle/Client.php): failed to open stream: No such file or directory in wp-content/plugins/accesspress-social-login-lite/google/IO/Abstract.php on line 22
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/accesspress-social-login-lite/facebook/facebook/GraphNodes/GraphNode.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/accesspress-social-login-lite/facebook/GraphNodes/GraphEvent.php:31
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/accesspress-social-login-lite/facebook/GraphNodes/GraphEdge.php:35
    • > PHP Warning
      Use of undefined constant APSL_PLUGIN_DIR - assumed 'APSL_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/accesspress-social-login-lite/google/Http/CacheParser.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/accesspress-social-login-lite/facebook/facebook/GraphNodes/GraphObject.php:34
    • > PHP Warning
      Use of undefined constant APSL_PLUGIN_DIR - assumed 'APSL_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/accesspress-social-login-lite/google/Cache/File.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/accesspress-social-login-lite/facebook/GraphNodes/GraphLocation.php:31
    • > PHP Warning
      require_once(APSL_PLUGIN_DIRgoogle/Auth/AssertionCredentials.php): failed to open stream: No such file or directory in wp-content/plugins/accesspress-social-login-lite/google/Client.php on line 18
    • > PHP Fatal error
      Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/accesspress-social-login-lite/facebook/facebook/GraphNodes/GraphPicture.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

accesspress-social-login-lite/accesspress-social-login-lite.php Passed 13 tests

The main PHP file in "AccessPress Social Login Lite - Social Login WordPress Plugin" ver. 3.4.8 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
A plugin to add various social logins to a site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected37,297 lines of code in 142 files:
LanguageFilesBlank linesComment linesLines of code
SVG60019,104
PHP1292,6208,38513,977
CSS51,688334,172
JavaScript27444

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.44
▷ Minimum class complexity1.00
▷ Maximum class complexity134.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces11
Interfaces10
Traits2
Classes243
▷ Abstract classes93.70%
▷ Concrete classes23496.30%
▷ Final classes00.00%
Methods1,993
▷ Static methods603.01%
▷ Public methods1,85693.13%
▷ Protected methods653.26%
▷ Private methods723.61%
Functions10
▷ Named functions440.00%
▷ Anonymous functions660.00%
Constants92
▷ Global constants88.70%
▷ Class constants8491.30%
▷ Public constants84100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 1.53MB with 1.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/customize.png24.05KB8.41KB▼ 65.05%
images/buffer-white.png1.49KB0.77KB▼ 48.39%
images/top-line.png1.04KB0.10KB▼ 90.47%
images/buffer.png1.23KB0.69KB▼ 44.12%
images/accesspress-social-login-gallery-upgrade to pro-feature.png928.78KB21.00KB▼ 97.74%