84% leadback

Code Review | LeadBack - Callback, Chatbot and Live Chat Widgets for WordPress sites

WordPress plugin LeadBack - Callback, Chatbot and Live Chat Widgets for WordPress sites scored84%from 54 tests.

About plugin

  • Plugin page: leadback
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Sep 8, 2021
  • Latest release: Sep 24, 2021
  • Number of updates: 28
  • Update frequency: every 0.8 days
  • Top authors: leadbackru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /2,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by LeadBack - Callback, Chatbot and Live Chat Widgets for WordPress sites
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.23 ▲2.75
Dashboard /wp-admin3.32 ▲0.0146.14 ▼7.97
Posts /wp-admin/edit.php3.37 ▲0.0151.32 ▲1.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.88 ▼13.95
Media Library /wp-admin/upload.php3.24 ▲0.0139.13 ▲4.33

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by LeadBack - Callback, Chatbot and Live Chat Widgets for WordPress sites
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.23 ▼1.141.84 ▲0.1443.50 ▲4.74
Dashboard /wp-admin2,222 ▲315.86 ▲0.94102.08 ▼7.5739.29 ▼5.51
Posts /wp-admin/edit.php2,108 ▲192.03 ▼0.0140.49 ▲2.8236.08 ▲4.49
Add New Post /wp-admin/post-new.php1,532 ▼123.30 ▲0.23674.42 ▼11.3954.48 ▲4.13
Media Library /wp-admin/upload.php1,404 ▲194.17 ▼0.04109.21 ▲5.7948.70 ▲5.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leadback/leadback.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/leadback/options-page.php:3

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (104 tag instead of maximum 10)
  • Screenshots: Add images for these screenshots: #1 (WP Plugin settings), #2 (Widget and chat bot DEMO), #3 (Widget customization), #4 (Button customization), #5 (Multibutton modile widget customization), #6 (Multibutton modile widget DEMO)
Please take inspiration from this readme.txt

leadback/leadback.php Passed 13 tests

"LeadBack - Callback, Chatbot and Live Chat Widgets for WordPress sites" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
This plugin makes a simple widget for callback and live chat on your website. Official LeadBack plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected224 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14230114
PHP2221574
PO File16636

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions5
▷ Named functions5100.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
1 PNG file occupies 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png121.99KB37.38KB▼ 69.35%