10% chatwing-float-chatbox

Code Review | Plugin Name: Chatwing Float Chatbox

WordPress plugin Plugin Name: Chatwing Float Chatboxscored 10% from 53 tests.

About plugin

  • Plugin page: chatwing-float-ch...
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 0.0.1-0.0.1
  • WordPress version: 5.8.1
  • First release: Dec 18, 2017
  • Latest release: Sep 17, 2018
  • Number of updates: 4
  • Update frequency: every 69.0 days
  • Top authors: tridungpham (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 638 total downloads


Plugin footprint 75% 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
Please fix the following installer errors
  • The plugin did not install without errors
    • > Compile error in wp-content/plugins/chatwing-float-chatbox/classes/DataModel.php+4
    Cannot use ChatwingFloatUI\Object as Object because 'Object' is a special class name

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

Server-side resources used by Plugin Name: Chatwing Float Chatbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1132.45 ▲10.25
Dashboard /wp-admin3.06 ▲0.0042.40 ▼2.28
Posts /wp-admin/edit.php3.11 ▲0.0040.23 ▼1.50
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.51 ▼1,643.77
Media Library /wp-admin/upload.php3.00 ▲0.0028.01 ▼5.98

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Plugin Name: Chatwing Float Chatbox: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,673 ▲5115.84 ▲0.439.03 ▼0.1343.54 ▼5.04
Dashboard /wp-admin2,954 ▲855.93 ▲0.10136.46 ▼23.06105.87 ▲2.15
Posts /wp-admin/edit.php2,703 ▼02.69 ▲0.0079.58 ▲15.0088.46 ▼5.92
Add New Post /wp-admin/post-new.php1,653 ▲6518.75 ▼2.63354.57 ▲93.08106.83 ▲0.65
Media Library /wp-admin/upload.php1,775 ▼05.11 ▲0.10158.71 ▲9.03112.11 ▲3.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/chatwing-float-chatbox/classes/index.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Cannot use 'Object' as class name as it is reserved in wp-content/plugins/chatwing-float-chatbox/chatwing-sdk/src/ChatwingFloatUI/Object.php on line 12
    • > PHP Fatal error
      Cannot use ChatwingFloatUI\\Object as Object because 'Object' is a special class name in wp-content/plugins/chatwing-float-chatbox/chatwing-sdk/src/ChatwingFloatUI/Api/Action.php on line 9
    • > PHP Fatal error
      Cannot use ChatwingFloatUI\\Object as Object because 'Object' is a special class name in wp-content/plugins/chatwing-float-chatbox/classes/DataModel.php on line 4

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)
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === Plugin Name: Chatwing Float Chatbox=== )
You can take inspiration from this readme.txt

chatwing-float-chatbox/chatwing-float-chatbox.php 85% from 13 tests

Analyzing the main PHP file in "Plugin Name: Chatwing Float Chatbox" version 0.0.1
Please make the necessary changes and fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 201 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,663 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.47
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
▷ Static methods1510.07%
▷ Public methods12986.58%
▷ Protected methods1912.75%
▷ Private methods10.67%
▷ Named functions450.00%
▷ Anonymous functions450.00%
▷ Global constants1794.44%
▷ Class constants15.56%
▷ Public constants1100.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin