78% userlike

Code Review | Userlike – WordPress Live Chat plugin

WordPress plugin Userlike – WordPress Live Chat plugin scored78%from 54 tests.

About plugin

  • Plugin page: userlike
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2012
  • Latest release: Sep 1, 2023
  • Number of updates: 63
  • Update frequency: every 67.5 days
  • Top authors: userlike (84.13%)zakx (17.46%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /30,185 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.51ms] Passed 4 tests

A check of server-side resources used by Userlike – WordPress Live Chat plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.90 ▼10.38
Dashboard /wp-admin3.33 ▼0.0252.52 ▼11.78
Posts /wp-admin/edit.php3.38 ▲0.0248.20 ▼0.33
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.39 ▼7.56
Media Library /wp-admin/upload.php3.25 ▲0.0237.03 ▲1.36
Userlike /wp-admin/options-general.php?page=userlike3.2128.29

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
userlike_secret
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Userlike – WordPress Live Chat plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9114.43 ▲0.032.19 ▲0.3843.27 ▲0.62
Dashboard /wp-admin2,209 ▲275.82 ▼0.03103.12 ▼7.0941.42 ▲0.74
Posts /wp-admin/edit.php2,100 ▲112.01 ▲0.0140.04 ▼0.4736.82 ▼1.32
Add New Post /wp-admin/post-new.php1,540 ▲2618.37 ▲0.90639.67 ▼47.3966.89 ▲13.87
Media Library /wp-admin/upload.php1,403 ▲154.21 ▼0.0797.15 ▼16.1743.97 ▼3.25
Userlike /wp-admin/options-general.php?page=userlike8342.0825.1230.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • userlike_secret
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=userlike
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=userlike
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: in_userlike in wp-content/plugins/userlike/userlike.admin.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/userlike/userlike.php:93

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 93% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: Please a description for screenshot #7 in userlike/assets to your readme.txt
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

userlike/userlike.php Passed 13 tests

The entry point to "Userlike – WordPress Live Chat plugin" version 2.3 is a PHP file that has certain tags in its header comment area
44 characters long description:
Userlike Live Chat integration for Wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2172184

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
userlike.png4.86KB3.10KB▼ 36.25%