83% surveysparrow-helper

Code Review | Conversational Chatbot for Lead Generation and Feedback Collection

WordPress plugin Conversational Chatbot for Lead Generation and Feedback Collection scored83%from 54 tests.

About plugin

  • Plugin page: surveysparrow-helper
  • Plugin version: 1.04
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 13, 2018
  • Latest release: Jun 24, 2019
  • Number of updates: 29
  • Update frequency: every 16.1 days
  • Top authors: sparrowapps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Conversational Chatbot for Lead Generation and Feedback Collection
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.81 ▼1.08
Dashboard /wp-admin3.31 ▲0.0145.44 ▼2.05
Posts /wp-admin/edit.php3.36 ▲0.0043.93 ▼1.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.41 ▼17.02
Media Library /wp-admin/upload.php3.23 ▲0.0031.52 ▼2.22

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

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

Browser metrics Passed 4 tests

Conversational Chatbot for Lead Generation and Feedback Collection: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.53 ▼0.761.68 ▼0.7742.83 ▼7.89
Dashboard /wp-admin2,209 ▲215.87 ▼0.03113.01 ▼6.1243.41 ▲0.47
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0536.30 ▲2.2833.45 ▼4.94
Add New Post /wp-admin/post-new.php1,541 ▲2723.41 ▲5.91646.31 ▼35.4951.32 ▼5.10
Media Library /wp-admin/upload.php1,388 ▲34.16 ▲0.0398.14 ▼7.2942.14 ▲0.15

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/surveysparrow-helper/index.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Contributors: Plugin contributors not specified
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

surveysparrow-helper/index.php 85% from 13 tests

The primary PHP file in "Conversational Chatbot for Lead Generation and Feedback Collection" version 1.04 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Plugin Name: Please shorten the plugin name (currently 71 characters long instead of max. 70)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("surveysparrow-helper.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown18021
PHP11912

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin