Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼1.81MB] [CPU: ▼46.89ms] Passed 4 tests
A check of server-side resources used by melibo Chatbot
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 7.11 ▼33.02 |
Dashboard /wp-admin | 2.20 ▼1.11 | 12.18 ▼34.84 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 10.39 ▼36.84 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.89 ▼82.85 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 6.90 ▼27.36 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for melibo Chatbot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲159 | 15.17 ▲0.78 | 25.48 ▲23.67 | 40.43 ▼6.76 |
Dashboard /wp-admin | 2,277 ▲89 | 5.09 ▼0.81 | 106.94 ▼6.38 | 74.85 ▲23.58 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.31 ▲0.14 | 40.66 ▲5.46 | 34.02 ▼0.48 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.53 ▲5.86 | 674.96 ▼14.64 | 58.63 ▼3.99 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.35 ▲0.20 | 96.05 ▼5.33 | 40.03 ▼5.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the admin.css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/melibo-chatbot/includes/notice.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: type in wp-content/plugins/melibo-chatbot/admin/inc/notice.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/melibo-chatbot/melibo-chatbot.php:14
- > PHP Notice
Undefined variable: type in wp-content/plugins/melibo-chatbot/admin/inc/notice.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
melibo-chatbot/melibo-chatbot.php Passed 13 tests
The principal PHP file in "melibo Chatbot" v. 1.4.3 is loaded by WordPress automatically on each request
50 characters long description:
add your melibo chatbot to your WordPress for free
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,039 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 114 | 18 | 653 |
PO File | 1 | 74 | 76 | 246 |
CSS | 3 | 21 | 0 | 113 |
JavaScript | 1 | 0 | 2 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 9.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 10 | 22.22% |
▷ Public methods | 31 | 68.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 31.11% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 1.54MB with 1.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/inc/img/academy_knowledge.png | 175.28KB | 62.74KB | ▼ 64.21% |
admin/inc/img/first_steps_5.png | 297.31KB | 108.37KB | ▼ 63.55% |
admin/inc/img/logo_transparent128x128.png | 22.67KB | 3.52KB | ▼ 84.46% |
admin/inc/img/first_steps_3.png | 46.20KB | 17.06KB | ▼ 63.08% |
admin/inc/img/first_steps_6.png | 270.89KB | 95.81KB | ▼ 64.63% |