89% initchat

Code Review | initChat

WordPress plugin initChat scored89%from 54 tests.

About plugin

  • Plugin page: initchat
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 5, 2020
  • Latest release: Jul 2, 2021
  • Number of updates: 16
  • Update frequency: every 20.8 days
  • Top authors: gatetouch (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /4,744 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.12MB] [CPU: ▼3.73ms] Passed 4 tests

Analyzing server-side resources used by initChat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.78 ▲0.0544.70 ▼1.48
Dashboard /wp-admin3.78 ▲0.2256.64 ▲2.98
Posts /wp-admin/edit.php3.84 ▲0.1657.53 ▲1.19
Add New Post /wp-admin/post-new.php6.28 ▲0.1388.26 ▼17.59
Media Library /wp-admin/upload.php3.62 ▲0.1342.98 ▲4.56

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by initChat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,105 ▲31915.01 ▲0.629.31 ▲7.2945.97 ▲4.30
Dashboard /wp-admin2,334 ▲1546.19 ▲0.52119.88 ▲25.7273.93 ▲29.38
Posts /wp-admin/edit.php2,280 ▲1803.37 ▲1.3253.15 ▲11.9353.91 ▲14.39
Add New Post /wp-admin/post-new.php1,553 ▲2223.09 ▼0.14672.17 ▲28.0136.91 ▼19.62
Media Library /wp-admin/upload.php1,414 ▲144.05 ▼0.1785.06 ▼22.6885.22 ▲36.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: chatting, application, initchat, wordpress chat, start...

initchat/initchat.php 77% from 13 tests

The main file in "initChat" v. 1.3.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: Keep the plugin description shorter than 140 characters (currently 297 characters long)
  • Domain Path: Prefix the domain path with a forward slash character ("//")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected767 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP413837480
CSS2266198
JavaScript1291280
SVG1009

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity30.00
▷ Minimum class complexity2.00
▷ Maximum class complexity48.00
Average method complexity5.83
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.03MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/startchat.png1.10KB0.99KB▼ 10.46%
assets/img/pattern.png26.75KB26.03KB▼ 2.67%
assets/img/person.png2.88KB2.14KB▼ 25.96%
assets/img/initchat-icon.png0.93KB0.89KB▼ 4.30%