Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.05ms] Passed 4 tests
An overview of server-side resources used by MisterChat
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 27.72 ▼12.69 |
Dashboard /wp-admin | 3.39 ▲0.09 | 46.71 ▼3.14 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.86 ▼2.10 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 89.97 ▼10.00 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.97 ▼2.38 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
mister_chat_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MisterChat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲917 | 14.27 ▼0.08 | 51.54 ▲49.91 | 40.88 ▼1.54 |
Dashboard /wp-admin | 2,214 ▲34 | 5.51 ▼0.16 | 85.63 ▼4.68 | 80.49 ▲35.82 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.00 ▼0.04 | 39.10 ▼5.75 | 37.30 ▼4.02 |
Add New Post /wp-admin/post-new.php | 1,543 ▲17 | 23.12 ▼0.43 | 731.56 ▲53.95 | 54.10 ▲0.51 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.14 ▼0.11 | 107.78 ▼2.02 | 78.40 ▲33.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- mister_chat_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/misterchat/public/partials/mister_chat-public-display.php
- > /wp-content/plugins/misterchat/admin/partials/mister_chat-admin-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/misterchat/admin/class-mister_chat-admin.php:340
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #4, #5, #6, #7 in misterchat/assets to your readme.txt
misterchat/mister_chat.php 85% from 13 tests
"MisterChat" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("misterchat.php" instead of "mister_chat.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Good job! No executable or dangerous file extensions detected462 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 188 | 574 | 336 |
PO File | 1 | 21 | 27 | 96 |
CSS | 3 | 3 | 8 | 24 |
JavaScript | 2 | 2 | 30 | 6 |
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.09 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.17MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 36.13KB | 10.48KB | ▼ 71.00% |
assets/screenshot-1.png | 98.78KB | 31.10KB | ▼ 68.51% |
admin/images/mister_chat.png | 0.45KB | 0.59KB | 0.00% |
admin/images/mister_logo.png | 39.86KB | 13.00KB | ▼ 67.39% |