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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.67 ▼0.36 |
Dashboard /wp-admin | 3.44 ▲0.14 | 53.79 ▲3.35 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 50.24 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 89.92 ▼16.56 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 44.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 14.63 ▲0.28 | 1.80 ▲0.01 | 43.58 ▲0.61 |
Dashboard /wp-admin | 2,247 ▲67 | 5.52 ▼0.07 | 88.53 ▼1.55 | 76.38 ▲36.57 |
Posts /wp-admin/edit.php | 2,231 ▲131 | 1.98 ▼0.01 | 34.95 ▼0.46 | 36.51 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,741 ▲215 | 21.82 ▼0.99 | 710.38 ▲3.26 | 32.52 ▼28.92 |
Media Library /wp-admin/upload.php | 1,458 ▲55 | 4.12 ▼0.06 | 106.14 ▼0.82 | 68.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 419 | 25 | 3,628 |
JavaScript | 5 | 1,856 | 65 | 2,583 |
PHP | 1 | 414 | 32 | 687 |
SVG | 2 | 0 | 0 | 19 |
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 code | 0.09 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
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
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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
avatars/avatar1.png | 3.96KB | 2.08KB | ▼ 47.44% |
icons/iconOptions.png | 0.87KB | 0.52KB | ▼ 39.57% |
open.png | 1.74KB | 0.97KB | ▼ 44.25% |
icons/iconList.png | 0.35KB | 0.24KB | ▼ 32.02% |
userIcon.png | 1.83KB | 0.83KB | ▼ 54.28% |