78% leadbooster-by-pipedrive

Code Review | LeadBooster Chatbot by Pipedrive

WordPress plugin LeadBooster Chatbot by Pipedrive scored78%from 54 tests.

About plugin

  • Plugin page: leadbooster-by-pi...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Jun 8, 2019
  • Latest release: Nov 28, 2022
  • Number of updates: 29
  • Update frequency: every 43.8 days
  • Top authors: redoper (48.28%)vodacek (44.83%)tomasrehor (10.34%)pditops (6.9%)

Code review

54 tests

User reviews

2 reviews

Install metrics

3,000+ active /21,527 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.01MB] [CPU: ▼4.13ms] Passed 4 tests

A check of server-side resources used by LeadBooster Chatbot by Pipedrive
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.41 ▼3.38
Dashboard /wp-admin3.32 ▲0.0155.39 ▼3.80
Posts /wp-admin/edit.php3.37 ▲0.0152.99 ▼2.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.31 ▼6.50
Media Library /wp-admin/upload.php3.24 ▲0.0139.04 ▲2.74
LeadBooster Chatbot by Pipedrive /wp-admin/options-general.php?page=pipedrive3.2337.24

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

LeadBooster Chatbot by Pipedrive: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.38 ▼0.001.82 ▲0.0543.53 ▼2.86
Dashboard /wp-admin2,202 ▲285.66 ▲0.0893.45 ▲1.5242.01 ▼0.69
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.1232.50 ▼8.5535.13 ▼1.08
Add New Post /wp-admin/post-new.php1,548 ▲1423.27 ▲0.01670.99 ▼50.4452.92 ▼2.91
Media Library /wp-admin/upload.php1,407 ▲74.21 ▼0.0294.52 ▼13.8445.62 ▼5.76
LeadBooster Chatbot by Pipedrive /wp-admin/options-general.php?page=pipedrive9812.1727.7229.77

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/leadbooster-by-pipedrive/pipedrive.php
  • 3× 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/leadbooster-by-pipedrive/includes/core.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leadbooster-by-pipedrive/includes/embed.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leadbooster-by-pipedrive/includes/admin.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Plugin settings page) image not found
The official readme.txt might help

leadbooster-by-pipedrive/pipedrive.php 85% from 13 tests

Analyzing the main PHP file in "LeadBooster Chatbot by Pipedrive" version 1.1.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("leadbooster-by-pipedrive.php" instead of "pipedrive.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin576 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP43725250
SVG303142
Sass117093
CSS11163
JavaScript23728

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png98.03KB46.39KB▼ 52.68%