84% deskmoz-24x7-chat-agents

Code Review | DeskMoz - 24x7 Chat Agents

WordPress plugin DeskMoz - 24x7 Chat Agents scored 84% from 54 tests.

About plugin

  • Plugin page: deskmoz-24x7-chat...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.0
  • WordPress version: 6.3.1
  • First release: Oct 3, 2016
  • Latest release: Dec 11, 2018
  • Number of updates: 26
  • Update frequency: every 30.9 days
  • Top authors: ashishbiyani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 683 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.18ms] Passed 4 tests

An overview of server-side resources used by DeskMoz - 24x7 Chat Agents
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.15 ▼2.32
Dashboard /wp-admin3.31 ▲0.0145.99 ▼4.38
Posts /wp-admin/edit.php3.36 ▲0.0046.83 ▲1.35
Add New Post /wp-admin/post-new.php5.89 ▲0.01102.04 ▲1.05
Media Library /wp-admin/upload.php3.23 ▲0.0034.35 ▲0.92

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by DeskMoz - 24x7 Chat Agents
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲6313.18 ▼1.201.86 ▼0.2047.46 ▲4.40
Dashboard /wp-admin2,223 ▲314.88 ▼0.1099.37 ▼9.1139.68 ▼3.98
Posts /wp-admin/edit.php2,094 ▲52.10 ▲0.0937.61 ▲2.4735.06 ▲1.99
Add New Post /wp-admin/post-new.php1,535 ▲223.61 ▲0.48586.06 ▼49.1334.08 ▼24.72
Media Library /wp-admin/upload.php1,418 ▲304.10 ▼0.1086.11 ▼8.3839.43 ▼1.49

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/deskmoz-24x7-chat-agents/deskmoz-24x7-chat-agents.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: chat plugin, chat widget, chat agents, customer support, deskmoz...

deskmoz-24x7-chat-agents/deskmoz-24x7-chat-agents.php 85% from 13 tests

The main PHP script in "DeskMoz - 24x7 Chat Agents" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: Keep the plugin description shorter than 140 characters (currently 298 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin179 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1109143
CSS10025
JavaScript11011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin