84% livebeep

Code Review | Livebeep - Chatbot, Live Chat, CRM & Digital Marketing

WordPress plugin Livebeep - Chatbot, Live Chat, CRM & Digital Marketing scored84%from 54 tests.

About plugin

  • Plugin page: livebeep
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.7.2
  • WordPress version: 6.3.1
  • First release: Mar 12, 2014
  • Latest release: Jun 25, 2021
  • Number of updates: 39
  • Update frequency: every 68.3 days
  • Top authors: fernetbrokers (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /10,182 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Livebeep - Chatbot, Live Chat, CRM & Digital Marketing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.89 ▼0.86
Dashboard /wp-admin3.33 ▲0.0247.50 ▼2.91
Posts /wp-admin/edit.php3.38 ▲0.0248.75 ▼6.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.69 ▼10.02
Media Library /wp-admin/upload.php3.25 ▲0.0245.74 ▼3.39

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Livebeep - Chatbot, Live Chat, CRM & Digital Marketing: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7813.21 ▼0.752.68 ▼1.2539.55 ▼8.34
Dashboard /wp-admin2,224 ▲365.83 ▲0.9598.60 ▼23.4391.21 ▲50.66
Posts /wp-admin/edit.php2,104 ▲151.98 ▼0.0437.32 ▼14.3334.33 ▼0.91
Add New Post /wp-admin/post-new.php1,535 ▲123.00 ▼0.10728.12 ▲109.3983.43 ▼2.67
Media Library /wp-admin/upload.php1,397 ▲94.22 ▼0.05111.97 ▲5.6272.25 ▲26.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test

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
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_action() in wp-content/plugins/livebeep/livebeep-chat.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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: Too many tags (71 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

livebeep/livebeep-chat.php 92% from 13 tests

The principal PHP file in "Livebeep - Chatbot, Live Chat, CRM & Digital Marketing" v. 2.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("livebeep.php" instead of "livebeep-chat.php")

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
No dangerous file extensions were detected113 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File216262
PHP114851

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin