Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼8.60ms] Passed 4 tests
A check of server-side resources used by MChat User Chat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 42.17 ▲2.98 |
Dashboard /wp-admin | 3.47 ▲0.16 | 49.65 ▼0.42 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 46.87 ▼3.71 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 87.63 ▼30.74 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 40.82 ▲0.49 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 28 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_wpmchat_chat |
wp_wpmchat_chatmesg |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
wpmchat_ver |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for MChat User Chat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲221 | 14.23 ▼0.36 | 14.93 ▲12.84 | 39.81 ▼13.43 |
Dashboard /wp-admin | 2,222 ▲40 | 4.84 ▼0.07 | 114.20 ▼16.77 | 40.03 ▼5.31 |
Posts /wp-admin/edit.php | 2,065 ▼24 | 2.01 ▼0.01 | 39.73 ▲0.50 | 33.52 ▼2.41 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.10 ▼0.10 | 671.66 ▼9.08 | 84.50 ▲26.87 |
Media Library /wp-admin/upload.php | 1,401 ▲13 | 4.20 ▼0.04 | 104.95 ▼16.91 | 51.84 ▲8.24 |
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
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_wpmchat_chatmesg
- wp_wpmchat_chat
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- wpmchat_ver
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 15× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/mchat/includes/templates/front/index.php
- > /wp-content/plugins/mchat/includes/templates/admin/wpmchat_main.php
- > /wp-content/plugins/mchat/includes/templates/index.php
- > /wp-content/plugins/mchat/assets/css/index.php
- > /wp-content/plugins/mchat/includes/wp_mchat_front.php
- > /wp-content/plugins/mchat/assets/img/index.php
- > /wp-content/plugins/mchat/index.php
- > /wp-content/plugins/mchat/assets/index.php
- > /wp-content/plugins/mchat/includes/templates/front/wpmchat_inbox.php
- > /wp-content/plugins/mchat/includes/index.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/mchat/includes/wp_mchat_admin.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% 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
These attributes need your attention:
- Tags: There are too many tags (16 tag instead of maximum 10)
mchat/wp_mchat.php 77% from 13 tests
The principal PHP file in "MChat User Chat" v. 1.0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/lang")
- Main file name: Name the main plugin file the same as the plugin slug ("mchat.php" instead of "wp_mchat.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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin1,351 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 184 | 134 | 950 |
JavaScript | 1 | 25 | 3 | 316 |
CSS | 2 | 20 | 0 | 85 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 50.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 6.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/close_pop.png | 1.91KB | 1.57KB | ▼ 17.98% |