79% livecaller

Code Review | LiveCaller - Live Call & Chat Plugin for WordPress

WordPress plugin LiveCaller - Live Call & Chat Plugin for WordPress scored79%from 54 tests.

About plugin

  • Plugin page: livecaller
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.5
  • WordPress version: 6.3.1
  • First release: Jan 16, 2021
  • Latest release: Jan 16, 2021
  • Number of updates: 3
  • Update frequency: every 21.3 days
  • Top authors: livecaller (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /491 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.73ms] Passed 4 tests

A check of server-side resources used by LiveCaller - Live Call & Chat Plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.70 ▼5.54
Dashboard /wp-admin3.38 ▲0.0851.52 ▼4.45
Posts /wp-admin/edit.php3.49 ▲0.1455.32 ▲5.73
Add New Post /wp-admin/post-new.php5.96 ▲0.0799.90 ▲3.88
Media Library /wp-admin/upload.php3.30 ▲0.0739.34 ▲3.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by LiveCaller - Live Call & Chat Plugin for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.72 ▲0.361.80 ▲0.1142.44 ▼5.04
Dashboard /wp-admin2,200 ▲295.55 ▲0.0285.00 ▼12.1867.82 ▲23.04
Posts /wp-admin/edit.php2,117 ▲142.00 ▼0.0250.65 ▲12.4940.95 ▲6.26
Add New Post /wp-admin/post-new.php1,694 ▲16821.84 ▼1.75662.14 ▼12.5265.69 ▲7.93
Media Library /wp-admin/upload.php1,414 ▲144.15 ▼0.08102.70 ▼7.5274.48 ▲26.94

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/livecaller/views/widget_code.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/livecaller/views/settings.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/livecaller/livecaller.php:12
    • > PHP Notice
      Undefined variable: widget_locale in wp-content/plugins/livecaller/views/widget_code.php on line 12
    • > PHP Fatal error
      Uncaught Error: Class 'LiveCaller\\LiveCaller' not found in wp-content/plugins/livecaller/plugin_files/LiveCallerAdmin.class.php:10
    • > PHP Notice
      Undefined variable: widget_id in wp-content/plugins/livecaller/views/widget_code.php on line 12

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: chat plugin, wordpress chat, wordpress livecaller, livecaller, live chat...

livecaller/livecaller.php Passed 13 tests

This is the main PHP file of "LiveCaller - Live Call & Chat Plugin for WordPress" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
17 characters long description:
LiveCaller Widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin631 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14216192601
JSON20030

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity12.33
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods47
▷ Static methods1327.66%
▷ Public methods4697.87%
▷ Protected methods00.00%
▷ Private methods12.13%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/livecaller.png5.63KB0.83KB▼ 85.35%