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.02MB] [CPU: ▼6.49ms] Passed 4 tests
An overview of server-side resources used by Leaddevs Messenger Live Chatbot
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.37 ▲0.74 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.07 ▼1.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.81 ▼5.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 82.73 ▼17.60 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.51 ▼0.59 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Leaddevs Messenger Live Chatbot
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲199 | 13.64 ▼0.73 | 8.41 ▲5.76 | 43.78 ▼1.95 |
Dashboard /wp-admin | 2,232 ▲41 | 4.91 ▼0.99 | 113.26 ▲6.58 | 42.78 ▲0.15 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.05 ▲0.04 | 33.83 ▼7.12 | 34.31 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.39 ▲0.14 | 681.65 ▼3.47 | 66.97 ▲8.30 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.21 ▲0.03 | 92.83 ▼8.08 | 40.52 ▼4.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/leaddevs-chatbot/src/public/partials/facebook-messenger-live-chat.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Leaddevs\\WPFBMessenger\\includes\\Application\\WPFBMessengerChatBot' not found in wp-content/plugins/leaddevs-chatbot/src/admin/partials/facebook-messenger-live-chat-admin-display.php:15
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
leaddevs-chatbot/leaddevs-chatbot.php 77% from 13 tests
"Leaddevs Messenger Live Chatbot" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,398 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 291 | 819 | 1,114 |
CSS | 1 | 49 | 32 | 215 |
JavaScript | 2 | 14 | 66 | 47 |
JSON | 2 | 0 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 10.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 5 | 7.14% |
▷ Public methods | 63 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 10.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
4 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/admin/images/messenger.png | 29.03KB | 28.30KB | ▼ 2.50% |
src/assets/screenshot-1.PNG | 33.63KB | 13.92KB | ▼ 58.61% |
src/admin/images/messenger_chat_logo.png | 23.17KB | 9.62KB | ▼ 58.47% |
src/assets/screenshot-2.PNG | 35.83KB | 15.40KB | ▼ 57.03% |