Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/incognito-chat/admin/settings.php+58
Non-static method INCTCHATWIDGET_Settings::_getDefaultOptions() should not be called statically
Server metrics [RAM: ▲0.13MB] [CPU: ▼9.32ms] Passed 4 tests
This is a short check of server-side resources used by Incognito Chat - Free Live Chat Plugin (chat roulette)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 46.28 ▲7.47 |
Dashboard /wp-admin | 3.44 ▲0.09 | 47.33 ▼16.51 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.96 ▼5.80 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 83.30 ▼14.44 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.04 ▼0.53 |
Incognito chat widget /wp-admin/options-general.php?page=incognito-chat-widget-options | 3.35 | 31.63 |
Server storage [IO: ▲0.79MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
inctchatWidgetOptions |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Incognito Chat - Free Live Chat Plugin (chat roulette)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 13.28 ▼1.31 | 2.59 ▲1.01 | 45.89 ▲4.26 |
Dashboard /wp-admin | 2,218 ▲44 | 4.88 ▼0.69 | 87.40 ▼1.40 | 38.00 ▼2.18 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.31 ▲0.32 | 34.49 ▼1.24 | 32.12 ▼4.50 |
Add New Post /wp-admin/post-new.php | 1,559 ▲31 | 23.38 ▲0.20 | 597.61 ▼28.57 | 33.38 ▼35.57 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.41 ▲0.25 | 87.99 ▼10.27 | 40.23 ▼2.84 |
Incognito chat widget /wp-admin/options-general.php?page=incognito-chat-widget-options | 1,513 | 2.53 | 41.38 | 75.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/incognito-chat/admin/settings/form/list-pictures.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/incognito-chat/incognito-chat-widget.php:14
- > PHP Warning
scandir(INCTCHATWIDGET_DIRpublic/assets/img/widgets/): failed to open dir: No such file or directory in wp-content/plugins/incognito-chat/admin/settings/form/list-pictures.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/incognito-chat/admin/settings/widget/index.php:9
- > PHP Notice
Trying to get property 'mobileDetecthelper' of non-object in wp-content/plugins/incognito-chat/public/includes/view/fast-api/init.php on line 3
- > PHP Warning
Use of undefined constant INCTCHATWIDGET_DIR - assumed 'INCTCHATWIDGET_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/incognito-chat/admin/settings/form/list-pictures.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/incognito-chat/public/includes/wp-actions/init-js-api.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/incognito-chat/public/includes/helpers/main.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/incognito-chat/admin/settings/form/index.php:9
- > PHP Fatal error
Uncaught Error: Call to a member function isMobile() on null in wp-content/plugins/incognito-chat/public/includes/view/fast-api/init.php:3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/incognito-chat/admin/settings/form/list-pictures.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Main chat window), #2 (Universal design), #3 (Chat widget (page settings)), #4 (Compatible with mobile devices)
incognito-chat/incognito-chat-widget.php 92% from 13 tests
This is the main PHP file of "Incognito Chat - Free Live Chat Plugin (chat roulette)" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("incognito-chat.php" instead of "incognito-chat-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin891 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 152 | 512 | 764 |
CSS | 1 | 3 | 0 | 112 |
JavaScript | 1 | 1 | 0 | 15 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.80 |
Average class complexity | 25.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 120.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 11 | 24.44% |
▷ Public methods | 41 | 91.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.89% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 4 | 30.77% |
▷ Class constants | 9 | 69.23% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
30 PNG files occupy 0.22MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/widgets/12.png | 7.64KB | 4.32KB | ▼ 43.52% |
public/assets/img/widgets/2.png | 25.35KB | 9.51KB | ▼ 62.50% |
public/assets/img/widgets/16.png | 4.63KB | 2.59KB | ▼ 44.04% |
public/assets/img/widgets/14.png | 6.65KB | 3.00KB | ▼ 54.93% |
public/assets/img/widgets/20.png | 5.53KB | 2.84KB | ▼ 48.60% |