66% wp-messenger-customer-chat

Code Review | Wordpress Messenger Customer Chat Plugin (WPMCCP)

WordPress plugin Wordpress Messenger Customer Chat Plugin (WPMCCP) scored66%from 54 tests.

About plugin

  • Plugin page: wp-messenger-cust...
  • Plugin version: 1.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 6.3.1
  • First release: Dec 6, 2017
  • Latest release: Nov 17, 2019
  • Number of updates: 47
  • Update frequency: every 15.2 days
  • Top authors: dorelljames (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /4,962 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.22ms] Passed 4 tests

This is a short check of server-side resources used by Wordpress Messenger Customer Chat Plugin (WPMCCP)
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.51 ▼5.67
Dashboard /wp-admin3.40 ▲0.0945.44 ▼5.55
Posts /wp-admin/edit.php3.51 ▲0.1649.29 ▲3.83
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.45 ▼4.72
Media Library /wp-admin/upload.php3.32 ▲0.0937.20 ▲3.07
WPMCCP /wp-admin/options-general.php?page=wpmccp3.2930.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wordpress Messenger Customer Chat Plugin (WPMCCP)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲5913.27 ▼1.105.00 ▲2.8541.74 ▼5.19
Dashboard /wp-admin2,210 ▲194.86 ▼0.05109.28 ▼7.0243.98 ▲1.66
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0340.06 ▲2.0433.93 ▼0.75
Add New Post /wp-admin/post-new.php1,545 ▲318.66 ▲0.39644.57 ▲7.4160.13 ▲9.93
Media Library /wp-admin/upload.php1,389 ▲14.30 ▲0.1196.96 ▼12.3542.41 ▼3.88
WPMCCP /wp-admin/options-general.php?page=wpmccp1,0772.0528.6538.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 0% 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)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=wpmccp
    • > Notice in wp-content/plugins/wp-messenger-customer-chat/admin/partials/tabs/wpmccp-required_tab.php+8
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-messenger-customer-chat/public/partials/wpmccp-display.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/tabs/wpmccp-options_tab.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/tabs/wpmccp-required_tab.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/tabs/wpmccp-misc_tab.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/wpmccp-admin-display.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/wp-messenger-customer-chat/admin/partials/sidebar/wpmccp-right_sidebar.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=wpmccp
    • > Network (severe)
    https://dorelljames.com/wp-content/uploads/2017/11/messenger-whitelist-domain.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=wpmccp
    • > Network (severe)
    https://dorelljames.com/wp-content/uploads/2017/11/findfbid.jpg - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=wpmccp
    • > Network (severe)
    https://dorelljames.com/wp-content/uploads/2017/11/Screen-Shot-2017-11-30-at-11.26.41-AM.png - Failed to load resource: the server responded with a status of 404 ()

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
5 plugin tags: wordpress messenger, messenger plugin, wordpress messenger plugin, messenger chat, messenger customer chat plugin

wp-messenger-customer-chat/wpmccp.php 85% from 13 tests

This is the main PHP file of "Wordpress Messenger Customer Chat Plugin (WPMCCP)" version 1.5.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-messenger-customer-chat.php" instead of "wpmccp.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin880 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP16357586880

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity11.00
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin