83% wpconcierges-linkedin-insights

Code Review | WpConcierges LinkedIn Insights

WordPress plugin WpConcierges LinkedIn Insights scored83%from 54 tests.

About plugin

  • Plugin page: wpconcierges-link...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.6
  • WordPress version: 6.3.1
  • First release: Nov 7, 2019
  • Latest release: Dec 13, 2020
  • Number of updates: 22
  • Update frequency: every 18.3 days
  • Top authors: wpconcierges (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,889 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▼4.16ms] Passed 4 tests

This is a short check of server-side resources used by WpConcierges LinkedIn Insights
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.74 ▲7.58
Dashboard /wp-admin3.44 ▲0.0949.60 ▼5.24
Posts /wp-admin/edit.php3.55 ▲0.1943.68 ▼1.17
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.28 ▼17.80
Media Library /wp-admin/upload.php3.36 ▲0.1343.04 ▲10.04
WPConcierges Linkedin Insights /wp-admin/tools.php?page=lkinsight3.3332.57

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WpConcierges LinkedIn Insights
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲1114.24 ▼0.111.90 ▲0.1742.79 ▲4.14
Dashboard /wp-admin2,200 ▲235.50 ▼0.1286.18 ▼15.7540.12 ▼7.70
Posts /wp-admin/edit.php2,108 ▲112.02 ▲0.0336.03 ▲0.4133.96 ▲4.03
Add New Post /wp-admin/post-new.php1,533 ▲523.18 ▼0.22657.42 ▲6.4852.43 ▼0.25
Media Library /wp-admin/upload.php1,405 ▲24.21 ▲0.0496.03 ▼2.7940.63 ▼1.64
WPConcierges Linkedin Insights /wp-admin/tools.php?page=lkinsight8741.9921.7226.45

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wpconcierges-linkedin-insights/admin/partials/lkinsight-admin-page-settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpconcierges-linkedin-insights/admin/partials/lkinsight-admin-field-text.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wpconcierges-linkedin-insights/admin/partials/lkinsight-admin-field-textarea.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wpconcierges-linkedin-insights/admin/partials/lkinsight-admin-section-messages.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wpconcierges-linkedin-insights === )
Please take inspiration from this readme.txt

wpconcierges-linkedin-insights/lkinsight.php 77% from 13 tests

"WpConcierges LinkedIn Insights" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpconcierges-linkedin-insights.php" instead of "lkinsight.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("3.0.1" instead of "3.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin580 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP17315693574
JavaScript24546
CSS2080

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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 complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods50
▷ Static methods48.00%
▷ Public methods3978.00%
▷ Protected methods00.00%
▷ Private methods1122.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin