10% promolivechat

Code Review | Instant support chat

WordPress plugin Instant support chat scored10%from 54 tests.

About plugin

  • Plugin page: promolivechat
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: May 10, 2016
  • Latest release: May 11, 2016
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: promolivechat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/promolivechat/promolivechat.php+258
    syntax error, unexpected end of file

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

A check of server-side resources used by Instant support chat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.71 ▼1.12
Dashboard /wp-admin3.31 ▲0.0048.13 ▼0.44
Posts /wp-admin/edit.php3.36 ▲0.0044.81 ▼2.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.96 ▼1.35
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▲2.40

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

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

Browser metrics Passed 4 tests

Instant support chat: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.69 ▼0.681.63 ▼0.6640.02 ▼16.81
Dashboard /wp-admin2,206 ▲185.85 ▼0.0296.75 ▼16.7642.18 ▼1.73
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0135.78 ▼0.5734.55 ▼2.29
Add New Post /wp-admin/post-new.php1,535 ▲2123.32 ▲5.84598.39 ▼105.6059.47 ▼3.13
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.0497.55 ▼6.9645.17 ▼1.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/promolivechat/promolivechat.php on line 258

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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:
  • Screenshots: Add images for these screenshots: #1 (http://promoheads.com/software/screenshots/chat_screen1.jpg), #2 (http://promoheads.com/software/screenshots/chat_screen2.jpg)
The official readme.txt is a good inspiration

promolivechat/promolivechat.php Passed 13 tests

The main PHP script in "Instant support chat" version 1.0 is automatically included on every request by WordPress
107 characters long description:
This plugin install chat on your site. After activation go to Options page and insert your jabber accounts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected187 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14624187

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods266.67%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.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