Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.58ms] Passed 4 tests
This is a short check of server-side resources used by Botsplash Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.88 ▼1.63 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.34 ▼6.51 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.28 ▼2.85 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.01 ▼15.32 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.98 ▲2.59 |
Botsplash Chat /wp-admin/options-general.php?page=botsplash_wp_admin | 3.23 | 29.05 |
Server storage [IO: ▲0.92MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
botsplash_wp_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Botsplash Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.81 ▲0.18 | 1.80 ▼0.17 | 40.82 ▼3.56 |
Dashboard /wp-admin | 2,210 ▲18 | 5.88 ▲0.93 | 101.70 ▼17.07 | 39.58 ▼10.14 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.03 | 40.28 ▲4.20 | 34.36 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.62 ▼5.70 | 662.77 ▼32.31 | 53.40 ▼3.20 |
Media Library /wp-admin/upload.php | 1,383 ▼2 | 4.22 ▲0.01 | 97.18 ▼1.95 | 43.08 ▼1.23 |
Botsplash Chat /wp-admin/options-general.php?page=botsplash_wp_admin | 1,344 | 9.45 | 295.73 | 53.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/botsplash-chat/botsplash_wp.php
- > /wp-content/plugins/botsplash-chat/includes/botsplash_wp_code_block.php
- > /wp-content/plugins/botsplash-chat/includes/botsplash_wp_appid_section.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: appId in wp-content/plugins/botsplash-chat/includes/botsplash_wp_code_block.php on line 11
- > PHP Notice
Undefined variable: appId in wp-content/plugins/botsplash-chat/includes/botsplash_wp_appid_field.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/botsplash-chat/includes/botsplash_wp_render_options_page.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function submit_button() in wp-content/plugins/botsplash-chat/includes/botsplash_wp_appid_field.php:11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (botsplash chat settings screen), #2 (create new botsplash.com account)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== botsplash-chat ===
)
botsplash-chat/botsplash_wp.php 92% from 13 tests
The main PHP file in "Botsplash Chat" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("botsplash-chat.php" instead of "botsplash_wp.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
Success! There were no dangerous files found in this plugin287 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 69 | 233 | 245 |
Markdown | 1 | 26 | 0 | 42 |
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.25 |
Average class complexity | 2.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 4 | 26.67% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.90MB with 0.59MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 252.68KB | 74.47KB | ▼ 70.53% |
assets/screenshot-2.png | 665.56KB | 178.81KB | ▼ 73.13% |
images/logo-150.png | 7.69KB | 3.77KB | ▼ 50.95% |