10% unique-chat

Code Review | Unique Chat SE

WordPress plugin Unique Chat SE scored10%from 54 tests.

About plugin

  • Plugin page: unique-chat
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8.1
  • WordPress version: 6.3.1
  • First release: Aug 9, 2020
  • Latest release: Nov 9, 2021
  • Number of updates: 6
  • Update frequency: every 76.5 days
  • Top authors: wbergeruniqueiccom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /396 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/unique-chat/uniquechatse.php+170
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.93MB] [CPU: ▼55.53ms] Passed 4 tests

Analyzing server-side resources used by Unique Chat SE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.16 ▼34.53
Dashboard /wp-admin2.09 ▼1.266.84 ▼54.47
Posts /wp-admin/edit.php2.09 ▼1.277.12 ▼39.95
Add New Post /wp-admin/post-new.php2.09 ▼3.806.55 ▼93.17
Media Library /wp-admin/upload.php2.09 ▼1.146.28 ▼29.52
Unique Chat SE /wp-admin/options-general.php?page=uniquechatse_settings2.096.05

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Unique Chat SE
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.31 ▼1.021.70 ▲0.1541.06 ▲1.63
Dashboard /wp-admin2,210 ▲194.85 ▼1.05108.38 ▲6.2138.57 ▼4.18
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0539.97 ▲5.8735.03 ▲0.49
Add New Post /wp-admin/post-new.php1,545 ▲3118.26 ▲0.76594.14 ▼74.5856.31 ▲1.59
Media Library /wp-admin/upload.php1,386 ▼24.17 ▼0.0399.30 ▲0.7242.60 ▼2.12
Unique Chat SE /wp-admin/options-general.php?page=uniquechatse_settings7882.2026.1823.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/unique-chat/uniquechatse.php+170
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=uniquechatse_settings
    • > Notice in wp-content/plugins/unique-chat/uniquechatse.php+146
    Trying to access array offset on value of type bool

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/unique-chat/uniquechatse.php:158

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: live chat

unique-chat/uniquechatse.php 92% from 13 tests

"Unique Chat SE" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("unique-chat.php" instead of "uniquechatse.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
Good job! No executable or dangerous file extensions detected125 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12340112
JavaScript12213

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/uniquechatse.png6.47KB3.54KB▼ 45.33%