Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/dilmot-live-qa-chats/Dilmot_Plugin.php+23
Undefined index: values
Server metrics [RAM: ▲0.21MB] [CPU: ▲2.24ms] Passed 4 tests
Analyzing server-side resources used by Dilmot live Q&A chats
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 43.65 ▲5.19 |
Dashboard /wp-admin | 3.56 ▲0.25 | 53.13 ▲4.12 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 52.58 ▼1.79 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 97.99 ▲5.70 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.54 ▲1.43 |
Dilmot /wp-admin/options-general.php?page=Dilmot_PluginSettings | 3.40 | 35.58 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 62 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_theysaidso_widget |
Dilmot_Plugin_ApiKey |
Dilmot_Plugin__installed |
Dilmot_Plugin_StreamsCategory |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Dilmot_Plugin_SetWpUserInQuestionForm |
Dilmot_Plugin__version |
... |
Browser metrics Passed 4 tests
Dilmot live Q&A chats: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.37 ▲0.02 | 1.70 ▼0.43 | 41.14 ▼2.73 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▼0.07 | 96.06 ▼7.74 | 44.69 ▲3.28 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.00 | 39.26 ▼0.28 | 39.45 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.98 ▼0.12 | 681.12 ▼88.16 | 66.65 ▲0.27 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.19 ▲0.06 | 95.98 ▼6.46 | 46.75 ▲1.14 |
Dilmot /wp-admin/options-general.php?page=Dilmot_PluginSettings | 964 | 2.12 | 23.02 | 46.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/dilmot-live-qa-chats/Dilmot_Plugin.php+23
Undefined index: values
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- Dilmot_Plugin__version
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% 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
- > GET request to /wp-admin/options-general.php?page=Dilmot_PluginSettings
- > Notice in wp-content/plugins/dilmot-live-qa-chats/Dilmot_Plugin.php+23
Undefined index: values
- > GET request to /wp-admin/options-general.php?page=Dilmot_PluginSettings
- > Notice in wp-content/plugins/dilmot-live-qa-chats/Dilmot_OptionsManager.php+286
Undefined index: action
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Dilmot_PluginSettings
- > Notice in wp-content/plugins/dilmot-live-qa-chats/templates/settings.php+77
Undefined variable: dilmotPluginFormValues
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Dilmot_PluginSettings
- > Notice in wp-content/plugins/dilmot-live-qa-chats/templates/settings.php+77
Trying to access array offset on value of type null
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Dilmot_PluginSettings
- > Notice in wp-content/plugins/dilmot-live-qa-chats/templates/settings.php+77
Undefined variable: dilmotPluginValidationErrors
- > GET request to /wp-admin/options-general.php?page=Dilmot_PluginSettings
- > Notice in wp-content/plugins/dilmot-live-qa-chats/templates/settings.php+78
Undefined index: hint
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Dilmot_PluginSettings
- > Notice in wp-content/plugins/dilmot-live-qa-chats/Dilmot_OptionsManager.php+334
Undefined index: prefixAddon
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=Dilmot_PluginSettings
- > Notice in wp-content/plugins/dilmot-live-qa-chats/Dilmot_OptionsManager.php+335
Undefined index: postfixAddon
SRP 0% 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 take a closer look at the following
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/dilmot-live-qa-chats/templates/admin_success.php
- > /wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/vertical_image_no_description.php
- > /wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/horizontal_image.php
- > /wp-content/plugins/dilmot-live-qa-chats/templates/closed_stream.php
- > /wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/minimal.php
- > /wp-content/plugins/dilmot-live-qa-chats/templates/common.php
- > /wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/horizontal_image_form_on_bottom.php
- > /wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/vertical_image.php
- > /wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/horizontal_image_no_description.php
- 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: templateData in wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/vertical_image.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/horizontal_image_no_description.php on line 2
- > PHP Notice
Undefined variable: templateData in wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/minimal.php on line 2
- > PHP Notice
Undefined variable: templateData in wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/horizontal_image.php on line 2
- > PHP Notice
Undefined variable: templateData in wp-content/plugins/dilmot-live-qa-chats/templates/common.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/minimal.php on line 2
- > PHP Notice
Undefined variable: templateData in wp-content/plugins/dilmot-live-qa-chats/templates/common.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dilmot-live-qa-chats/templates/common.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dilmot-live-qa-chats/templates/stream_header/horizontal_image_form_on_bottom.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/dilmot-live-qa-chats/templates/common.php on line 12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Donate link: Invalid URI found ("")
dilmot-live-qa-chats/dilmot.php 85% from 13 tests
The main PHP script in "Dilmot live Q&A chats" version 1.4 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dilmot-live-qa-chats.php" instead of "dilmot.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected12,285 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 73 | 93 | 8,926 |
JavaScript | 6 | 603 | 211 | 1,722 |
PHP | 24 | 293 | 601 | 1,153 |
SVG | 1 | 0 | 0 | 288 |
PO File | 2 | 75 | 86 | 193 |
INI | 1 | 0 | 3 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 15.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 2 | 25.00% |
▷ Concrete classes | 6 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 60.64% |
▷ Protected methods | 28 | 29.79% |
▷ Private methods | 9 | 9.57% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.73MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dilmot-error.png | 3.38KB | 0.86KB | ▼ 74.43% |
assets/screenshot-1.png | 53.93KB | 18.97KB | ▼ 64.82% |
assets/screenshot-5.png | 89.32KB | 29.47KB | ▼ 67.00% |
assets/screenshot-2.png | 116.83KB | 39.79KB | ▼ 65.94% |
assets/banner-772x250.png | 120.89KB | 52.13KB | ▼ 56.88% |