Benchmarks
Plugin footprint 65% 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.15MB] [CPU: ▼28.42ms] Passed 4 tests
An overview of server-side resources used by ImbaChat
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.95 ▲0.49 | 1,046.17 ▲1,004.09 |
Dashboard /wp-admin | 3.82 ▲0.52 | 31.34 ▼22.12 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 30.91 ▼16.66 |
Add New Post /wp-admin/post-new.php | 3.82 ▼2.07 | 31.49 ▼69.32 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 29.61 ▼5.56 |
Get Started /wp-admin/admin.php?page=imbachat-setup-help | 3.82 | 32.89 |
Integration Settings /wp-admin/admin.php?page=imbachat-hooks-settings | 3.82 | 31.53 |
Users Settings /wp-admin/admin.php?page=imbachat-users-settings | 3.82 | 29.64 |
ImbaChat Settings /wp-admin/admin.php?page=imbachat-settings | 3.82 | 31.59 |
Server storage [IO: ▲4.36MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 467 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_my_custom_widget |
IMCH_LANG |
widget_recent-comments |
imbachat_db_version |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for ImbaChat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,176 ▲414 | 13.46 ▲0.25 | 10.33 ▲6.30 | 42.42 ▼2.38 |
Dashboard /wp-admin | 2,344 ▲167 | 5.74 ▲0.16 | 130.55 ▲32.64 | 46.41 ▲3.20 |
Posts /wp-admin/edit.php | 2,255 ▲155 | 2.19 ▲0.24 | 39.26 ▲0.57 | 44.28 ▲5.43 |
Add New Post /wp-admin/post-new.php | 1,800 ▲274 | 23.92 ▲0.91 | 585.77 ▼81.80 | 47.02 ▼24.68 |
Media Library /wp-admin/upload.php | 1,549 ▲155 | 4.27 ▼0.03 | 100.45 ▲3.22 | 44.09 ▼0.34 |
Get Started /wp-admin/admin.php?page=imbachat-setup-help | 1,316 | 3.35 | 63.49 | 36.77 |
Integration Settings /wp-admin/admin.php?page=imbachat-hooks-settings | 995 | 2.16 | 30.00 | 32.00 |
Users Settings /wp-admin/admin.php?page=imbachat-users-settings | 1,069 | 2.16 | 28.84 | 32.62 |
ImbaChat Settings /wp-admin/admin.php?page=imbachat-settings | 1,135 | 1.95 | 36.06 | 53.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/imbachat-widget/includes/class/class-im-cmd-options.php+182
Undefined offset: 0
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- db_upgraded
- imbachat_db_version
- widget_my_custom_widget
- can_compress_scripts
- IMCH_LANG
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=imbachat-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/imbachat-widget/includes/class/class-im-cmd-options.php+182
Undefined offset: 0
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=imbachat-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/imbachat-widget/includes/class/class-im-cmd-options.php+182
Trying to get property 'id' of non-object
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=imbachat-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/imbachat-widget/includes/class/class-im-cmd-options.php+182
Trying to get property 'description' of non-object
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=imbachat-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/imbachat-widget/includes/class/class-im-cmd-options.php+182
Undefined offset: 1
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=imbachat-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/imbachat-widget/includes/class/class-im-cmd-options.php+182
Undefined offset: 2
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=imbachat-settings
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/imbachat-widget/includes/class/class-im-cmd-options.php+182
Undefined offset: 3
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/imbachat-widget/view/ic_functions.php
- > /wp-content/plugins/imbachat-widget/view/html-im-chat.php
- 58× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/imbachat-widget/widgets/ic_widgets.php:5
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/imbachat-widget/CMB2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/imbachat-widget/includes/admin/views/cmb2/html-imbachat-settings.php:46
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/imbachat-widget/CMB2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Warning
Use of undefined constant IMBACHAT__PLUGIN_DIR - assumed 'IMBACHAT__PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/imbachat-widget/admin/admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/imbachat-widget/CMB2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/imbachat-widget/view/admin_menu/get_started.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/imbachat-widget/view/admin_menu/links.php:1
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/imbachat-widget/CMB2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/imbachat-widget/CMB2/includes/types/CMB2_Type_Multicheck.php:13
- > 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)
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid URI found ("paypal.me/TrapenokVictor")
- Tags: There are too many tags (22 tag instead of maximum 10)
- Screenshots: These screenshots need descriptions #10, #6, #7, #8, #9 in imbachat-widget/assets to your readme.txt
imbachat-widget/ImbaChatWidget.php 85% from 13 tests
This is the main PHP file of "ImbaChat" version 3.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("imbachat-widget.php" instead of "ImbaChatWidget.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 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
Success! There were no dangerous files found in this plugin61,667 lines of code in 294 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 126 | 15,884 | 21,259 | 36,048 |
PHP | 105 | 2,786 | 7,335 | 11,841 |
CSS | 18 | 281 | 1,211 | 5,091 |
JSON | 4 | 0 | 0 | 4,318 |
JavaScript | 14 | 412 | 693 | 1,853 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 5 | 322 | 0 | 1,001 |
Bourne Shell | 1 | 33 | 27 | 84 |
SVG | 4 | 0 | 0 | 20 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 17.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 92 | |
▷ Abstract classes | 9 | 9.78% |
▷ Concrete classes | 83 | 90.22% |
▷ Final classes | 0 | 0.00% |
Methods | 688 | |
▷ Static methods | 176 | 25.58% |
▷ Public methods | 581 | 84.45% |
▷ Protected methods | 93 | 13.52% |
▷ Private methods | 14 | 2.03% |
Functions | 92 | |
▷ Named functions | 81 | 88.04% |
▷ Anonymous functions | 11 | 11.96% |
Constants | 20 | |
▷ Global constants | 11 | 55.00% |
▷ Class constants | 9 | 45.00% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
22 PNG files occupy 0.51MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
CMB2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
CMB2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
CMB2/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
CMB2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/assets/images/EAS.PNG | 47.10KB | 12.33KB | ▼ 73.81% |