78% all-in-one-messenger

Code Review | All-in-One Messenger

WordPress plugin All-in-One Messenger scored78%from 54 tests.

About plugin

  • Plugin page: all-in-one-messenger
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2019
  • Latest release: Jan 13, 2020
  • Number of updates: 15
  • Update frequency: every 4.2 days
  • Top authors: andreadegiovine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,461 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼0.17ms] Passed 4 tests

Analyzing server-side resources used by All-in-One Messenger
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.20492.45 ▲452.18
Dashboard /wp-admin3.40 ▲0.1056.39 ▲4.14
Posts /wp-admin/edit.php3.51 ▲0.1549.77 ▼5.60
Add New Post /wp-admin/post-new.php6.00 ▲0.1291.11 ▼6.64
Media Library /wp-admin/upload.php3.32 ▲0.0943.80 ▲7.43
Settings /wp-admin/edit.php?post_type=conversation&page=aio-messenger3.3736.05

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for All-in-One Messenger
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲13413.64 ▼1.015.11 ▲3.2444.77 ▲0.29
Dashboard /wp-admin2,293 ▲1055.06 ▼0.84118.19 ▲10.7644.51 ▲4.46
Posts /wp-admin/edit.php2,143 ▲542.10 ▲0.1043.35 ▲2.5434.14 ▼1.97
Add New Post /wp-admin/post-new.php1,561 ▲4721.12 ▲3.40635.41 ▼30.9359.49 ▼4.71
Media Library /wp-admin/upload.php1,442 ▲544.36 ▲0.16125.94 ▲26.0760.63 ▲17.04
Settings /wp-admin/edit.php?post_type=conversation&page=aio-messenger9552.3730.1230.10

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% 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 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/all-in-one-messenger/all-in-one-messenger.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-messenger/part/options_page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/all-in-one-messenger/part/chat_metabox.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
5 plugin tags: email, messenger, form, conversations, customer service

all-in-one-messenger/all-in-one-messenger.php 92% from 13 tests

The principal PHP file in "All-in-One Messenger" v. 1.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 153 characters long)

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
Everything looks great! No dangerous files found in this plugin1,584 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP93155351,070
Markdown1390247
CSS2320162
JavaScript24972105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity30.00
▷ Minimum class complexity5.00
▷ Maximum class complexity72.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods71
▷ Static methods00.00%
▷ Public methods5881.69%
▷ Protected methods11.41%
▷ Private methods1216.90%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants12
▷ Global constants12100.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