67% chat-messenger-with-toolbar

Code Review | Chat messenger & toolbar

WordPress plugin Chat messenger & toolbar scored67%from 54 tests.

About plugin

  • Plugin page: chat-messenger-wi...
  • Plugin version: 1.0px...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9.1
  • WordPress version: 6.3.1
  • First release: May 29, 2014
  • Latest release: Aug 17, 2014
  • Number of updates: 4
  • Update frequency: every 20.0 days
  • Top authors: usearchme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,549 total downloads


Plugin footprint 65% 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.93MB] [CPU: ▼32.68ms] Passed 4 tests

This is a short check of server-side resources used by Chat messenger & toolbar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0243.38 ▼0.23
Dashboard /wp-admin3.02 ▼0.2923.31 ▼28.94
Posts /wp-admin/edit.php3.02 ▼0.3524.48 ▼21.44
Add New Post /wp-admin/post-new.php3.02 ▼2.8823.85 ▼69.55
Media Library /wp-admin/upload.php3.02 ▼0.2222.18 ▼10.80
WOC Settings /wp-admin/options-general.php?page=chat-messenger-with-toolbar/woc.php3.0223.93

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Chat messenger & toolbar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.38 ▲0.121.58 ▼0.0937.93 ▼4.28
Dashboard /wp-admin2,202 ▲255.56 ▼0.0993.18 ▼0.7341.69 ▼0.07
Posts /wp-admin/edit.php2,104 ▲71.94 ▼0.0638.80 ▼0.1136.13 ▼3.56
Add New Post /wp-admin/post-new.php1,540 ▲1425.24 ▲2.23588.13 ▼68.6065.80 ▲13.69
Media Library /wp-admin/upload.php1,404 ▲44.20 ▲0.0392.71 ▼2.4642.13 ▼2.10
WOC Settings /wp-admin/options-general.php?page=chat-messenger-with-toolbar/woc.php8052.0025.6926.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=chat-messenger-with-toolbar/woc.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=chat-messenger-with-toolbar/woc.php
    • > Notice in wp-content/plugins/chat-messenger-with-toolbar/woc.php+17
    Undefined index: woc_form_submitted

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chat-messenger-with-toolbar/woc.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 87% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (http://www.wocchat.com/messengeronline.png), #2 (http://www.wocchat.com/toolbarmess.png)
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

chat-messenger-with-toolbar/woc.php 85% from 13 tests

The main PHP script in "Chat messenger & toolbar" version 1.0px... is automatically included on every request by WordPress
It is important to fix the following:
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1.0px...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("chat-messenger-with-toolbar.php" instead of "woc.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin83 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ 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
PNG images were not found in this plugin