Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-chatbot/inc/MobileMonkeyApi.php+103
Undefined index: bot_id
Server metrics [RAM: ▼1.18MB] [CPU: ▼47.35ms] Passed 4 tests
A check of server-side resources used by WP-Chatbot for Messenger
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 45.06 ▲5.28 |
Dashboard /wp-admin | 2.76 ▼0.54 | 10.88 ▼38.37 |
Posts /wp-admin/edit.php | 2.77 ▼0.59 | 9.96 ▼39.20 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.12 | 12.53 ▼89.63 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 12.81 ▼22.20 |
Server storage [IO: ▲0.91MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 9 new options
New WordPress options |
---|
htcc_plugin_details |
widget_recent-comments |
theysaidso_admin_options |
htcc_options |
widget_recent-posts |
mobilemonkey_token |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP-Chatbot for Messenger
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲130 | 14.35 ▲0.01 | 1.55 ▼0.03 | 33.48 ▼5.54 |
Dashboard /wp-admin | 2,281 ▲113 | 5.54 ▼0.05 | 94.60 ▲3.77 | 106.43 ▲60.37 |
Posts /wp-admin/edit.php | 2,181 ▲99 | 2.00 ▼0.01 | 34.80 ▼4.18 | 43.14 ▲10.18 |
Add New Post /wp-admin/post-new.php | 1,599 ▲71 | 23.12 ▲2.16 | 680.69 ▲61.07 | 64.22 ▼6.69 |
Media Library /wp-admin/upload.php | 1,483 ▲83 | 4.31 ▲0.14 | 114.25 ▼12.41 | 79.14 ▲21.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/wp-chatbot/inc/MobileMonkeyApi.php+103
Undefined index: bot_id
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- htcc_options
- htcc_plugin_details
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-chatbot/admin/commons/ht-cc-admin-fb-button-notice.php
- > /wp-content/plugins/wp-chatbot/admin/commons/ht-cc-admin-fb-button-error.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: text in wp-content/plugins/wp-chatbot/admin/commons/ht-cc-admin-fb-button-notice.php on line 13
- > PHP Notice
Undefined variable: count in wp-content/plugins/wp-chatbot/admin/commons/ht-cc-admin-limit-tooltip.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-chatbot/admin/commons/ht-cc-admin-top-banner.php:133
- > PHP Notice
Undefined variable: text in wp-content/plugins/wp-chatbot/admin/commons/ht-cc-admin-fb-button-error.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-chatbot/admin/contact_page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-chatbot/admin/commons/ht-cc-admin-notice-not-connected.php:167
- > PHP Notice
Undefined variable: subscribe in wp-content/plugins/wp-chatbot/admin/commons/ht-cc-admin-limit-tooltip.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wp-chatbot/wp-chatbot.php 92% from 13 tests
"WP-Chatbot for Messenger" version 4.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 174 characters long)
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
There were no executable files found in this plugin10,674 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 664 | 626 | 5,900 |
CSS | 3 | 214 | 34 | 3,324 |
JavaScript | 3 | 166 | 55 | 1,326 |
SVG | 4 | 0 | 1 | 124 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 28.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 155 | |
▷ Static methods | 10 | 6.45% |
▷ Public methods | 134 | 86.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 21 | 13.55% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 13 | |
▷ Global constants | 13 | 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
13 PNG files occupy 0.15MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/iphone_x.png | 41.36KB | 15.12KB | ▼ 63.45% |
admin/assets/img/mobilemonkey_logo.png | 23.96KB | 14.44KB | ▼ 39.72% |
admin/assets/img/pacebook_logo.png | 3.38KB | 2.35KB | ▼ 30.40% |
admin/assets/img/exclamation.png | 13.50KB | 11.06KB | ▼ 18.01% |
admin/assets/img/logo.png | 5.99KB | 4.15KB | ▼ 30.82% |