84% cense-ai-chatbot

Code Review | Cense Conversational AI Chatbot

WordPress plugin Cense Conversational AI Chatbot scored84%from 54 tests.

About plugin

  • Plugin page: cense-ai-chatbot
  • Plugin version: 10.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 11, 2019
  • Latest release: Aug 17, 2022
  • Number of updates: 35
  • Update frequency: every 32.4 days
  • Top authors: censeai (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /4,066 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.44ms] Passed 4 tests

Server-side resources used by Cense Conversational AI Chatbot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0424.55 ▼16.55
Dashboard /wp-admin3.36 ▲0.0545.61 ▼3.58
Posts /wp-admin/edit.php3.41 ▲0.0550.20 ▲2.04
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.08 ▼23.66
Media Library /wp-admin/upload.php3.28 ▲0.0539.46 ▲3.70
Cense AI Chatbot /wp-admin/options-general.php?page=cense_ai_chatbot3.2430.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cense Conversational AI Chatbot
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,480 ▼29113.24 ▼1.390.85 ▼1.0613.71 ▼30.56
Dashboard /wp-admin2,213 ▲245.89 ▲0.9496.34 ▼11.9138.28 ▼8.09
Posts /wp-admin/edit.php2,096 ▲252.02 ▼0.0540.67 ▲5.5038.37 ▲2.65
Add New Post /wp-admin/post-new.php1,536 ▼023.00 ▲0.01649.81 ▼27.9472.65 ▲0.93
Media Library /wp-admin/upload.php1,395 ▲74.24 ▼0.0196.46 ▼14.2546.32 ▲0.14
Cense AI Chatbot /wp-admin/options-general.php?page=cense_ai_chatbot7822.0625.4224.15

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cense-ai-chatbot/cense-chat.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: artificial intelligence, ai, chatbot, machine learning, natural language processing

cense-ai-chatbot/cense-chat.php 92% from 13 tests

The entry point to "Cense Conversational AI Chatbot" version 10.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cense-ai-chatbot.php" instead of "cense-chat.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected208 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15970205
CSS1052
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity19.00
▷ Minimum class complexity4.00
▷ Maximum class complexity34.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/sdk-background.png13.28KB7.31KB▼ 44.96%