90% zingit-chatbot

Code Review | Zingit Chatbot

WordPress plugin Zingit Chatbot scored90%from 54 tests.

About plugin

  • Plugin page: zingit-chatbot
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2020
  • Latest release: Nov 5, 2020
  • Number of updates: 5
  • Update frequency: every 53.8 days
  • Top authors: zingitadmin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /562 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.26ms] Passed 4 tests

An overview of server-side resources used by Zingit Chatbot
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.67 ▲0.87
Dashboard /wp-admin3.32 ▲0.0249.88 ▼0.94
Posts /wp-admin/edit.php3.37 ▲0.0244.08 ▼0.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0277.94 ▼14.83
Media Library /wp-admin/upload.php3.24 ▲0.0236.26 ▼1.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zingit Chatbot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,988 ▲24213.72 ▼0.679.15 ▲7.3244.64 ▲1.10
Dashboard /wp-admin2,221 ▲335.88 ▲0.0296.76 ▼9.9937.64 ▼5.59
Posts /wp-admin/edit.php2,098 ▲92.02 ▼0.1233.28 ▼1.7734.87 ▼1.31
Add New Post /wp-admin/post-new.php1,552 ▲1018.41 ▲0.12596.60 ▼57.8265.75 ▲13.60
Media Library /wp-admin/upload.php1,397 ▲64.22 ▲0.0692.74 ▼7.7341.44 ▼3.49

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: chatbot, bot, chat, zingit

zingit-chatbot/zingit-chatbot.php Passed 13 tests

"Zingit Chatbot" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
56 characters long description:
Zingit chatbot helps to convert visitors into customers.

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
There were no executable files found in this plugin79 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1251479

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
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
There are no PNG files in this plugin