84% livechatoo

Code Review | Livechatoo

WordPress plugin Livechatoo scored84%from 54 tests.

About plugin

  • Plugin page: livechatoo
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Feb 2, 2019
  • Latest release: Aug 28, 2020
  • Number of updates: 12
  • Update frequency: every 49.3 days
  • Top authors: livechatoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /952 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.00MB] [CPU: ▼3.77ms] Passed 4 tests

Analyzing server-side resources used by Livechatoo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.10 ▼4.04
Dashboard /wp-admin3.31 ▲0.0145.68 ▼1.07
Posts /wp-admin/edit.php3.36 ▲0.0043.50 ▼2.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.99 ▼7.38
Media Library /wp-admin/upload.php3.23 ▲0.0038.49 ▲1.74

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Livechatoo
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.29 ▼1.081.65 ▼0.5841.75 ▼0.48
Dashboard /wp-admin2,225 ▲375.04 ▲0.14101.65 ▼6.1339.68 ▼2.70
Posts /wp-admin/edit.php2,105 ▲162.01 ▲0.0033.36 ▼11.0934.14 ▼6.79
Add New Post /wp-admin/post-new.php1,546 ▲1723.42 ▲5.08676.62 ▲66.1955.36 ▼0.51
Media Library /wp-admin/upload.php1,407 ▲194.24 ▼0.02102.48 ▲2.2042.59 ▼3.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/livechatoo/livechatoo.php:109

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: helpdesk, livechatoo, chat support, live chat, chat

livechatoo/livechatoo.php Passed 13 tests

The main PHP script in "Livechatoo" version 1.1.3 is automatically included on every request by WordPress
69 characters long description:
Wordpress plugin to insert Livechatoo JavaScript code to your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin89 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171889

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin