84% fobi-chatbot

Code Review | fobi chatbot

WordPress plugin fobi chatbot scored84%from 54 tests.

About plugin

  • Plugin page: fobi-chatbot
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Feb 25, 2018
  • Latest release: Apr 15, 2018
  • Number of updates: 19
  • Update frequency: every 2.7 days
  • Top authors: orlandster (68.42%)fobiio (36.84%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.82ms] Passed 4 tests

Server-side resources used by fobi chatbot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0846.56 ▲4.68
Dashboard /wp-admin3.39 ▲0.0954.67 ▼2.17
Posts /wp-admin/edit.php3.50 ▲0.1547.63 ▼1.90
Add New Post /wp-admin/post-new.php5.99 ▲0.1092.60 ▼16.38
Media Library /wp-admin/upload.php3.31 ▲0.0835.24 ▼2.84

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

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

Browser metrics Passed 4 tests

A check of browser resources used by fobi chatbot
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,071 ▲28514.99 ▲0.2735.65 ▲33.7981.64 ▲40.50
Dashboard /wp-admin2,217 ▲435.81 ▲0.16105.31 ▲19.0343.63 ▼0.12
Posts /wp-admin/edit.php2,109 ▲92.30 ▲0.3144.12 ▲7.8837.44 ▲3.32
Add New Post /wp-admin/post-new.php1,549 ▲2323.20 ▼0.42626.53 ▼32.0333.05 ▼17.69
Media Library /wp-admin/upload.php1,429 ▲294.45 ▲0.1391.78 ▼14.2439.60 ▼7.62
Fobi chatbot /wp-admin/fobi-chatbot.php260.420.0815.99

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/fobi-chatbot.php
    • > Network (severe)
    wp-admin/fobi-chatbot.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in fobi-chatbot/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can take inspiration from this readme.txt

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

"fobi chatbot" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
Create your own chatbot in minutes with fobi.io integration. Everything you need is a google form.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected565 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8108446424
CSS1280116
JavaScript26025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.60
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 files were detected