Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/unique-chat/uniquechatse.php+170
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.93MB] [CPU: ▼55.53ms] Passed 4 tests
Analyzing server-side resources used by Unique Chat SE
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 5.16 ▼34.53 |
Dashboard /wp-admin | 2.09 ▼1.26 | 6.84 ▼54.47 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 7.12 ▼39.95 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.55 ▼93.17 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.28 ▼29.52 |
Unique Chat SE /wp-admin/options-general.php?page=uniquechatse_settings | 2.09 | 6.05 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Unique Chat SE
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.31 ▼1.02 | 1.70 ▲0.15 | 41.06 ▲1.63 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼1.05 | 108.38 ▲6.21 | 38.57 ▼4.18 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.05 | 39.97 ▲5.87 | 35.03 ▲0.49 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.26 ▲0.76 | 594.14 ▼74.58 | 56.31 ▲1.59 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.17 ▼0.03 | 99.30 ▲0.72 | 42.60 ▼2.12 |
Unique Chat SE /wp-admin/options-general.php?page=uniquechatse_settings | 788 | 2.20 | 26.18 | 23.67 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/unique-chat/uniquechatse.php+170
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=uniquechatse_settings
- > Notice in wp-content/plugins/unique-chat/uniquechatse.php+146
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/unique-chat/uniquechatse.php:158
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: live chat
unique-chat/uniquechatse.php 92% from 13 tests
"Unique Chat SE" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("unique-chat.php" instead of "uniquechatse.php")
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 detected125 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 40 | 112 |
JavaScript | 1 | 2 | 2 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/uniquechatse.png | 6.47KB | 3.54KB | ▼ 45.33% |