Benchmarks
Plugin footprint 65% 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.05MB] [CPU: ▼9.29ms] Passed 4 tests
Analyzing server-side resources used by Single-user-chat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 26.40 ▼15.63 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.54 ▲0.35 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 45.37 ▼1.38 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.27 ▼20.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.68 ▲3.33 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 13 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_chat_sessions |
wp_chat_data |
New WordPress options |
---|
single_user_chat |
widget_theysaidso_widget |
theysaidso_admin_options |
admin |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Single-user-chat: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 14.74 ▲0.36 | 2.50 ▲0.69 | 43.47 ▲1.49 |
Dashboard /wp-admin | 2,225 ▲33 | 4.82 ▼0.10 | 99.70 ▼14.92 | 40.67 ▼3.04 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.06 ▲0.04 | 33.91 ▼0.86 | 33.65 ▼1.64 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 18.23 ▼4.91 | 591.04 ▼12.54 | 79.18 ▲17.61 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.20 ▼0.00 | 97.82 ▲1.93 | 43.33 ▼0.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables were found after uninstall: 2 tables
- wp_chat_sessions
- wp_chat_data
- This plugin does not fully uninstall, leaving 8 options in the database
- single_user_chat
- admin
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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 | 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/single-user-chat/include/multi-chat-scetion.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_avatar() in wp-content/plugins/single-user-chat/include/chat-section.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/single-user-chat/include/chat-section.php on line 1
- > PHP Notice
Undefined variable: a in wp-content/plugins/single-user-chat/include/chat-section.php on line 1
- > PHP Notice
Undefined variable: display_name in wp-content/plugins/single-user-chat/include/chat-section.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Attributes that need to be fixed:
- Screenshots: A description for screenshot #5 is missing in single-user-chat/assets to your readme.txt
single-user-chat/single-user-chat.php 92% from 13 tests
"Single-user-chat" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 170 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin759 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 17 | 18 | 347 |
JavaScript | 2 | 40 | 2 | 221 |
CSS | 2 | 8 | 9 | 191 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
3 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 19.86KB | 5.14KB | ▼ 74.11% |
screenshot-3.png | 76.96KB | 23.15KB | ▼ 69.92% |
screenshot-4.png | 12.42KB | 4.20KB | ▼ 66.15% |