Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.57MB] [CPU: ▼16.07ms] Passed 4 tests
A check of server-side resources used by Group chat for WordPress - Minnit Chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.81 ▼2.28 |
Dashboard /wp-admin | 3.41 ▲0.11 | 45.85 ▼3.45 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 42.46 ▼4.30 |
Add New Post /wp-admin/post-new.php | 3.29 ▼2.60 | 32.02 ▼54.23 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 34.04 ▲0.81 |
Minnit Chat /wp-admin/options-general.php?page=minnit-chat | 3.28 | 29.82 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Group chat for WordPress - Minnit Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲109 | 13.50 ▼1.22 | 6.50 ▲4.72 | 47.36 ▲2.78 |
Dashboard /wp-admin | 2,221 ▲44 | 5.82 ▲0.12 | 89.12 ▼18.78 | 41.73 ▼5.76 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.24 ▲0.28 | 36.76 ▲0.33 | 33.05 ▲0.79 |
Add New Post /wp-admin/post-new.php | 6,431 ▲4,905 | 29.47 ▲6.22 | 838.04 ▲173.28 | 36.96 ▼27.06 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.45 ▲0.27 | 100.79 ▲4.70 | 40.34 ▼1.07 |
Minnit Chat /wp-admin/options-general.php?page=minnit-chat | 1,233 | 2.51 | 43.11 | 29.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 18 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=minnit-chat
- > Notice in wp-content/plugins/minnit-chat/minnitchat.php+413
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/minnit-chat/minnitchat.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/minnit-chat/sso_custom_generate_ssotoken.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/minnit-chat/sso_oauth2_authorize_template.php:46
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: sso chat, chatroom, chat, chat group, chatbox...
minnit-chat/minnitchat.php 85% from 13 tests
This is the main PHP file of "Group chat for WordPress - Minnit Chat" version 4.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("minnit-chat.php" instead of "minnitchat.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 220 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,430 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 4 | 31 | 644 |
PHP | 3 | 69 | 43 | 640 |
CSS | 1 | 24 | 0 | 146 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin