84% linkedin-master

Code Review | TechGasp Link Master

WordPress plugin TechGasp Link Master scored 84% from 54 tests.

About plugin

  • Plugin page: linkedin-master
  • Plugin version: 5.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 5.8.1
  • First release: May 27, 2013
  • Latest release: Mar 11, 2021
  • Number of updates: 66
  • Update frequency: every 43.1 days
  • Top authors: TechGasp (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

800+ active / 38,100 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼138.48ms] Passed 4 tests

A check of server-side resources used by TechGasp Link Master
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1335.27 ▲16.13
Dashboard /wp-admin3.09 ▲0.0344.83 ▲5.64
Posts /wp-admin/edit.php3.14 ▲0.0343.41 ▼0.30
Add New Post /wp-admin/post-new.php5.44 ▲0.0189.52 ▼560.68
Media Library /wp-admin/upload.php3.03 ▲0.0332.12 ▲1.44
Link Master /wp-admin/admin.php?page=linkedin-master3.0326.08
Settings /wp-admin/admin.php?page=linkedin-master-admin-settings-wide3.0640.58
Add-ons /wp-admin/admin.php?page=linkedin-master-admin-addons3.0728.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 4 new options
New WordPress options
linkedin_master_system_wide
widget_linkedin_master_widget_profile_member
linkedin_master_system_wide_language
widget_linkedin_master_widget_buttons

Browser metrics Passed 4 tests

TechGasp Link Master: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲12115.82 ▲0.289.32 ▼0.4647.73 ▲2.15
Dashboard /wp-admin3,001 ▲705.95 ▼0.15124.99 ▼29.05141.46 ▲28.85
Posts /wp-admin/edit.php2,781 ▲422.58 ▼0.1163.65 ▲1.1094.46 ▲9.16
Add New Post /wp-admin/post-new.php2,082 ▲46719.45 ▼2.20372.74 ▲90.69108.47 ▲8.35
Media Library /wp-admin/upload.php1,783 ▼275.01 ▼0.02127.78 ▼32.96142.77 ▲23.92
Link Master /wp-admin/admin.php?page=linkedin-master1,4104.1699.2679.84
Settings /wp-admin/admin.php?page=linkedin-master-admin-settings-wide1,3082.0653.6382.85
Add-ons /wp-admin/admin.php?page=linkedin-master-admin-addons1,4252.1054.3976.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 4 options in the database
    • widget_linkedin_master_widget_buttons
    • linkedin_master_system_wide_language
    • widget_linkedin_master_widget_profile_member
    • linkedin_master_system_wide

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkedin-master/includes/linkedin-master-widget-buttons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/linkedin-master/includes/linkedin-master-admin.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/linkedin-master/includes/linkedin-master-admin-addons.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/linkedin-master/includes/linkedin-master-admin-table-news.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/linkedin-master/linkedin-master.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/linkedin-master/includes/linkedin-master-admin-table-header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkedin-master/includes/linkedin-master-widget-profile-member.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkedin-master/includes/linkedin-master-settings-wide.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/linkedin-master/includes/linkedin-master-admin-settings-wide.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_path() in wp-content/plugins/linkedin-master/includes/linkedin-master-admin-settings-wide-table.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

"TechGasp Link Master" version 5.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)

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
Good job! No executable or dangerous file extensions detected763 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP144593763

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity5.38
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods15
▷ Static methods213.33%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
9 PNG files occupy 0.28MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/techgasp-hr.png0.94KB0.13KB▼ 86.60%
images/techgasp-admin-addons-support.png15.84KB14.85KB▼ 6.26%
images/techgasp-check-no.png21.14KB7.14KB▼ 66.23%
images/techgasp-spammaster-logo.png174.42KB66.22KB▼ 62.04%
images/techgasp-minilogo-16.png1.86KB0.92KB▼ 50.87%