77% admin-chat-box

Code Review | Admin Chat Box

WordPress plugin Admin Chat Box scored77%from 54 tests.

About plugin

  • Plugin page: admin-chat-box
  • Plugin version: 2.0.6
  • PHP compatiblity: 5.6 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0 or higher-6.3
  • WordPress version: 6.3.1
  • First release: Oct 22, 2022
  • Latest release: Aug 24, 2023
  • Number of updates: 12
  • Update frequency: every 25.6 days
  • Top authors: devsabbirahmed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /464 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.54ms] Passed 4 tests

Analyzing server-side resources used by Admin Chat Box
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.16 ▲0.22
Dashboard /wp-admin3.42 ▲0.1148.45 ▲0.74
Posts /wp-admin/edit.php3.53 ▲0.1751.67 ▲5.97
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.41 ▼4.27
Media Library /wp-admin/upload.php3.34 ▲0.1134.94 ▼6.85
Dashboard /wp-admin/admin.php?page=admin_chat_box3.3128.59
Settings /wp-admin/admin.php?page=admin_chat_box_setting3.3132.73

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
acb_firebase_authentication_value
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Admin Chat Box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲2514.25 ▼0.061.77 ▼0.3743.44 ▲0.80
Dashboard /wp-admin2,217 ▲405.51 ▼0.0688.01 ▼4.8082.29 ▲42.35
Posts /wp-admin/edit.php2,128 ▲281.99 ▲0.0436.14 ▼0.2034.14 ▼3.48
Add New Post /wp-admin/post-new.php1,561 ▲3523.29 ▼0.13666.99 ▲10.1862.96 ▲11.92
Media Library /wp-admin/upload.php1,419 ▲254.20 ▼0.02100.26 ▼7.7074.52 ▲26.30
Dashboard /wp-admin/admin.php?page=admin_chat_box8995.9997.5139.36
Settings /wp-admin/admin.php?page=admin_chat_box_setting1,23112.55326.9973.04

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • acb_firebase_authentication_value
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/admin-chat-box/template/ACB_dashboard.php
    • > /wp-content/plugins/admin-chat-box/inc/ACB_Route.php
    • > /wp-content/plugins/admin-chat-box/template/ACB_setting.php
    • > /wp-content/plugins/admin-chat-box/inc/ACB_BaseController.php
    • > /wp-content/plugins/admin-chat-box/inc/ACB_Deactivate.php
    • > /wp-content/plugins/admin-chat-box/admin-chat-box.php
    • > /wp-content/plugins/admin-chat-box/inc/ACB_FrontChat.php
    • > /wp-content/plugins/admin-chat-box/inc/ACB_DbTables.php
    • > /wp-content/plugins/admin-chat-box/inc/ACB_Activate.php
    • > /wp-content/plugins/admin-chat-box/inc/ACB_Enqueue.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=admin_chat_box_setting
    • > Other (warning) in unknown
    https://www.youtube.com/s/player/dd34ec3d/www-widgetapi.vflset/www-widgetapi.js 1237 Unrecognized feature: 'web-share'.

Optimizations

Plugin configuration 76% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Advance Chat Box Banner), #2 (chat Logo/Icon), #3 (Screenshot-1-4)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

admin-chat-box/admin-chat-box.php 62% from 13 tests

The main file in "Admin Chat Box" v. 2.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "5.0 or higher")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 217 characters long)
  • Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "5.6 or higher")
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected965 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP23181681816
JavaScript1183130
CSS11014
JSON1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity8.62
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods66
▷ Static methods2131.82%
▷ Public methods6496.97%
▷ Protected methods00.00%
▷ Private methods23.03%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants7100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
build/images/add.8d6539ca.png2.37KB1.22KB▼ 48.70%
build/images/img.72d7f9e6.png1.49KB0.86KB▼ 42.35%
build/images/cam.b5caa1a4.png1.66KB0.70KB▼ 57.71%
build/images/attach.d65987fc.png0.83KB0.43KB▼ 47.70%
assets/logo.png0.38KB0.33KB▼ 11.95%