88% flowcharts-ai

Code Review | FlowCharts.ai: AI-Powered Website Chat Bot, Widget Surveys, Forms, Questionnaires, Decision Trees, Workflow, Support & Text Message from Website Visitors

WordPress plugin FlowCharts.ai: AI-Powered Website Chat Bot, Widget Surveys, Forms, Questionnaires, Decision Trees, Workflow, Support & Text Message from Website Visitors scored88%from 54 tests.

About plugin

  • Plugin page: flowcharts-ai
  • Plugin version: 1.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 7, 2021
  • Latest release: Aug 24, 2023
  • Number of updates: 31
  • Update frequency: every 22.3 days
  • Top authors: flowcharts (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /7,577 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.01MB] [CPU: ▼3.39ms] Passed 4 tests

A check of server-side resources used by FlowCharts.ai: AI-Powered Website Chat Bot, Widget Surveys, Forms, Questionnaires, Decision Trees, Workflow, Support & Text Message from Website Visitors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.57 ▲4.94
Dashboard /wp-admin3.32 ▲0.0149.14 ▼3.75
Posts /wp-admin/edit.php3.37 ▲0.0150.73 ▼0.06
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.44 ▼4.46
Media Library /wp-admin/upload.php3.24 ▲0.0131.72 ▼5.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for FlowCharts.ai: AI-Powered Website Chat Bot, Widget Surveys, Forms, Questionnaires, Decision Trees, Workflow, Support & Text Message from Website Visitors
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲7013.31 ▼1.021.69 ▼0.4542.93 ▼1.69
Dashboard /wp-admin2,234 ▲345.83 ▲0.8899.66 ▼7.1842.38 ▼2.25
Posts /wp-admin/edit.php2,116 ▲162.05 ▲0.0139.07 ▼3.6338.25 ▼1.92
Add New Post /wp-admin/post-new.php1,567 ▲2618.17 ▼0.21638.86 ▼0.6851.54 ▼3.61
Media Library /wp-admin/upload.php1,416 ▲134.17 ▼0.08100.65 ▼0.8743.24 ▼2.68

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

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Add a description for screenshot #6 in flowcharts-ai/assets to your readme.txt
  • Donate link: Please fix this invalid url: ""
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

flowcharts-ai/flowcharts-ai.php 77% from 13 tests

The main PHP script in "FlowCharts.ai: AI-Powered Website Chat Bot, Widget Surveys, Forms, Questionnaires, Decision Trees, Workflow, Support & Text Message from Website Visitors" version 1.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Plugin Name: A shorter plugin name is better (currently 153 characters long instead of max. 70)
  • Description: Keep the plugin description shorter than 140 characters (currently 333 characters long)
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin292 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53318249
SVG10043

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity32.00
▷ Minimum class complexity32.00
▷ Maximum class complexity32.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1168.75%
▷ Protected methods00.00%
▷ Private methods531.25%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.83MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png19.18KB0.82KB▼ 95.70%
assets/images/logo.png6.18KB2.66KB▼ 56.97%
assets/banner-1544x500.png187.40KB60.79KB▼ 67.56%
assets/icon-128-128.png19.18KB0.82KB▼ 95.70%
assets/icon-256-256.png19.18KB0.82KB▼ 95.70%