84% chatpress-ai

Code Review | ChatPress.ai - Create AI chatbot trained on your website content

WordPress plugin ChatPress.ai - Create AI chatbot trained on your website content scored84%from 54 tests.

About plugin

  • Plugin page: chatpress-ai
  • Plugin version: 0.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 26, 2023
  • Latest release: Nov 22, 2023
  • Number of updates: 12
  • Update frequency: every 4.8 days
  • Top authors: chatpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /181 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.73ms] Passed 4 tests

Server-side resources used by ChatPress.ai - Create AI chatbot trained on your website content
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0737.65 ▼4.33
Dashboard /wp-admin3.37 ▲0.0346.07 ▼14.49
Posts /wp-admin/edit.php3.49 ▲0.1345.48 ▼0.95
Add New Post /wp-admin/post-new.php6.02 ▲0.1380.44 ▼11.15
Media Library /wp-admin/upload.php3.30 ▲0.0734.17 ▼0.61

Server storage [IO: ▲0.67MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for ChatPress.ai - Create AI chatbot trained on your website content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲15017.63 ▲2.921.96 ▲0.3525.17 ▼18.43
Dashboard /wp-admin2,245 ▲688.95 ▲3.35209.97 ▲108.3139.34 ▼1.67
Posts /wp-admin/edit.php2,160 ▲575.34 ▲3.3993.35 ▲49.6937.10 ▼0.46
Add New Post /wp-admin/post-new.php1,546 ▲2025.32 ▲1.71670.90 ▲2.8327.62 ▼22.87
Media Library /wp-admin/upload.php1,450 ▲567.19 ▲3.03138.78 ▲37.4437.03 ▼4.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/chatpress-ai/templates/app.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
7 plugin tags: chat, chatbot, ai, chatgpt, bot...

chatpress-ai/ChatPress.php 92% from 13 tests

The entry point to "ChatPress.ai - Create AI chatbot trained on your website content" version 0.1.9 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("chatpress-ai.php" instead of "ChatPress.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
No dangerous file extensions were detected842 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13191280729
JavaScript3192111
CSS1002

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.23
Average class complexity9.33
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods56
▷ Static methods58.93%
▷ Public methods5496.43%
▷ Protected methods00.00%
▷ Private methods23.57%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png6.44KB2.28KB▼ 64.54%
assets/images/chatpress-wp-logo-sm.png1.49KB0.74KB▼ 50.66%