10% html5-chat

Code Review | HTML5 chat

WordPress plugin HTML5 chat scored10%from 54 tests.

About plugin

  • Plugin page: html5-chat
  • Plugin version: 1.04
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.2
  • WordPress version: 6.3.1
  • First release: Nov 4, 2017
  • Latest release: Aug 6, 2023
  • Number of updates: 19
  • Update frequency: every 110.6 days
  • Top authors: proxymis (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /11,677 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/html5-chat/index.php+69
    file_get_contents(): Content-type not specified assuming application/x-www-form-urlencoded

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.66ms] Passed 4 tests

An overview of server-side resources used by HTML5 chat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.36 ▼5.41
Dashboard /wp-admin3.35 ▲0.0548.91 ▼3.89
Posts /wp-admin/edit.php3.46 ▲0.1148.08 ▼0.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0597.33 ▼1.31
Media Library /wp-admin/upload.php3.27 ▲0.0537.65 ▲0.32

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by HTML5 chat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7413.22 ▼1.431.84 ▼0.4739.94 ▼11.00
Dashboard /wp-admin2,224 ▲425.84 ▲0.95101.56 ▼37.8971.74 ▲25.96
Posts /wp-admin/edit.php2,104 ▲151.99 ▲0.0238.41 ▼0.9636.90 ▲4.19
Add New Post /wp-admin/post-new.php1,536 ▲223.48 ▲0.41695.52 ▲0.6149.41 ▼4.57
Media Library /wp-admin/upload.php1,394 ▲34.07 ▼0.1698.51 ▼0.0371.62 ▲29.61

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/html5-chat/index.php:316

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #1, #2, #3 in html5-chat/assets to your readme.txt
You can look at the official readme.txt

html5-chat/index.php 92% from 13 tests

The main PHP file in "HTML5 chat" ver. 1.04 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("html5-chat.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected287 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13734247
JavaScript14021
CSS13019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-menu.png0.72KB0.56KB▼ 22.19%
js/icon-btn-editor.png3.05KB1.74KB▼ 42.85%
images/icon-btn-editor.png3.05KB1.74KB▼ 42.85%