84% salesmate-messenger

Code Review | Salesmate Messenger

WordPress plugin Salesmate Messenger scored84%from 54 tests.

About plugin

  • Plugin page: salesmate-messenger
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: May 27, 2022
  • Latest release: Oct 31, 2022
  • Number of updates: 4
  • Update frequency: every 39.5 days
  • Top authors: salesmate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /211 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.21ms] Passed 4 tests

A check of server-side resources used by Salesmate Messenger
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.47 ▼0.11
Dashboard /wp-admin3.33 ▲0.0347.28 ▼6.22
Posts /wp-admin/edit.php3.38 ▲0.0245.02 ▼0.36
Add New Post /wp-admin/post-new.php5.93 ▲0.04112.54 ▲28.74
Media Library /wp-admin/upload.php3.25 ▲0.0231.48 ▼2.16

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Salesmate Messenger: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.16 ▼1.421.68 ▼0.4542.86 ▼3.93
Dashboard /wp-admin2,222 ▲345.83 ▲0.9599.01 ▼23.6037.79 ▼7.30
Posts /wp-admin/edit.php2,105 ▲162.06 ▲0.0733.78 ▼2.8239.34 ▲2.22
Add New Post /wp-admin/post-new.php1,540 ▲1618.37 ▼4.96602.63 ▼44.4757.99 ▲2.28
Media Library /wp-admin/upload.php1,398 ▲104.24 ▲0.0795.63 ▲0.4040.97 ▲0.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/salesmate-messenger/admin/partials/salesmate-messenger-admin-display.php
    • > /wp-content/plugins/salesmate-messenger/public/partials/salesmate-messenger-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: salesmate, best crm, crm

salesmate-messenger/salesmate-messenger.php Passed 13 tests

The main PHP file in "Salesmate Messenger" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
48 characters long description:
Allows you to configure messenger in easy steps.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected330 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10136486319
JavaScript24546
CSS2085

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity3.80
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.45
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin