79% charla-live-chat

Code Review | Charla Live Chat

WordPress plugin Charla Live Chat scored 79% from 54 tests.

About plugin

  • Plugin page: charla-live-chat
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Oct 7, 2020
  • Latest release: May 31, 2022
  • Number of updates: 3
  • Update frequency: every 200.3 days
  • Top authors: charlalivechat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.78ms] Passed 4 tests

Analyzing server-side resources used by Charla Live Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.32 ▼5.83
Dashboard /wp-admin3.32 ▲0.0243.90 ▼9.18
Posts /wp-admin/edit.php3.38 ▲0.0246.21 ▼1.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.20 ▼6.33
Media Library /wp-admin/upload.php3.25 ▲0.0230.44 ▼1.37
Charla Live Chat /wp-admin/options-general.php?page=charla-live-chat-settings3.2427.87

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Charla Live Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲17713.64 ▼0.785.00 ▲3.2039.77 ▼9.05
Dashboard /wp-admin2,234 ▲434.86 ▼1.02113.73 ▲11.5841.70 ▼4.23
Posts /wp-admin/edit.php2,114 ▲282.05 ▲0.0539.25 ▼0.0533.85 ▲3.92
Add New Post /wp-admin/post-new.php1,533 ▼023.10 ▲0.03599.78 ▼3.5648.92 ▼1.84
Media Library /wp-admin/upload.php1,419 ▲314.17 ▼0.0598.06 ▼0.1242.70 ▼0.51
Charla Live Chat /wp-admin/options-general.php?page=charla-live-chat-settings8292.0227.3226.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/charla-live-chat/admin/partials/charla-live-chat-admin-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/charla-live-chat/admin/partials/charla-live-chat-admin-settings-display.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: chat, live chat, charla live chat, charla

charla-live-chat/charla-live-chat.php Passed 13 tests

This is the main PHP file of "Charla Live Chat" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
79 characters long description:
Add Charla Live Chat Widget to your site without writing a single line of code.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin322 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12136561279
SVG10122
JavaScript272712
CSS1149

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.57
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected