Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.66MB] [CPU: ▲3.09ms] 75% from 4 tests
Server-side resources used by Widget Detector for Elementor
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,907.41ms on /wp-admin/admin.php?page=wde-addons)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 44.78 ▲4.72 |
Dashboard /wp-admin | 3.99 ▲0.69 | 51.94 ▲2.44 |
Posts /wp-admin/edit.php | 4.04 ▲0.69 | 52.71 ▲5.17 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 88.14 ▲0.02 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 42.34 ▲7.37 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.11 | 41.62 |
Add-Ons /wp-admin/admin.php?page=wde-addons | 4.07 | 1,907.41 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.27 | 37.77 |
Support Forum /wp-admin/admin.php?page=wde-wp-support-forum | 3.81 | 33.89 |
Upgrade ➤ /wp-admin/admin.php?page=wde-pricing | 3.98 | 38.15 |
Contact Us /wp-admin/admin.php?page=wde-contact | 3.96 | 35.58 |
Server storage [IO: ▲5.72MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 295 new files
Database: no new tables, 12 new options
New WordPress options |
---|
wde_editor_hover |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
db_upgraded |
winter_mvc_active_plugins |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Widget Detector for Elementor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.26 ▼1.11 | 4.38 ▲2.43 | 41.29 ▼3.80 |
Dashboard /wp-admin | 2,247 ▲59 | 5.88 ▲0.02 | 99.30 ▼15.12 | 43.80 ▲1.93 |
Posts /wp-admin/edit.php | 2,144 ▲55 | 2.10 ▲0.07 | 42.34 ▲3.67 | 38.91 ▲3.66 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 23.30 ▲5.81 | 658.86 ▼41.65 | 52.52 ▼6.88 |
Media Library /wp-admin/upload.php | 1,443 ▲55 | 4.22 ▼0.04 | 97.05 ▼6.85 | 44.89 ▼2.20 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,445 | 1.82 | 28.28 | 37.15 |
Add-Ons /wp-admin/admin.php?page=wde-addons | 1,105 | 2.67 | 67.58 | 38.97 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,140 | 1.85 | 25.24 | 28.03 |
Support Forum /wp-admin/admin.php?page=wde-wp-support-forum | 1,774 | 3.78 | 81.61 | 93.24 |
Upgrade ➤ /wp-admin/admin.php?page=wde-pricing | 1,640 | 3.46 | 69.32 | 63.12 |
Contact Us /wp-admin/admin.php?page=wde-contact | 1,559 | 3.44 | 75.03 | 28.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 12 options
- fs_accounts
- widget_recent-posts
- winter_mvc_active_plugins
- theysaidso_admin_options
- fs_debug_mode
- widget_theysaidso_widget
- widget_detector_elementor_reviews_installed_on
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 11× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/widget-detector-elementor/application/controllers/Wde_used_images.php
- > /wp-content/plugins/widget-detector-elementor/application/controllers/Wde_used_missing.php
- > /wp-content/plugins/widget-detector-elementor/application/controllers/Wde_settings.php
- > /wp-content/plugins/widget-detector-elementor/application/controllers/Wde_used_templates.php
- > /wp-content/plugins/widget-detector-elementor/public/partials/widget-detector-elementor-public-display.php
- > /wp-content/plugins/widget-detector-elementor/application/controllers/Wde_used_widgets.php
- > /wp-content/plugins/widget-detector-elementor/application/controllers/Wde.php
- > /wp-content/plugins/widget-detector-elementor/application/controllers/Wde_ajax.php
- > /wp-content/plugins/widget-detector-elementor/admin/partials/widget-detector-elementor-admin-display.php
- > /wp-content/plugins/widget-detector-elementor/application/controllers/Wde_plugins_not_in_use.php
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: field in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/DROPDOWN.php on line 11
- > PHP Warning
Creating default object from empty value in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/INPUTBOX.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/NUMBER.php:26
- > PHP Notice
Undefined variable: field in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/NUMBER.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/INPUTBOX.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/widget-detector-elementor/application/views/wde_plugins_not_in_use/index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/CHECKBOX.php:24
- > PHP Notice
Undefined variable: field in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/INPUTBOX.php on line 11
- > PHP Warning
Creating default object from empty value in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/CHECKBOX.php on line 14
- > PHP Notice
Trying to get property 'idfield' of non-object in wp-content/plugins/widget-detector-elementor/application/views/fields_edit/DROPDOWN.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Elementor Widgets Used Per Page), #2 (Elementor Widgets Positions on Page), #3 (Elementor Widgets Name Inside Editor on Hover), #4 (Detect Images Used in Elementor Structure Per Page)
- Donate link: Invalid URI ("elementinvader.com")
- Plugin Name: Please specify the plugin name on the first line (
=== widget-detector-elementor ===
)
widget-detector-elementor/widget-detector-elementor.php 92% from 13 tests
This is the main PHP file of "Widget Detector for Elementor" version 1.2.7, 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:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected47,345 lines of code in 220 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 168 | 10,304 | 20,512 | 40,020 |
PO File | 19 | 1,520 | 2,119 | 5,041 |
Markdown | 5 | 253 | 0 | 992 |
JavaScript | 9 | 196 | 187 | 678 |
CSS | 17 | 56 | 21 | 442 |
Sass | 1 | 30 | 0 | 163 |
HTML | 1 | 2 | 0 | 9 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 67.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 2 | 2.53% |
▷ Concrete classes | 77 | 97.47% |
▷ Final classes | 0 | 0.00% |
Methods | 1,497 | |
▷ Static methods | 220 | 14.70% |
▷ Public methods | 1,075 | 71.81% |
▷ Protected methods | 41 | 2.74% |
▷ Private methods | 381 | 25.45% |
Functions | 197 | |
▷ Named functions | 194 | 98.48% |
▷ Anonymous functions | 3 | 1.52% |
Constants | 157 | |
▷ Global constants | 107 | 68.15% |
▷ Class constants | 50 | 31.85% |
▷ Public constants | 50 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon-256x256.png | 14.66KB | 6.37KB | ▼ 56.53% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |