89% welovez-social-login

Code Review | WeLovez Social Login For WoWonder Php Social Script

WordPress plugin WeLovez Social Login For WoWonder Php Social Script scored 89% from 54 tests.

About plugin

  • Plugin page: welovez-social-login
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2019
  • Latest release: Jun 14, 2021
  • Number of updates: 53
  • Update frequency: every 13.3 days
  • Top authors: ahmerhassan110 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

20+ active / 1,717 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼10.33ms] Passed 4 tests

Server-side resources used by WeLovez Social Login For WoWonder Php Social Script
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.25 ▼2.81
Dashboard /wp-admin3.32 ▲0.0145.56 ▼3.07
Posts /wp-admin/edit.php3.37 ▲0.0148.70 ▼2.88
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.44 ▼32.56
Media Library /wp-admin/upload.php3.24 ▲0.0138.50 ▲3.14

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WeLovez Social Login For WoWonder Php Social Script
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.52 ▼1.091.71 ▲0.1040.27 ▼6.53
Dashboard /wp-admin2,221 ▲335.88 ▲0.98114.58 ▼0.3880.62 ▲34.16
Posts /wp-admin/edit.php2,101 ▲122.01 ▼0.0539.74 ▼2.5135.38 ▼2.67
Add New Post /wp-admin/post-new.php1,527 ▼123.35 ▲5.28699.40 ▲33.9352.02 ▲0.33
Media Library /wp-admin/upload.php1,394 ▲64.21 ▼0.02104.99 ▲3.7975.08 ▲31.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Requires php: Version format is invalid
The official readme.txt might help

welovez-social-login/welovez-login.php 85% from 13 tests

The entry point to "WeLovez Social Login For WoWonder Php Social Script" version 2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("welovez-social-login.php" instead of "welovez-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,911 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS212371,232
PHP454118488
JavaScript174191

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity21.00
▷ Minimum class complexity11.00
▷ Maximum class complexity31.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.16MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/button-wrapper.png2.32KB2.08KB▼ 10.67%
assets/images/welovez-icon.png1.00KB0.81KB▼ 19.53%
assets/images/app-setup.png4.50KB2.29KB▼ 49.01%
assets/images/app_keys.png13.15KB7.70KB▼ 41.43%
assets/images/share-setup.png3.01KB1.88KB▼ 37.69%