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.02MB] [CPU: ▼5.44ms] Passed 4 tests
Analyzing server-side resources used by Download Button for Elementor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 36.24 ▼0.28 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.82 ▼0.77 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.10 ▼9.31 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.00 ▼11.40 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.85 ▲0.21 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Download Button for Elementor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲47 | 13.22 ▼1.09 | 1.81 ▼0.14 | 41.02 ▼0.72 |
Dashboard /wp-admin | 2,224 ▲36 | 5.80 ▲0.94 | 96.87 ▼7.40 | 36.71 ▼7.28 |
Posts /wp-admin/edit.php | 2,106 ▲14 | 2.00 ▲0.04 | 35.03 ▼5.95 | 33.79 ▼4.20 |
Add New Post /wp-admin/post-new.php | 1,532 ▼11 | 23.37 ▲4.98 | 664.62 ▲31.82 | 54.29 ▲5.65 |
Media Library /wp-admin/upload.php | 1,409 ▲30 | 4.24 ▲0.02 | 97.57 ▼3.31 | 43.23 ▼0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/download-button-for-elementor/widgets/download-button-widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Control_Base_Multiple' not found in wp-content/plugins/download-button-for-elementor/controls/file-control.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: elementor button, elementor download button widget, elementor addons, elementor, elementor download button
download-button-for-elementor/download-button-for-elementor.php Passed 13 tests
The primary PHP file in "Download Button for Elementor" version 1.1.0 is used by WordPress to initiate all plugin functionality
82 characters long description:
A simple download button with the ability to choose a file from the media library.
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
Everything looks great! No dangerous files found in this plugin642 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 123 | 296 | 556 |
JavaScript | 1 | 14 | 8 | 86 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 5 | 20.83% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin