10% lobby-chatwing

Code Review | Plugin Name: chatWING Lobby - Group Chat Rooms + 1 on 1 Live Chat

WordPress plugin Plugin Name: chatWING Lobby - Group Chat Rooms + 1 on 1 Live Chatscored10%from 54 tests.

About plugin

  • Plugin page: lobby-chatwing
  • Plugin version: 1.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2016
  • Latest release: May 15, 2017
  • Number of updates: 34
  • Update frequency: every 6.3 days
  • Top authors: tridungpham (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,541 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Compile error in wp-content/plugins/lobby-chatwing/classes/DataModel.php+5
    Cannot use LobbyChatwing\Object as Object because 'Object' is a special class name

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.21ms] Passed 4 tests

A check of server-side resources used by Plugin Name: chatWING Lobby - Group Chat Rooms + 1 on 1 Live Chat
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.14 ▲0.09
Dashboard /wp-admin3.31 ▲0.0055.69 ▲1.42
Posts /wp-admin/edit.php3.36 ▲0.0048.28 ▼4.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.74 ▼20.49
Media Library /wp-admin/upload.php3.23 ▲0.0039.82 ▼3.53

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Plugin Name: chatWING Lobby - Group Chat Rooms + 1 on 1 Live Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.48 ▲0.211.81 ▼0.1047.46 ▲2.31
Dashboard /wp-admin2,218 ▲154.86 ▼1.01112.69 ▲6.0243.66 ▼2.36
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0236.83 ▼4.9534.31 ▼0.07
Add New Post /wp-admin/post-new.php1,541 ▼518.34 ▼5.12623.84 ▼81.2674.86 ▲9.88
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.01110.70 ▼3.2548.01 ▼3.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Cannot use LobbyChatwing\\Object as Object because 'Object' is a special class name in wp-content/plugins/lobby-chatwing/classes/DataModel.php on line 5
    • > PHP Fatal error
      Cannot use LobbyChatwing\\Object as Object because 'Object' is a special class name in wp-content/plugins/lobby-chatwing/chatwing-sdk/src/LobbyChatwing/Api/Action.php on line 10
    • > PHP Fatal error
      Cannot use 'Object' as class name as it is reserved in wp-content/plugins/lobby-chatwing/chatwing-sdk/src/LobbyChatwing/Object.php on line 12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Plugin Name: You should set the name of your plugin on the first line ( === Plugin Name: chatWING Lobby - Group Chat Rooms + 1 on 1 Live Chat=== )
Please take inspiration from this readme.txt

lobby-chatwing/lobby-chatwing.php 92% from 13 tests

The main PHP script in "Plugin Name: chatWING Lobby - Group Chat Rooms + 1 on 1 Live Chat" version 1.0.9 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 201 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,546 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP253365931,522
JSON10022
CSS20122

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.84
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods144
▷ Static methods1510.42%
▷ Public methods12486.11%
▷ Protected methods1913.19%
▷ Private methods10.69%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants18
▷ Global constants1794.44%
▷ Class constants15.56%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin