84% sonetel-website-chat

Code Review | Free customer chat solution

WordPress plugin Free customer chat solution scored84%from 54 tests.

About plugin

  • Plugin page: sonetel-website-chat
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: Aug 17, 2023
  • Number of updates: 14
  • Update frequency: every 97.9 days
  • Top authors: wpsonetel (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

900+ active /22,536 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
Installer ran successfully

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

An overview of server-side resources used by Free customer chat solution
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.25 ▼0.40
Dashboard /wp-admin3.34 ▲0.0441.46 ▼10.34
Posts /wp-admin/edit.php3.39 ▲0.0346.99 ▲1.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0375.50 ▼14.18
Media Library /wp-admin/upload.php3.26 ▲0.0333.10 ▲2.37

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: 11 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
wp_sonetel_bar_activated
widget_recent-posts
wp_sonetel_activated
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Free customer chat solution: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.73 ▲0.341.53 ▼0.0336.26 ▼5.12
Dashboard /wp-admin2,257 ▲865.54 ▼0.0495.25 ▲7.8042.61 ▲3.72
Posts /wp-admin/edit.php2,160 ▲602.05 ▲0.0535.57 ▼1.2631.92 ▼6.03
Add New Post /wp-admin/post-new.php1,541 ▲1223.48 ▲0.58672.23 ▲3.5048.59 ▼24.91
Media Library /wp-admin/upload.php1,462 ▲654.24 ▲0.1296.72 ▼2.2740.38 ▼4.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/sonetel-website-chat/views/wp-sonetel-admin-display.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sonetel-website-chat/wp-sonetel.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: free chat, sonetel

sonetel-website-chat/wp-sonetel.php 85% from 13 tests

Analyzing the main PHP file in "Free customer chat solution" version 1.0.7
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sonetel-website-chat.php" instead of "wp-sonetel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin327 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP45510202
CSS113083
SVG40042

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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