Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼1.12MB] [CPU: ▼43.61ms] Passed 4 tests
Analyzing server-side resources used by Virtual Bot
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▼0.60 | 14.94 ▼25.00 |
Dashboard /wp-admin | 2.90 ▼0.41 | 19.26 ▼33.51 |
Posts /wp-admin/edit.php | 2.90 ▼0.46 | 16.80 ▼27.69 |
Add New Post /wp-admin/post-new.php | 2.90 ▼2.99 | 17.76 ▼88.24 |
Media Library /wp-admin/upload.php | 2.90 ▼0.33 | 16.38 ▼17.74 |
VirtualBot /wp-admin/admin.php?page=chatbot | 2.90 | 18.41 |
edit /wp-admin/admin.php?page=chatbot-edit-bot | 2.90 | 22.18 |
conversation /wp-admin/admin.php?page=chatbot-bot-conversation | 2.90 | 16.25 |
Add new /wp-admin/admin.php?page=chatbot-add-new | 2.90 | 16.61 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 57 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_virtual_bot |
wp_virtual_bot_conversations |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Virtual Bot
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 13.37 ▼1.03 | 1.65 ▼0.31 | 44.25 ▼0.60 |
Dashboard /wp-admin | 2,256 ▲71 | 5.08 ▼0.73 | 118.37 ▲19.29 | 39.96 ▼0.77 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.19 ▲0.14 | 48.59 ▲5.65 | 28.76 ▼7.02 |
Add New Post /wp-admin/post-new.php | 1,570 ▲28 | 18.56 ▲0.43 | 622.98 ▼0.73 | 37.53 ▼14.40 |
Media Library /wp-admin/upload.php | 1,435 ▲44 | 4.38 ▲0.09 | 104.16 ▲8.13 | 37.79 ▼6.05 |
VirtualBot /wp-admin/admin.php?page=chatbot | 1,398 | 9.32 | 318.46 | 94.37 |
edit /wp-admin/admin.php?page=chatbot-edit-bot | 1,290 | 3.20 | 43.86 | 94.28 |
conversation /wp-admin/admin.php?page=chatbot-bot-conversation | 906 | 2.28 | 39.10 | 29.56 |
Add new /wp-admin/admin.php?page=chatbot-add-new | 1,295 | 3.21 | 42.08 | 111.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- The uninstall procedure failed, leaving 2 tables in the database
- wp_virtual_bot
- wp_virtual_bot_conversations
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 29 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chatbot-add-new
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chatbot-add-new
- > Notice in wp-content/plugins/virtual-bot/virtual-bot.php+87
Undefined variable: wp
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chatbot-add-new
- > Notice in wp-content/plugins/virtual-bot/virtual-bot.php+87
Trying to get property 'query_vars' of non-object
- > GET request to /wp-admin/admin.php?page=chatbot-bot-conversation
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/virtual-bot/virtual-bot.php+364
A non-numeric value encountered
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=chatbot-bot-conversation
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/admin.php?page=chatbot-edit-bot
- > Javascript (severe) in unknown
/wp-content/plugins/virtual-bot/js/editorEdit.js?ver=6.3.1 80:67 Uncaught TypeError: Cannot read properties of undefined (reading 'name')
Optimizations
Plugin configuration 96% from 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
7 plugin tags: assistant, bot, chat-bot, virtual-bot, chatbot...
virtual-bot/virtual-bot.php 92% from 13 tests
The main PHP file in "Virtual Bot" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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 detected7,104 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 1,923 | 217 | 4,894 |
CSS | 2 | 81 | 2 | 1,378 |
PHP | 6 | 359 | 38 | 832 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
40 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/editor/avatars/avatar4.png | 4.32KB | 2.21KB | ▼ 48.85% |
inc/dashboard/imgs/deleteB.png | 0.50KB | 0.41KB | ▼ 16.93% |
inc/editor/avatars/avatar7.png | 4.15KB | 2.11KB | ▼ 49.12% |
inc/dashboard/imgs/rate-1.png | 0.72KB | 0.56KB | ▼ 22.13% |
inc/editor/imgs/right.png | 0.61KB | 0.50KB | ▼ 16.91% |