89% custombot

Code Review | CustomBot

WordPress plugin CustomBot scored89%from 54 tests.

About plugin

  • Plugin page: custombot
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 18, 2022
  • Latest release: Jun 22, 2022
  • Number of updates: 22
  • Update frequency: every 4.4 days
  • Top authors: ofeknakar01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.14ms] Passed 4 tests

An overview of server-side resources used by CustomBot
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1242.67 ▼0.36
Dashboard /wp-admin3.44 ▲0.1453.79 ▲3.35
Posts /wp-admin/edit.php3.49 ▲0.1450.24 ▲1.02
Add New Post /wp-admin/post-new.php6.02 ▲0.1489.92 ▼16.56
Media Library /wp-admin/upload.php3.37 ▲0.1444.42 ▲6.79

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by CustomBot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12414.63 ▲0.281.80 ▲0.0143.58 ▲0.61
Dashboard /wp-admin2,247 ▲675.52 ▼0.0788.53 ▼1.5576.38 ▲36.57
Posts /wp-admin/edit.php2,231 ▲1311.98 ▼0.0134.95 ▼0.4636.51 ▲1.56
Add New Post /wp-admin/post-new.php1,741 ▲21521.82 ▼0.99710.38 ▲3.2632.52 ▼28.92
Media Library /wp-admin/upload.php1,458 ▲554.12 ▼0.06106.14 ▼0.8268.99 ▲17.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: custom chatbot, custombot, chat, bot, custom chat...

custombot/ChatBotPlugin.php 77% from 13 tests

"CustomBot" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custombot.php" instead of "ChatBotPlugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 243 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6,917 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS3419253,628
JavaScript51,856652,583
PHP141432687
SVG20019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.77
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
32 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
avatars/avatar1.png3.96KB2.08KB▼ 47.44%
icons/iconOptions.png0.87KB0.52KB▼ 39.57%
open.png1.74KB0.97KB▼ 44.25%
icons/iconList.png0.35KB0.24KB▼ 32.02%
userIcon.png1.83KB0.83KB▼ 54.28%