99% social-login-lite-for-woocommerce

Code Review | Social Login Lite For WooCommerce

WordPress plugin Social Login Lite For WooCommerce scored 99% from 54 tests.

About plugin

  • Plugin page: social-login-lite...
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0+
  • WordPress version: 5.8.1
  • First release: Jul 21, 2015
  • Latest release: Nov 19, 2019
  • Number of updates: 126
  • Update frequency: every 12.6 days
  • Top authors: phoeniixx (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

1,000+ active / 42,237 total downloads

Benchmarks

Plugin footprint Passed 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: ▲0.09MB] [CPU: ▼145.41ms] Passed 4 tests

A check of server-side resources used by Social Login Lite For WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1343.93 ▲18.60
Dashboard /wp-admin3.12 ▲0.0750.81 ▼0.15
Posts /wp-admin/edit.php3.17 ▲0.0755.55 ▲6.21
Add New Post /wp-admin/post-new.php5.70 ▲0.2784.64 ▼586.27
Media Library /wp-admin/upload.php3.08 ▲0.0833.56 ▼1.44

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Social Login Lite For WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,683 ▲8716.02 ▲0.108.43 ▼0.5252.16 ▲2.93
Dashboard /wp-admin2,971 ▲405.90 ▼0.08157.82 ▲14.72190.22 ▲71.90
Posts /wp-admin/edit.php2,743 ▲42.68 ▼0.0168.48 ▼4.78106.08 ▲10.76
Add New Post /wp-admin/post-new.php1,503 ▼18018.52 ▼0.18364.16 ▼23.25108.88 ▲3.16
Media Library /wp-admin/upload.php1,811 ▲15.03 ▲0.01157.78 ▲9.96127.87 ▼0.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can look at the official readme.txt

social-login-lite-for-woocommerce/woocommerce_social_login.php 85% from 13 tests

The principal PHP file in "Social Login Lite For WooCommerce" v. 1.6.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: The principal plugin file should be the same as the plugin slug ("social-login-lite-for-woocommerce.php" instead of "woocommerce_social_login.php")

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin758 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP648921709
JavaScript216849

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/google-plus.png0.87KB0.63KB▼ 27.40%
images/facebook.png0.87KB0.71KB▼ 17.68%
images/insta.png10.04KB4.29KB▼ 57.27%
images/logo-wp.png1.20KB0.57KB▼ 52.72%