78% livecall-inbound-sales-calls

Code Review | LiveCall - Callback widget & Calltracking tool

WordPress plugin LiveCall - Callback widget & Calltracking tool scored78%from 54 tests.

About plugin

  • Plugin page: livecall-inbound-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-5.6
  • WordPress version: 6.3.1
  • First release: Aug 5, 2016
  • Latest release: Nov 25, 2020
  • Number of updates: 34
  • Update frequency: every 48.6 days
  • Top authors: livecall (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

400+ active /16,453 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
Install script ran successfully

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

An overview of server-side resources used by LiveCall - Callback widget & Calltracking tool
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.85 ▲0.03
Dashboard /wp-admin3.32 ▼0.0352.39 ▼10.59
Posts /wp-admin/edit.php3.37 ▲0.0147.81 ▲0.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.41 ▼16.23
Media Library /wp-admin/upload.php3.24 ▲0.0132.01 ▼1.16
LiveCall /wp-admin/options-general.php?page=livecall3.1831.72

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

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

Browser metrics Passed 4 tests

LiveCall - Callback widget & Calltracking tool: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.32 ▼0.921.72 ▼0.0243.56 ▼0.61
Dashboard /wp-admin2,210 ▲225.83 ▲0.8095.96 ▼25.6536.22 ▼10.46
Posts /wp-admin/edit.php2,096 ▲102.01 ▼0.0439.51 ▲1.4634.09 ▼1.28
Add New Post /wp-admin/post-new.php1,536 ▼023.19 ▼0.13596.06 ▼57.0458.30 ▲2.83
Media Library /wp-admin/upload.php1,392 ▲44.23 ▼0.0094.05 ▼5.7640.72 ▼3.62
LiveCall /wp-admin/options-general.php?page=livecall9662.0124.3725.49

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=livecall
    • > Notice in wp-content/plugins/livecall-inbound-sales-calls/livecall.php+60
    Trying to access array offset on value of type bool

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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/livecall-inbound-sales-calls/livecall.php:19

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 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: calls, call back, calltracking, call widget, call center...

livecall-inbound-sales-calls/livecall.php 92% from 13 tests

The entry point to "LiveCall - Callback widget & Calltracking tool" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("livecall-inbound-sales-calls.php" instead of "livecall.php")

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
Success! There were no dangerous files found in this plugin153 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
SVG10190
PHP120963

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin