Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.86MB] [CPU: ▲8.83ms] Passed 4 tests
Analyzing server-side resources used by Wise Chat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.46 ▲1.00 | 46.75 ▲5.21 |
Dashboard /wp-admin | 5.50 ▲2.20 | 60.12 ▲13.31 |
Posts /wp-admin/edit.php | 5.55 ▲2.19 | 65.35 ▲20.97 |
Add New Post /wp-admin/post-new.php | 8.02 ▲2.13 | 93.79 ▼2.94 |
Media Library /wp-admin/upload.php | 5.34 ▲2.11 | 57.03 ▲19.74 |
Wise Chat Settings /wp-admin/options-general.php?page=wise-chat-admin | 5.34 | 56.15 |
Server storage [IO: ▲13.57MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 683 new files
Database: 7 new tables, 9 new options
New tables |
---|
wp_wise_chat_bans |
wp_wise_chat_messages |
wp_wise_chat_users |
wp_wise_chat_channels |
wp_wise_chat_kicks |
wp_wise_chat_channel_users |
wp_wise_chat_actions |
New WordPress options |
---|
wise_chat_options_name |
wise_chat_last_name_id |
widget_recent-posts |
widget_wisechatwidget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Wise Chat
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,295 ▲534 | 18.36 ▲3.60 | 16.37 ▲14.53 | 42.36 ▼4.94 |
Dashboard /wp-admin | 2,468 ▲290 | 7.56 ▲2.00 | 134.54 ▲34.38 | 38.91 ▼1.25 |
Posts /wp-admin/edit.php | 2,393 ▲290 | 5.25 ▲3.28 | 57.96 ▲23.08 | 31.17 ▼0.94 |
Add New Post /wp-admin/post-new.php | 6,496 ▲4,968 | 30.65 ▲7.69 | 935.16 ▲248.94 | 39.06 ▼16.21 |
Media Library /wp-admin/upload.php | 1,530 ▲130 | 5.40 ▲1.17 | 101.96 ▲2.53 | 46.49 ▲2.87 |
Wise Chat Settings /wp-admin/options-general.php?page=wise-chat-admin | 9,333 | 5.96 | 136.76 | 97.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_wisechatwidget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 37× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WiseChatAbstractTab' not found in wp-content/plugins/wise-chat/src/admin/WiseChatChannelsTab.php:8
- > PHP Fatal error
Uncaught Error: Class 'WiseChatAbstractTab' not found in wp-content/plugins/wise-chat/src/admin/WiseChatBansTab.php:8
- > PHP Fatal error
Uncaught Error: Class 'WiseChatAbstractCommand' not found in wp-content/plugins/wise-chat/src/commands/WiseChatUnbanCommand.php:8
- > PHP Fatal error
Uncaught Error: Class 'WiseChatContainer' not found in wp-content/plugins/wise-chat/src/endpoints/WiseChatEndpoint.php:3
- > PHP Fatal error
Uncaught Error: Class 'WiseChatAbstractTab' not found in wp-content/plugins/wise-chat/src/admin/WiseChatLocalizationTab.php:8
- > PHP Fatal error
Uncaught Error: Class 'WiseChatAbstractTab' not found in wp-content/plugins/wise-chat/src/admin/WiseChatGeneralTab.php:8
- > PHP Fatal error
Uncaught Error: Class 'WiseChatAbstractTab' not found in wp-content/plugins/wise-chat/src/admin/WiseChatAppearanceTab.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wise-chat/src/WiseChatWidget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WiseChatContainer' not found in wp-content/plugins/wise-chat/src/commands/WiseChatCommandsResolver.php:3
- > PHP Fatal error
Uncaught Error: Class 'WiseChatAbstractCommand' not found in wp-content/plugins/wise-chat/src/commands/WiseChatBanCommand.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 37 tag instead of maximum 10
wise-chat/wise-chat-core.php 85% from 13 tests
"Wise Chat" version 3.1.7'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:
- Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wise-chat.php" instead of "wise-chat-core.php")
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
No dangerous file extensions were detected102,982 lines of code in 296 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 35 | 13,279 | 9,325 | 56,659 |
JSON | 6 | 0 | 0 | 23,571 |
PHP | 107 | 2,278 | 4,171 | 10,371 |
CSS | 6 | 164 | 104 | 4,255 |
Sass | 26 | 719 | 32 | 3,239 |
JSX | 43 | 562 | 39 | 3,109 |
SVG | 71 | 0 | 64 | 1,715 |
Markdown | 1 | 22 | 0 | 56 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 11.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 104 | |
▷ Abstract classes | 2 | 1.92% |
▷ Concrete classes | 102 | 98.08% |
▷ Final classes | 0 | 0.00% |
Methods | 817 | |
▷ Static methods | 57 | 6.98% |
▷ Public methods | 678 | 82.99% |
▷ Protected methods | 32 | 3.92% |
▷ Private methods | 107 | 13.10% |
Functions | 33 | |
▷ Named functions | 22 | 66.67% |
▷ Anonymous functions | 11 | 33.33% |
Constants | 48 | |
▷ Global constants | 4 | 8.33% |
▷ Class constants | 44 | 91.67% |
▷ Public constants | 44 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
293 compressed PNG files occupy 1.85MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gfx/flags/mt.png | 0.41KB | 0.57KB | 0.00% |
gfx/flags/za.png | 0.63KB | 0.75KB | 0.00% |
gfx/flags/ae.png | 0.40KB | 0.54KB | 0.00% |
gfx/flags/dz.png | 0.57KB | 0.65KB | 0.00% |
assets/screenshot-06.png | 72.88KB | 24.45KB | ▼ 66.45% |