83% chatmarshal-ai-bot

Code Review | CHAT MARSHAL

WordPress plugin CHAT MARSHAL scored83%from 54 tests.

About plugin

  • Plugin page: chatmarshal-ai-bot
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.6.1
  • WordPress version: 6.3.1
  • First release: Apr 25, 2017
  • Latest release: Apr 25, 2017
  • Number of updates: 4
  • Update frequency: every 39.7 days
  • Top authors: skrombeen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /819 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.87ms] Passed 4 tests

Server-side resources used by CHAT MARSHAL
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.89 ▼3.52
Dashboard /wp-admin3.31 ▲0.0153.90 ▼4.01
Posts /wp-admin/edit.php3.36 ▲0.0049.42 ▼6.64
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.46 ▼12.69
Media Library /wp-admin/upload.php3.24 ▲0.0038.83 ▼4.12

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

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

Browser metrics Passed 4 tests

A check of browser resources used by CHAT MARSHAL
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲5914.34 ▼0.012.07 ▼0.0240.98 ▼8.70
Dashboard /wp-admin2,195 ▲215.57 ▼0.0389.62 ▼15.5038.78 ▼5.92
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0138.44 ▼0.1334.66 ▼2.50
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▲0.11692.54 ▼0.9849.57 ▼3.18
Media Library /wp-admin/upload.php1,394 ▼64.23 ▼0.14101.79 ▼18.7543.52 ▼8.31

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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/chatmarshal-ai-bot/chatbot.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is not present
  • Tags: You are using too many tags: 17 tag instead of maximum 10
The official readme.txt might help

chatmarshal-ai-bot/chatbot.php 92% from 13 tests

Analyzing the main PHP file in "CHAT MARSHAL" version 1.0
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("chatmarshal-ai-bot.php" instead of "chatbot.php")

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
Good job! No executable or dangerous file extensions detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1179

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin