72% chat-everywhere

Code Review | Chat Everywhere

WordPress plugin Chat Everywhere scored72%from 54 tests.

About plugin

  • Plugin page: chat-everywhere
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Apr 3, 2021
  • Latest release: Jul 29, 2021
  • Number of updates: 7
  • Update frequency: every 17.0 days
  • Top authors: codingfix (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /480 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.81ms] Passed 4 tests

Analyzing server-side resources used by Chat Everywhere
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.74 ▲0.54
Dashboard /wp-admin3.37 ▲0.0648.32 ▼2.92
Posts /wp-admin/edit.php3.49 ▲0.1351.90 ▲5.00
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.04 ▼11.43
Media Library /wp-admin/upload.php3.30 ▲0.0635.76 ▲2.58
Chat Everywhere Options /wp-admin/options-general.php?page=chat-everywhere-settings3.2731.36

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
cfxchat_options
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Chat Everywhere: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲14813.60 ▼0.708.61 ▲6.7842.10 ▼1.24
Dashboard /wp-admin2,211 ▲235.80 ▲0.6998.76 ▼16.6840.66 ▼1.91
Posts /wp-admin/edit.php2,097 ▲82.02 ▲0.0435.85 ▼0.1234.06 ▼2.44
Add New Post /wp-admin/post-new.php1,521 ▼1223.36 ▲0.06670.90 ▼23.9249.58 ▼14.01
Media Library /wp-admin/upload.php1,399 ▲84.20 ▲0.0193.17 ▼5.9740.85 ▼2.64
Chat Everywhere Options /wp-admin/options-general.php?page=chat-everywhere-settings9142.1722.4626.71

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=chat-everywhere-settings
    • > Notice in wp-content/plugins/chat-everywhere/admin/partials/chat-everywhere-admin-display.php+32
    Undefined variable: hidden

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/chat-everywhere/public/partials/chat-everywhere-public-display.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Notice
      Undefined variable: hidden in wp-content/plugins/chat-everywhere/admin/partials/chat-everywhere-admin-display.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/chat-everywhere/admin/partials/chat-everywhere-admin-display.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (/assets/cpev.jpg) image missing
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

chat-everywhere/chat-everywhere.php Passed 13 tests

The entry point to "Chat Everywhere" version 1.0.1 is a PHP file that has certain tags in its header comment area
136 characters long description:
Open a new chat using every html element you wish: standard buttons, textual links, images, divs and so on just adding them a css class.

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
There were no executable files found in this plugin390 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13131561314
JavaScript266072
CSS2084

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity2.71
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png37.46KB11.79KB▼ 68.53%