Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.87ms] Passed 4 tests
A check of server-side resources used by Droit Elementor Addons - Widgets, Blocks, Templates Library For Elementor Builder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 34.36 ▼3.37 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.43 ▲1.93 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.45 ▼6.71 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 86.93 ▼10.60 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.78 ▲1.22 |
Server storage [IO: ▲8.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 289 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Droit Elementor Addons - Widgets, Blocks, Templates Library For Elementor Builder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.34 ▼0.01 | 1.58 ▲0.01 | 42.48 ▲0.72 |
Dashboard /wp-admin | 2,219 ▲39 | 5.62 ▼0.03 | 88.16 ▼0.39 | 41.75 ▼4.25 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.10 ▲0.13 | 35.98 ▼2.88 | 30.67 ▼4.93 |
Add New Post /wp-admin/post-new.php | 1,560 ▲29 | 18.15 ▼4.81 | 616.51 ▲12.26 | 102.78 ▲42.93 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.22 ▼0.02 | 97.75 ▲0.54 | 44.00 ▲0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/droit-elementor-addons/modules/templates/views/template-library-search.php
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/droit-elementor-addons/modules/wpml/wpml_support.php:302
- > PHP Fatal error
Uncaught Error: Call to undefined function drdt_core() in wp-content/plugins/droit-elementor-addons/templates/admin/api.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/droit-elementor-addons/functions.php:181
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/droit-elementor-addons/templates/admin/form-data.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/droit-elementor-addons/functions.php:181
- > PHP Fatal error
Uncaught Error: Call to undefined function drdt_core() in wp-content/plugins/droit-elementor-addons/modules/templates/views/template-library-header.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function drdt_core() in wp-content/plugins/droit-elementor-addons/templates/admin/reset_tool.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/droit-elementor-addons/templates/admin/dashboard.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function drdt_core() in wp-content/plugins/droit-elementor-addons/templates/admin/pro_page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function drdt_core() in wp-content/plugins/droit-elementor-addons/templates/admin/elements.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in droit-elementor-addons/assets to your readme.txt
droit-elementor-addons/plugins.php 77% from 13 tests
"Droit Elementor Addons - Widgets, Blocks, Templates Library For Elementor Builder" version 3.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("droit-elementor-addons.php" instead of "plugins.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin90,368 lines of code in 244 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 4,450 | 723 | 34,545 |
CSS | 65 | 4,018 | 130 | 27,098 |
SVG | 33 | 1 | 2 | 10,514 |
PO File | 6 | 4,872 | 12,216 | 10,435 |
Sass | 18 | 507 | 34 | 4,782 |
JavaScript | 30 | 306 | 370 | 2,994 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 15.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 68 | 100.00% |
▷ Final classes | 1 | 1.47% |
Methods | 832 | |
▷ Static methods | 88 | 10.58% |
▷ Public methods | 567 | 68.15% |
▷ Protected methods | 259 | 31.13% |
▷ Private methods | 6 | 0.72% |
Functions | 23 | |
▷ Named functions | 15 | 65.22% |
▷ Anonymous functions | 8 | 34.78% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.53MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/d_e_a.png | 0.57KB | 0.55KB | ▼ 4.27% |
assets/images/setting_shape.png | 290.06KB | 145.74KB | ▼ 49.76% |
assets/images/dashboard_intro_bg.png | 56.71KB | 25.20KB | ▼ 55.57% |
assets/images/info_box_shape_1.png | 0.60KB | 0.43KB | ▼ 28.36% |
assets/images/play_icon.png | 0.55KB | 0.41KB | ▼ 24.82% |