78% funny-chat-bot

Code Review | Funny CHATBOT

WordPress plugin Funny CHATBOT scored78%from 54 tests.

About plugin

  • Plugin page: funny-chat-bot
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.8
  • WordPress version: 6.3.1
  • First release: Jul 27, 2017
  • Latest release: Jul 27, 2017
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: huykiradotnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,400 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.10MB] [CPU: ▼8.55ms] Passed 4 tests

Server-side resources used by Funny CHATBOT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.07 ▲0.56
Dashboard /wp-admin3.32 ▼0.0348.20 ▼5.51
Posts /wp-admin/edit.php3.39 ▲0.0342.40 ▼5.38
Add New Post /wp-admin/post-new.php5.47 ▼0.4169.44 ▼22.73
Media Library /wp-admin/upload.php3.23 ▲0.0033.82 ▼0.58

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Funny CHATBOT
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.28 ▼0.132.22 ▲0.5943.55 ▲2.33
Dashboard /wp-admin2,220 ▲465.61 ▲0.0994.60 ▲9.4143.43 ▲3.85
Posts /wp-admin/edit.php2,125 ▲282.01 ▲0.0134.78 ▼5.1635.24 ▼3.85
Add New Post /wp-admin/post-new.php1,562 ▲3423.23 ▲0.09677.07 ▲10.3762.13 ▲10.42
Media Library /wp-admin/upload.php1,428 ▲284.20 ▼0.2196.82 ▼3.2544.18 ▼2.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/funny-chat-bot/funny_chat_bot.php
  • 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/funny-chat-bot/includes/shortcode.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Attributes that require attention: You can take inspiration from this readme.txt

funny-chat-bot/funny_chat_bot.php 92% from 13 tests

The main file in "Funny CHATBOT" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("funny-chat-bot.php" instead of "funny_chat_bot.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin8,995 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS42132,584
Sass1434341,768
LESS1434441,758
PHP3128180
JavaScript10034

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin