78% zidy-chatbot

Code Review | Zidy_Chatbot

WordPress plugin Zidy_Chatbot scored78%from 54 tests.

About plugin

  • Plugin page: zidy-chatbot
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2023
  • Latest release: Mar 7, 2023
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: wearezidy (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /592 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▲2.18ms] Passed 4 tests

This is a short check of server-side resources used by Zidy_Chatbot
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0646.32 ▲9.90
Dashboard /wp-admin3.37 ▲0.0648.72 ▼0.63
Posts /wp-admin/edit.php3.46 ▲0.1053.41 ▲6.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.96 ▼5.22
Media Library /wp-admin/upload.php3.29 ▲0.0643.33 ▲8.04
Zidy Webchat /wp-admin/options-general.php?page=zidy-webchat-options3.2534.01

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Zidy_Chatbot
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.84 ▲0.471.81 ▲0.0340.03 ▼4.63
Dashboard /wp-admin2,210 ▲195.79 ▼0.05101.69 ▼6.1640.90 ▼4.00
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0040.10 ▲2.8937.45 ▼0.20
Add New Post /wp-admin/post-new.php1,538 ▲1923.18 ▼0.05673.32 ▼4.6565.98 ▲7.94
Media Library /wp-admin/upload.php1,395 ▲74.23 ▼0.01101.79 ▼1.6744.38 ▲1.23
Zidy Webchat /wp-admin/options-general.php?page=zidy-webchat-options8372.0624.8625.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=zidy-webchat-options
    • > Notice in wp-content/plugins/zidy-chatbot/templates/admin.php+31
    Undefined index: widget_code

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/zidy-chatbot/templates/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
6 plugin tags: texting, webchat, chat widget, zidy_chatbot, zidy...

zidy-chatbot/Zidy_Chatbot.php 85% from 13 tests

The primary PHP file in "Zidy_Chatbot" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 186 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zidy-chatbot.php" instead of "Zidy_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
No dangerous file extensions were detected135 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP42410135

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity5.67
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes3100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There were not PNG files found in your plugin