Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.41ms] Passed 4 tests
Analyzing server-side resources used by ChatBot
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 44.58 ▲2.27 |
Dashboard /wp-admin | 3.35 ▼0.04 | 52.59 ▼18.41 |
Posts /wp-admin/edit.php | 3.40 ▲0.00 | 50.91 ▼1.11 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.00 | 85.51 ▼18.41 |
Media Library /wp-admin/upload.php | 3.27 ▲0.00 | 38.89 ▲0.28 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for ChatBot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 14.14 ▼0.23 | 1.77 ▼0.04 | 45.50 ▲0.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▼0.09 | 94.96 ▼0.59 | 41.39 ▼4.01 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.03 ▲0.02 | 34.36 ▼3.45 | 35.62 ▼1.10 |
Add New Post /wp-admin/post-new.php | 1,531 ▲2 | 23.14 ▼0.11 | 679.87 ▼1.66 | 59.42 ▲8.67 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.15 ▼0.07 | 100.14 ▲0.09 | 44.10 ▼0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sa-woo-smart-chatbot/sa-woo-smart-chatbot.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
6 plugin tags: bot, woocommerce, wordpress chatbot, woocommerce chatbot, live chat...
sa-woo-smart-chatbot/sa-woo-smart-chatbot.php Passed 13 tests
The main file in "ChatBot" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Smartly deals customers on your website to find products according to their needs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,272 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 78 | 6 | 669 |
PHP | 4 | 90 | 45 | 360 |
JavaScript | 2 | 86 | 25 | 242 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/settings.png | 1.63KB | 1.37KB | ▼ 15.66% |
assets/imgs/close.png | 0.56KB | 0.36KB | ▼ 35.88% |
assets/imgs/robot.png | 34.36KB | 12.45KB | ▼ 63.77% |
assets/imgs/send.png | 0.75KB | 0.48KB | ▼ 35.90% |
assets/imgs/user.png | 2.21KB | 1.80KB | ▼ 18.78% |