67% linkedin-lite

Code Review | LinkedIn Lite

WordPress plugin LinkedIn Lite scored67%from 54 tests.

About plugin

  • Plugin page: linkedin-lite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 28, 2014
  • Latest release: Aug 20, 2015
  • Number of updates: 14
  • Update frequency: every 69.3 days
  • Top authors: alexfurr (85.71%)simon.ward (21.43%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by LinkedIn Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1739.02 ▼0.09
Dashboard /wp-admin3.50 ▲0.1547.29 ▼11.46
Posts /wp-admin/edit.php3.61 ▲0.2648.00 ▲0.92
Add New Post /wp-admin/post-new.php6.08 ▲0.1981.98 ▼17.58
Media Library /wp-admin/upload.php3.42 ▲0.1935.16 ▼0.50
Help /wp-admin/admin.php?page=linkedin-lite-help3.3631.08
Settings /wp-admin/admin.php?page=linkedin-lite3.3734.81

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_lil-widget-profile
widget_theysaidso_widget
liLITE_settings

Browser metrics Passed 4 tests

This is an overview of browser requirements for LinkedIn Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5714.75 ▲0.131.69 ▼0.5540.65 ▼2.56
Dashboard /wp-admin2,232 ▲415.86 ▲0.96100.05 ▼7.8782.83 ▲41.82
Posts /wp-admin/edit.php2,112 ▲232.00 ▲0.0137.64 ▲2.9136.02 ▲1.01
Add New Post /wp-admin/post-new.php1,538 ▲1923.12 ▼0.12718.91 ▲51.7252.17 ▲0.30
Media Library /wp-admin/upload.php1,414 ▲234.22 ▲0.05110.93 ▲6.4243.67 ▼1.83
Help /wp-admin/admin.php?page=linkedin-lite-help8842.1524.2442.00
Settings /wp-admin/admin.php?page=linkedin-lite1,3401.7425.6442.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • liLITE_settings
    • theysaidso_admin_options
    • widget_lil-widget-profile
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=linkedin-lite-help
    • > Deprecated in wp-content/plugins/linkedin-lite/setup.php+140
    Non-static method LILdraw::helpInfo() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=linkedin-lite
    • > Deprecated in wp-content/plugins/linkedin-lite/admin.php+165
    Non-static method LILdraw::adminProfileTab() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=linkedin-lite
    • > Deprecated in wp-content/plugins/linkedin-lite/class-draw.php+8
    Non-static method liLITE_core::getAPIFieldSet() should not be called statically
  • 40 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=linkedin-lite
    • > Deprecated in wp-content/plugins/linkedin-lite/class-draw.php+36
    Non-static method LILdraw::getProfileItem() should not be called statically

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/linkedin-lite/linkedin_receiver.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function network_site_url() in wp-content/plugins/linkedin-lite/setup.php:38
    • > PHP Fatal error
      Uncaught Error: Class 'liLITE_core' not found in wp-content/plugins/linkedin-lite/class-linkedin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function network_site_url() in wp-content/plugins/linkedin-lite/setup.php:38
    • > PHP Notice
      Undefined variable: stateHashOK in wp-content/plugins/linkedin-lite/linkedin_receiver.php on line 116

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=linkedin-lite
    • > Network (severe)
    wp-content/plugins/linkedin-lite/css/images/admin-grad-1.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: page, multisite, linkedin, widget

linkedin-lite/linkedin-lite.php Passed 13 tests

The primary PHP file in "LinkedIn Lite" version 1.0 is used by WordPress to initiate all plugin functionality
42 characters long description:
Display your LinkedIn profile on your blog

Code Analysis 97% from 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
There were no executable files found in this plugin1,215 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP92931451,069
CSS26716146

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 109)
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity52.00
▷ Minimum class complexity5.00
▷ Maximum class complexity136.00
Average method complexity8.03
▷ Minimum method complexity1.00
▷ Maximum method complexity109.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/tick.png0.66KB0.47KB▼ 29.71%
images/li_icon.png1.43KB0.54KB▼ 62.57%