67% urlive-call-widget

Code Review | UrLive Chat widget by UrLive

WordPress plugin UrLive Chat widget by UrLive scored67%from 54 tests.

About plugin

  • Plugin page: urlive-call-widget
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1
  • WordPress version: 6.3.1
  • First release: May 2, 2019
  • Latest release: Mar 29, 2021
  • Number of updates: 6
  • Update frequency: every 119.7 days
  • Top authors: urlive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /646 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.63ms] Passed 4 tests

An overview of server-side resources used by UrLive Chat widget by UrLive
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0134.78 ▼4.15
Dashboard /wp-admin3.32 ▲0.0144.88 ▼11.62
Posts /wp-admin/edit.php3.37 ▲0.0147.46 ▼3.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.57 ▼3.28
Media Library /wp-admin/upload.php3.24 ▲0.0136.35 ▲2.65
Urlive /wp-admin/options-general.php?page=plugin3.1827.66

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for UrLive Chat widget by UrLive
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8214.21 ▼0.171.60 ▼0.0127.60 ▼10.13
Dashboard /wp-admin2,220 ▲325.79 ▲0.8798.20 ▼5.8149.00 ▲9.58
Posts /wp-admin/edit.php2,103 ▲142.03 ▲0.0037.03 ▼3.4742.12 ▲6.87
Add New Post /wp-admin/post-new.php1,686 ▲15822.29 ▼1.02570.76 ▼70.9030.79 ▼21.60
Media Library /wp-admin/upload.php1,409 ▲244.12 ▼0.0685.62 ▼9.6745.57 ▲6.58
Urlive /wp-admin/options-general.php?page=plugin8162.0522.0132.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > Notice in wp-content/plugins/urlive-call-widget/urll_widget.php+247
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/urlive-call-widget/Ajax.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/urlive-call-widget/urll_widget.php:52

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > Network (severe)
    wp-content/plugins/URLL_widget/urll_style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: im chat, audio chat, video chat, communication

urlive-call-widget/urll_widget.php 92% from 13 tests

The primary PHP file in "UrLive Chat widget by UrLive" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("urlive-call-widget.php" instead of "urll_widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin234 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25056167
CSS111867

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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