84% signalzen

Code Review | Slack and Microsoft Teams Live Chat widget

WordPress plugin Slack and Microsoft Teams Live Chat widget scored 84% from 54 tests.

About plugin

  • Plugin page: signalzen
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.0
  • WordPress version: 6.3.1
  • First release: Jan 8, 2019
  • Latest release: Mar 12, 2023
  • Number of updates: 29
  • Update frequency: every 52.6 days
  • Top authors: kurbaitis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 895 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.05ms] Passed 4 tests

A check of server-side resources used by Slack and Microsoft Teams Live Chat widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.32 ▼1.01
Dashboard /wp-admin3.34 ▲0.0344.53 ▼0.32
Posts /wp-admin/edit.php3.39 ▲0.0347.65 ▲2.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.96 ▼13.34
Media Library /wp-admin/upload.php3.26 ▲0.0337.33 ▲2.83
SignalZen /wp-admin/options-general.php?page=signalzen_fields3.2231.07

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

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

Browser metrics Passed 4 tests

Slack and Microsoft Teams Live Chat widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.27 ▼1.041.78 ▼0.3839.60 ▼3.18
Dashboard /wp-admin2,210 ▲254.85 ▼1.01111.44 ▲9.4539.09 ▼6.60
Posts /wp-admin/edit.php2,096 ▲102.06 ▲0.0941.54 ▲0.2038.48 ▲2.60
Add New Post /wp-admin/post-new.php1,517 ▼1917.55 ▼5.55659.68 ▼0.8250.06 ▼14.89
Media Library /wp-admin/upload.php1,392 ▲44.39 ▲0.2395.00 ▲2.5344.27 ▲2.05
SignalZen /wp-admin/options-general.php?page=signalzen_fields8302.0322.8528.93

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • name_form_subject
    • name_form_to
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/signalzen/signalzen.php:29

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: microsoft teams, slack chat, live chat widget, teams live chat, slack live chat...

signalzen/signalzen.php Passed 13 tests

"Slack and Microsoft Teams Live Chat widget" version 3.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Integration plugin with live chat solution from signalzen.com.

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
Success! There were no dangerous files found in this plugin103 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12022103

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin