10% chatwee

Code Review | Chat by Chatwee

WordPress plugin Chat by Chatwee scored10%from 54 tests.

About plugin

  • Plugin page: chatwee
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 23, 2014
  • Latest release: Feb 13, 2022
  • Number of updates: 155
  • Update frequency: every 19.0 days
  • Top authors: paulq (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

80+ active /30,347 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/chatwee/chatwee.php+223
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.20MB] [CPU: ▼0.33ms] Passed 4 tests

Analyzing server-side resources used by Chat by Chatwee
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1946.50 ▼3.37
Dashboard /wp-admin3.55 ▲0.2465.86 ▲9.55
Posts /wp-admin/edit.php3.60 ▲0.2453.52 ▲3.84
Add New Post /wp-admin/post-new.php6.07 ▲0.18102.86 ▼2.22
Media Library /wp-admin/upload.php3.41 ▲0.1838.49 ▲0.44

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: 3 new tables, 7 new options
New tables
wp_chatwee_moderators
wp_chatwee_pages_to_display
wp_chatwee_log
New WordPress options
chatwee_settings
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Chat by Chatwee
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10314.34 ▼0.032.22 ▼0.5643.12 ▼1.73
Dashboard /wp-admin2,215 ▲415.52 ▼0.0697.26 ▼0.2186.84 ▲44.26
Posts /wp-admin/edit.php2,135 ▲351.98 ▲0.0144.47 ▲8.4737.07 ▲1.66
Add New Post /wp-admin/post-new.php1,568 ▲4218.26 ▼4.82695.98 ▲5.8069.85 ▲9.77
Media Library /wp-admin/upload.php1,432 ▲294.16 ▲0.0099.39 ▼3.2973.98 ▲27.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_chatwee_log
    • wp_chatwee_pages_to_display
    • wp_chatwee_moderators
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • chatwee_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in chatwee/assets to your readme.txt
  • Tags: You are using too many tags: 24 tag instead of maximum 10
The official readme.txt might help

chatwee/chatwee.php 92% from 13 tests

The main file in "Chat by Chatwee" v. 2.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 189 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
Everything looks great! No dangerous files found in this plugin1,943 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP11289111,056
JavaScript91350646
CSS2500231
SVG10010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.89
▷ Minimum class complexity1.00
▷ Maximum class complexity16.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes111.11%
▷ Concrete classes888.89%
▷ Final classes00.00%
Methods45
▷ Static methods3680.00%
▷ Public methods4191.11%
▷ Protected methods00.00%
▷ Private methods48.89%
Functions36
▷ Named functions36100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.19MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/infoIcon.png0.33KB0.34KB0.00%
images/ico_fb_small_16x16.png0.67KB0.63KB▼ 5.97%
images/chatwee-wp-upgrade-banner.png56.05KB20.33KB▼ 63.74%
images/wp-plugin-logo128x40.png3.63KB2.50KB▼ 31.20%
images/blog.png41.78KB19.56KB▼ 53.19%