84% chatsupport

Code Review | ChatSupport

WordPress plugin ChatSupport scored84%from 54 tests.

About plugin

  • Plugin page: chatsupport
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Sep 11, 2023
  • Number of updates: 26
  • Update frequency: every 39.2 days
  • Top authors: chatsuppport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,724 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
This plugin's installer ran successfully

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

This is a short check of server-side resources used by ChatSupport
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.72 ▼3.04
Dashboard /wp-admin3.33 ▼0.0149.56 ▼18.67
Posts /wp-admin/edit.php3.38 ▲0.0348.93 ▼2.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.28 ▼23.50
Media Library /wp-admin/upload.php3.26 ▲0.0341.35 ▲3.29

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by ChatSupport
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.45 ▼0.131.83 ▲0.1537.82 ▼6.65
Dashboard /wp-admin2,193 ▲195.66 ▲0.0991.17 ▼3.8384.92 ▲44.12
Posts /wp-admin/edit.php2,116 ▲162.04 ▲0.0534.85 ▼0.2338.16 ▲1.42
Add New Post /wp-admin/post-new.php1,691 ▲14622.51 ▼0.86676.84 ▼6.0176.96 ▲25.13
Media Library /wp-admin/upload.php1,413 ▲134.15 ▼0.0099.88 ▼13.9695.31 ▲49.41

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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)
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/chatsupport/ChatSupport.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5 in chatsupport/assets to your readme.txt
The official readme.txt might help

chatsupport/ChatSupport.php 92% from 13 tests

The main PHP script in "ChatSupport" version 2.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("chatsupport.php" instead of "ChatSupport.php")

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 plugin758 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS2559393
JavaScript1141198
PHP11429140
SVG50027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.20MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/template-icon.png204.97KB55.54KB▼ 72.91%
icon-256x256.png3.78KB1.83KB▼ 51.45%
images/ChatSupportLogo.png0.48KB0.35KB▼ 26.72%