72% linkedin-login

Code Review | Ultimate LinkedIn Integration

WordPress plugin Ultimate LinkedIn Integration scored72%from 54 tests.

About plugin

  • Plugin page: linkedin-login
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.6
  • WordPress version: 6.3.1
  • First release: Aug 26, 2014
  • Latest release: Feb 22, 2019
  • Number of updates: 86
  • Update frequency: every 19.1 days
  • Top authors: arbet01 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

200+ active /19,791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼14.88ms] Passed 4 tests

An overview of server-side resources used by Ultimate LinkedIn Integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0727.33 ▼14.04
Dashboard /wp-admin3.14 ▼0.1632.93 ▼21.20
Posts /wp-admin/edit.php3.27 ▼0.0837.59 ▼9.77
Add New Post /wp-admin/post-new.php5.47 ▼0.4276.98 ▼14.52
Media Library /wp-admin/upload.php3.21 ▼0.0229.86 ▼5.15
Ultimate LinkedIn Integration /wp-admin/options-general.php?page=linkedin_login_settings3.1233.21

Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate LinkedIn Integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,784 ▲2314.23 ▼0.141.76 ▼0.1137.39 ▼5.88
Dashboard /wp-admin2,193 ▲135.59 ▼0.1080.45 ▼10.8438.72 ▼5.86
Posts /wp-admin/edit.php2,103 ▲62.04 ▲0.0141.49 ▲7.7636.32 ▲0.78
Add New Post /wp-admin/post-new.php1,543 ▲1223.08 ▼0.29603.48 ▼100.9648.28 ▼5.07
Media Library /wp-admin/upload.php1,406 ▲94.21 ▼0.0095.25 ▼12.9844.66 ▼1.72
Ultimate LinkedIn Integration /wp-admin/options-general.php?page=linkedin_login_settings9982.0222.2127.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=linkedin_login_settings
    • > Notice in wp-content/plugins/linkedin-login/includes/lib/class-pkli-mods.php+41
    Trying to access array offset on value of type bool

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/linkedin-login/linkedin-login.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=linkedin_login_settings
    • > Network (severe)
    wp-content/plugins/linkedin-login/includes/assets/css/admin.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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 need to be fixed:
  • Requires php: Version not formatted correctly
You can look at the official readme.txt

linkedin-login/linkedin-login.php 92% from 13 tests

The main PHP script in "Ultimate LinkedIn Integration" version 1.1.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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 detected804 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP6277302804

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity30.00
▷ Minimum class complexity1.00
▷ Maximum class complexity71.00
Average method complexity5.03
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods2877.78%
▷ Protected methods00.00%
▷ Private methods822.22%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants225.00%
▷ Class constants675.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/img/linkedin.png1.00KB0.92KB▼ 7.84%
includes/assets/img/linkedin-button.png8.18KB2.91KB▼ 64.36%