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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼10.62ms] Passed 4 tests
An overview of server-side resources used by Brosix Live Chat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.09 | 41.27 ▼7.87 |
Dashboard /wp-admin | 3.43 ▲0.04 | 49.06 ▼23.19 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 50.51 ▼0.96 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.10 | 87.86 ▼10.44 |
Media Library /wp-admin/upload.php | 3.35 ▲0.08 | 39.94 ▲4.56 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
brosix-chat-network |
brosix-chat-id |
widget_recent-posts |
brosix-chat-status |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Brosix Live Chat
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.35 ▼0.01 | 1.99 ▲0.34 | 44.44 ▲2.30 |
Dashboard /wp-admin | 2,202 ▲22 | 5.68 ▼0.03 | 81.56 ▼17.53 | 101.61 ▲57.62 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 2.02 ▲0.04 | 36.67 ▲0.10 | 43.80 ▲8.71 |
Add New Post /wp-admin/post-new.php | 1,700 ▲172 | 22.29 ▼0.79 | 657.76 ▼24.43 | 70.92 ▲12.19 |
Media Library /wp-admin/upload.php | 1,416 ▲22 | 4.17 ▼0.07 | 99.33 ▼14.17 | 77.06 ▲31.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- brosix-chat-status
- can_compress_scripts
- brosix-chat-id
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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 output text when accessed directly:
- > /wp-content/plugins/brosix-live-chat/public/partials/brosix-livechat-public-display.php
- > /wp-content/plugins/brosix-live-chat/admin/partials/brosix-livechat-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 to be fixed:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== brosix-live-chat ===
)
brosix-live-chat/brosix-live-chat.php 92% from 13 tests
The main PHP file in "Brosix Live Chat" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 detected2,056 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 32 | 13 | 1,033 |
PHP | 12 | 154 | 537 | 672 |
JavaScript | 2 | 28 | 54 | 184 |
SVG | 11 | 0 | 1 | 167 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 19 | |
▷ Named functions | 19 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/brosix-logo.png | 9.70KB | 5.35KB | ▼ 44.86% |
admin/images/brosix-chat.png | 107.96KB | 49.84KB | ▼ 53.83% |
admin/images/brosix-chat-icon.png | 0.57KB | 0.28KB | ▼ 51.28% |