88% ice-chat

Code Review | ICE Chat WordPress Plugin

WordPress plugin ICE Chat WordPress Plugin scored 88% from 54 tests.

About plugin

  • Plugin page: ice-chat
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.2
  • WordPress version: 5.8.1
  • First release: May 28, 2019
  • Latest release: Jul 20, 2021
  • Number of updates: 25
  • Update frequency: every 31.4 days
  • Top authors: etechgs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 358 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.09MB] [CPU: ▼160.48ms] Passed 4 tests

Analyzing server-side resources used by ICE Chat WordPress Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1442.04 ▼3.21
Dashboard /wp-admin3.09 ▲0.0343.78 ▼25.30
Posts /wp-admin/edit.php3.17 ▼0.4253.61 ▼5.67
Add New Post /wp-admin/post-new.php5.45 ▲0.02105.20 ▼598.25
Media Library /wp-admin/upload.php3.03 ▲0.0240.62 ▼12.71
Chat Box /wp-admin/options-general.php?page=cbf3.0748.78

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 1 new option
New WordPress options
cbf

Browser metrics Passed 4 tests

An overview of browser requirements for ICE Chat WordPress Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,840 ▲23616.54 ▲1.0211.85 ▼0.4056.55 ▼8.59
Dashboard /wp-admin2,988 ▲576.27 ▲0.29161.45 ▼3.79142.86 ▼18.03
Posts /wp-admin/edit.php2,757 ▲182.77 ▲0.0575.18 ▼18.80129.08 ▲5.78
Add New Post /wp-admin/post-new.php1,697 ▲11618.61 ▲1.21420.67 ▼85.92133.01 ▼20.42
Media Library /wp-admin/upload.php1,825 ▲185.15 ▲0.12167.08 ▼24.86165.67 ▲18.93
Chat Box /wp-admin/options-general.php?page=cbf1,3392.3656.4188.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ice-chat/public/partials/chat-box-public-display.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ice-chat/admin/partials/chat-box-admin-login.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ice-chat/admin/partials/chat-box-admin-registration.php:19

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 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were detected

ice-chat/chat-box.php 85% from 13 tests

Analyzing the main PHP file in "ICE Chat WordPress Plugin" version 1.0.0
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("ice-chat.php" instead of "chat-box.php")

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
Success! There were no dangerous files found in this plugin635 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP13181582615
JavaScript346119
CSS30141

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.86
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin