67% wordlive-livecall-addon-for-woocommerce

Code Review | WordLive | Livecall Addon for Woocommerce

WordPress plugin WordLive | Livecall Addon for Woocommerce scored67%from 54 tests.

About plugin

  • Plugin page: wordlive-livecall...
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2022
  • Latest release: Nov 28, 2022
  • Number of updates: 42
  • Update frequency: every 0.3 days
  • Top authors: rajinsharwar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /809 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲5.33MB] [CPU: ▼13.60ms] 75% from 4 tests

Analyzing server-side resources used by WordLive | Livecall Addon for Woocommerce
Please take the time to fix the following items
  • Extra RAM: Extra memory usage must be kept under 5MB (currently 5.33MB on /wp-admin/admin.php?page=freemius)
PageMemory (MB)CPU Time (ms)
Home /9.32 ▲5.8648.59 ▲6.61
Dashboard /wp-admin9.34 ▲6.0450.33 ▲0.10
Posts /wp-admin/edit.php9.34 ▲5.9858.02 ▼3.72
Add New Post /wp-admin/post-new.php9.34 ▲3.4551.35 ▼57.37
Media Library /wp-admin/upload.php9.34 ▲6.1150.86 ▲12.36
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius9.3448.02

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 194 new files
Database: no new tables, 47 new options
New WordPress options
wordlive_livecall_btn_bg_color_hover
wordlive_livecall_btn_border_width
wordlive_livecall_btn_textalign
wordlive_livecall_btn_width
widget_recent-comments
fs_gdpr
wordlive_livecall_btn_border_width_hover
wordlive_seller_email_temp
wordlive_button_loc_shop_page
wordlive_guestlogin_enable
...

Browser metrics Passed 4 tests

A check of browser resources used by WordLive | Livecall Addon for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲22113.58 ▼0.3712.44 ▲10.8032.41 ▼13.01
Dashboard /wp-admin2,229 ▲525.64 ▲0.0496.78 ▲8.6879.34 ▲34.63
Posts /wp-admin/edit.php2,153 ▲502.06 ▲0.0239.29 ▼3.4337.06 ▼0.02
Add New Post /wp-admin/post-new.php1,711 ▲17422.03 ▲3.84728.40 ▲80.8261.58 ▼5.30
Media Library /wp-admin/upload.php1,437 ▲374.23 ▲0.02104.59 ▼2.6286.84 ▲42.73
Freemius Debug [v.2.5.2] /wp-admin/admin.php?page=freemius1,1041.7725.5531.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • fs_accounts
    • widget_recent-comments
    • fs_debug_mode
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • fs_active_plugins
    • fs_gdpr

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=freemius
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wordlive-livecall-addon-for-woocommerce/templates/how-to-join-call.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/wordlive-livecall-addon-for-woocommerce/templates/livecall.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce addon, woocommerce, woocommerce product live-chat, woocommerce live chat, woocommerce product options

wordlive-livecall-addon-for-woocommerce/wordlive.php 85% from 13 tests

The principal PHP file in "WordLive | Livecall Addon for Woocommerce" v. 1.2.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wordlive-livecall-addon-for-woocommerce.php" instead of "wordlive.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

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin37,425 lines of code in 147 files:
LanguageFilesBlank linesComment linesLines of code
PHP1258,25317,22734,239
JavaScript67283932,740
CSS1510232
Markdown1680214

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
It is recommended to fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity92.77
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity89.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes48
▷ Abstract classes24.17%
▷ Concrete classes4695.83%
▷ Final classes00.00%
Methods1,252
▷ Static methods19115.26%
▷ Public methods87169.57%
▷ Protected methods171.36%
▷ Private methods36429.07%
Functions117
▷ Named functions117100.00%
▷ Anonymous functions00.00%
Constants149
▷ Global constants10268.46%
▷ Class constants4731.54%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/assets/img/theme-icon.png5.89KB5.78KB▼ 2.02%
assets/img/icon.png0.58KB0.71KB0.00%
includes/assets/img/plugin-icon.png5.34KB5.26KB▼ 1.59%