10% wp-linkpress-lite

Code Review | WP LinkPress Lite - LinkedIn comments for WordPress

WordPress plugin WP LinkPress Lite - LinkedIn comments for WordPress scored 10% from 54 tests.

About plugin

  • Plugin page: wp-linkpress-lite
  • Plugin version: 1.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 4, 2019
  • Latest release: Dec 17, 2022
  • Number of updates: 10
  • Update frequency: every 123.8 days
  • Top authors: Lucyproductionz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,066 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.16MB] [CPU: ▼4.45ms] Passed 4 tests

This is a short check of server-side resources used by WP LinkPress Lite - LinkedIn comments for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1346.02 ▲6.33
Dashboard /wp-admin3.47 ▲0.1647.27 ▼4.92
Posts /wp-admin/edit.php3.58 ▲0.2350.95 ▲2.55
Add New Post /wp-admin/post-new.php6.08 ▲0.1983.56 ▼17.19
Media Library /wp-admin/upload.php3.39 ▲0.1635.63 ▲1.75

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 9 new options
New tables
wp_wplinkpress_comments
New WordPress options
widget_theysaidso_widget
wplinkpress_lite_notice_update
can_compress_scripts
wplinkpress_lite_version
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
wplinkpress_page_id

Browser metrics Passed 4 tests

Checking browser requirements for WP LinkPress Lite - LinkedIn comments for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲20313.59 ▼0.698.26 ▲6.5131.80 ▼11.79
Dashboard /wp-admin2,231 ▲404.85 ▼0.03109.62 ▲4.0343.42 ▲2.65
Posts /wp-admin/edit.php2,114 ▲251.98 ▼0.0140.47 ▲4.8339.55 ▲5.28
Add New Post /wp-admin/post-new.php6,448 ▲4,90625.27 ▲7.23911.15 ▲310.3760.70 ▲6.91
Media Library /wp-admin/upload.php1,413 ▲254.19 ▼0.0398.81 ▲2.5647.19 ▲2.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_wplinkpress_comments
  • Zombie WordPress options were found after uninstall: 9 options
    • wplinkpress_page_id
    • db_upgraded
    • wplinkpress_lite_notice_update
    • widget_recent-posts
    • wplinkpress_lite_version
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 9× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: info_present in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-linkpress-lite/admin/templates/tabs/comments-moderate.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php:32
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php on line 24
    • > PHP Notice
      Undefined variable: authorizationUrl in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php on line 23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-linkpress-lite/admin/templates/wplinkpress-lite-admin-settings-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-linkpress-lite/admin/templates/tabs/authorize-linkedin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-linkpress-lite/wplinkpress-lite.php:13
    • > PHP Warning
      Use of undefined constant WPLINKPRESS_LITE_URL - assumed 'WPLINKPRESS_LITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: linkedin, social, comments

wp-linkpress-lite/wplinkpress-lite.php 85% from 13 tests

The entry point to "WP LinkPress Lite - LinkedIn comments for WordPress" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-linkpress-lite.php" instead of "wplinkpress-lite.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,230 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1114457862
CSS2358153
JavaScript2204137
PO File1242478

PHP code Passed 2 tests

A short review of 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.29
Average class complexity15.25
▷ Minimum class complexity5.00
▷ Maximum class complexity22.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods33
▷ Static methods39.09%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.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
No PNG images were found in this plugin