83% my-chatbot-agency-chat

Code Review | My Chatbot Agency Chat

WordPress plugin My Chatbot Agency Chat scored 83% from 54 tests.

About plugin

  • Plugin page: my-chatbot-agency...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2019
  • Latest release: May 22, 2019
  • Number of updates: 24
  • Update frequency: every 5.0 days
  • Top authors: heydoux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 729 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.72ms] Passed 4 tests

This is a short check of server-side resources used by My Chatbot Agency Chat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0244.58 ▲4.13
Dashboard /wp-admin3.34 ▲0.0349.95 ▼2.49
Posts /wp-admin/edit.php3.39 ▲0.0348.56 ▼2.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.68 ▼19.96
Media Library /wp-admin/upload.php3.26 ▲0.0338.31 ▲2.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for My Chatbot Agency Chat
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5814.44 ▲0.181.68 ▼0.5043.69 ▼1.71
Dashboard /wp-admin2,221 ▲334.92 ▼0.94100.62 ▼10.2970.68 ▲28.84
Posts /wp-admin/edit.php2,107 ▲181.99 ▼0.0539.74 ▼0.8835.94 ▼2.24
Add New Post /wp-admin/post-new.php1,680 ▲16622.20 ▲4.54727.98 ▲14.7849.13 ▼22.92
Media Library /wp-admin/upload.php1,403 ▲154.22 ▲0.01102.69 ▼12.7273.56 ▲26.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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • mca_onboarding
    • theysaidso_admin_options

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/my-chatbot-agency-chat/MCA.php

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 32 tag instead of maximum 10
You can take inspiration from this readme.txt

my-chatbot-agency-chat/MCA.php 85% from 13 tests

The main PHP script in "My Chatbot Agency Chat" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("my-chatbot-agency-chat.php" instead of "MCA.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected316 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File23236154
PHP1225093
CSS19069

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions5
▷ Named functions5100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/favicon.png1.59KB1.37KB▼ 13.93%
assets/images/logo.png17.11KB6.76KB▼ 60.52%