83% pubble-messenger

Code Review | Pubble Messenger Live Chat

WordPress plugin Pubble Messenger Live Chat scored83%from 54 tests.

About plugin

  • Plugin page: pubble-messenger
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.7
  • WordPress version: 6.3.1
  • First release: Nov 2, 2017
  • Latest release: Jul 16, 2020
  • Number of updates: 13
  • Update frequency: every 105.6 days
  • Top authors: ianhuangpubble (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /1,830 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.44ms] Passed 4 tests

A check of server-side resources used by Pubble Messenger Live Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.05 ▲2.12
Dashboard /wp-admin3.35 ▲0.0052.32 ▼12.05
Posts /wp-admin/edit.php3.46 ▲0.1050.90 ▼1.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.85 ▼21.79
Media Library /wp-admin/upload.php3.27 ▲0.0437.59 ▲1.47
Pubble live Chat /wp-admin/options-general.php?page=pubble_livechat3.2236.70

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Pubble Messenger Live Chat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.25 ▼0.281.65 ▲0.0344.67 ▲6.02
Dashboard /wp-admin2,201 ▲205.57 ▼0.1084.36 ▼16.9237.11 ▼7.29
Posts /wp-admin/edit.php2,115 ▲152.02 ▲0.0536.66 ▼4.0835.66 ▼3.12
Add New Post /wp-admin/post-new.php1,547 ▲822.62 ▼0.53674.87 ▼12.3460.10 ▲9.57
Media Library /wp-admin/upload.php1,412 ▲124.09 ▼0.1198.01 ▼5.4943.32 ▼1.64
Pubble live Chat /wp-admin/options-general.php?page=pubble_livechat8082.0426.4725.26

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=pubble_livechat
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=pubble_livechat
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=pubble_livechat
    • > Notice in wp-content/plugins/pubble-messenger/includes/class-pubble-live-chat.php+166
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

pubble-messenger/pubble-live-chat.php 69% from 13 tests

The main PHP file in "Pubble Messenger Live Chat" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("pubble-messenger.php" instead of "pubble-live-chat.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 302 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected172 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3123156172

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.50
▷ Minimum class complexity3.00
▷ Maximum class complexity20.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1688.89%
▷ Protected methods00.00%
▷ Private methods211.11%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin