83% nextend-blv-sociallogin

Code Review | BLV SocialLogin Nextend

WordPress plugin BLV SocialLogin Nextend scored83%from 54 tests.

About plugin

  • Plugin page: nextend-blv-socia...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.2
  • WordPress version: 6.3.1
  • First release: Jan 25, 2018
  • Latest release: Jan 25, 2018
  • Number of updates: 10
  • Update frequency: N/A
  • Top authors: blvtomoya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /831 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: ▼3.22ms] Passed 4 tests

Server-side resources used by BLV SocialLogin Nextend
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.56 ▲1.93
Dashboard /wp-admin3.32 ▲0.0147.89 ▼5.08
Posts /wp-admin/edit.php3.37 ▲0.0151.72 ▲2.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.65 ▼10.94
Media Library /wp-admin/upload.php3.24 ▲0.0140.53 ▲1.22
BLV SocialLogin Nextend /wp-admin/options-general.php?page=blvnsl3.2135.10

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for BLV SocialLogin Nextend
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.27 ▼0.101.64 ▼0.4543.61 ▼0.46
Dashboard /wp-admin2,202 ▲255.66 ▼0.0393.29 ▲1.9142.54 ▼1.30
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0139.34 ▲3.6435.69 ▼2.58
Add New Post /wp-admin/post-new.php1,548 ▲2223.32 ▲5.84708.28 ▼12.4563.73 ▼5.74
Media Library /wp-admin/upload.php1,401 ▲14.17 ▼0.0799.99 ▼5.3444.57 ▼3.22
BLV SocialLogin Nextend /wp-admin/options-general.php?page=blvnsl1,0351.6823.4933.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/nextend-blv-sociallogin/blv-sociallogin-nextend.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function blvnsl_facebook_judgment() in wp-content/plugins/nextend-blv-sociallogin/classes/output.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: You can take inspiration from this readme.txt

nextend-blv-sociallogin/blv-sociallogin-nextend.php 85% from 13 tests

"BLV SocialLogin Nextend" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nextend-blv-sociallogin.php" instead of "blv-sociallogin-nextend.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin621 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP53249451
PO File1314699
Sass14170
CSS1001
JavaScript1050

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
PNG images were not found in this plugin