84% liveperson

Code Review | LivePerson LiveChat + Messaging

WordPress plugin LivePerson LiveChat + Messaging scored84%from 54 tests.

About plugin

  • Plugin page: liveperson
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.5.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2016
  • Latest release: Aug 2, 2016
  • Number of updates: 13
  • Update frequency: every 8.7 days
  • Top authors: rszrama (61.54%)liveperson (30.77%)nullvariable (23.08%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /3,896 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.01ms] Passed 4 tests

Analyzing server-side resources used by LivePerson LiveChat + Messaging
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.32 ▼3.64
Dashboard /wp-admin3.32 ▼0.0356.31 ▼8.97
Posts /wp-admin/edit.php3.37 ▲0.0152.05 ▼4.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.93 ▼7.39
Media Library /wp-admin/upload.php3.24 ▲0.0137.30 ▼0.88
LivePerson /wp-admin/options-general.php?page=liveperson3.1832.11

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for LivePerson LiveChat + Messaging
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.18 ▼0.046.86 ▲4.9742.55 ▲0.02
Dashboard /wp-admin2,199 ▲285.70 ▲0.0986.02 ▼5.6438.82 ▼7.54
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0241.75 ▲6.6635.02 ▲0.27
Add New Post /wp-admin/post-new.php1,548 ▼123.38 ▲0.12672.98 ▲40.9956.67 ▼15.41
Media Library /wp-admin/upload.php1,404 ▲44.21 ▼0.0399.30 ▼6.0042.85 ▼0.19
LivePerson /wp-admin/options-general.php?page=liveperson8772.0224.2431.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=liveperson
    • > Notice in wp-content/plugins/liveperson/liveperson.php+193
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 33 tag instead of maximum 10
You can look at the official readme.txt

liveperson/liveperson.php 92% from 13 tests

The primary PHP file in "LivePerson LiveChat + Messaging" version 1.0.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP143113133

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin