84% artibot

Code Review | ArtiBot Free Chat Bot for WordPress WebSites

WordPress plugin ArtiBot Free Chat Bot for WordPress WebSites scored84%from 54 tests.

About plugin

  • Plugin page: artibot
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 6.3.1
  • First release: Jul 2, 2018
  • Latest release: May 26, 2020
  • Number of updates: 30
  • Update frequency: every 23.2 days
  • Top authors: artibot (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /16,319 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by ArtiBot Free Chat Bot for WordPress WebSites
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.80 ▲2.90
Dashboard /wp-admin3.32 ▼0.0248.24 ▼12.27
Posts /wp-admin/edit.php3.37 ▲0.0150.45 ▼0.26
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.52 ▼8.77
Media Library /wp-admin/upload.php3.24 ▲0.0138.27 ▼10.84

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for ArtiBot Free Chat Bot for WordPress WebSites
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.23 ▼1.151.78 ▲0.1039.81 ▼0.82
Dashboard /wp-admin2,224 ▲394.87 ▼1.0797.77 ▼5.3676.62 ▲34.95
Posts /wp-admin/edit.php2,110 ▲212.01 ▼0.0439.57 ▲2.5134.74 ▲2.28
Add New Post /wp-admin/post-new.php1,681 ▲13222.38 ▼0.46704.99 ▲39.4756.01 ▼1.86
Media Library /wp-admin/upload.php1,397 ▲154.13 ▼0.06101.45 ▲1.6876.13 ▲33.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/artibot/artibot.php

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 34 tag instead of maximum 10
Please take inspiration from this readme.txt

artibot/artibot.php 92% from 13 tests

The main PHP file in "ArtiBot Free Chat Bot for WordPress WebSites" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 259 characters long)

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 detected155 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP32414125
CSS14029
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods333.33%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.30MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png21.38KB7.70KB▼ 63.97%
screenshot-1.png137.84KB41.00KB▼ 70.25%
screenshot-2.png151.22KB42.24KB▼ 72.07%