84% virtualspirits-chatbot

Code Review | virtualspirits chatbot

WordPress plugin virtualspirits chatbot scored 84% from 54 tests.

About plugin

  • Plugin page: virtualspirits-ch...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.9
  • WordPress version: 6.3.1
  • First release: Oct 22, 2017
  • Latest release: Jan 30, 2022
  • Number of updates: 29
  • Update frequency: every 53.9 days
  • Top authors: virtualspirits (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active / 3,045 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: ▼0.71ms] Passed 4 tests

Analyzing server-side resources used by virtualspirits chatbot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.42 ▼3.17
Dashboard /wp-admin3.31 ▲0.0144.30 ▼1.17
Posts /wp-admin/edit.php3.36 ▲0.0144.90 ▼0.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.33 ▲1.61
Media Library /wp-admin/upload.php3.23 ▲0.0136.39 ▲3.90

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for virtualspirits chatbot
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.70 ▼0.921.69 ▼0.1538.68 ▼5.05
Dashboard /wp-admin2,222 ▲374.87 ▼0.03105.98 ▲0.8941.50 ▼6.44
Posts /wp-admin/edit.php2,105 ▲161.99 ▼0.0239.67 ▼0.0736.01 ▲1.10
Add New Post /wp-admin/post-new.php1,527 ▲1317.93 ▲0.42602.75 ▼67.5152.43 ▼2.50
Media Library /wp-admin/upload.php1,407 ▲254.19 ▼0.01101.37 ▼6.6142.91 ▲0.25

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/virtualspirits-chatbot/virtualspirits-chatbot.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: automatic chat, live chat, chat bot, chatbot

virtualspirits-chatbot/virtualspirits-chatbot.php Passed 13 tests

"virtualspirits chatbot" version 3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
59 characters long description:
VirtualSpirits Chatbot and LiveChat for your WordPress site

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1224484

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.53
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin