Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.73ms] Passed 4 tests
An overview of server-side resources used by Gradient Button for Elementor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.11 ▼4.53 |
Dashboard /wp-admin | 3.32 ▼0.02 | 57.04 ▼4.80 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.20 ▼5.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 101.32 ▲10.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.24 ▲3.82 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Gradient Button for Elementor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 14.76 ▲0.83 | 1.79 ▲0.22 | 49.99 ▲7.20 |
Dashboard /wp-admin | 2,203 ▲26 | 5.63 ▲0.03 | 83.71 ▼2.38 | 45.66 ▲9.37 |
Posts /wp-admin/edit.php | 2,108 ▲5 | 2.10 ▲0.15 | 36.20 ▲1.51 | 30.48 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,543 ▲14 | 18.14 ▼4.96 | 597.46 ▼10.33 | 72.46 ▲13.68 |
Media Library /wp-admin/upload.php | 1,402 ▲5 | 4.24 ▲0.00 | 96.68 ▼7.87 | 41.21 ▼2.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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 50% 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 fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'GradientButtonElementor\\Base\\Module_Base' not found in wp-content/plugins/gradient-button-for-elementor/modules/button/module.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function GradientButtonElementor\\Compatibility\\is_wpml_string_translation_active() in wp-content/plugins/gradient-button-for-elementor/compatibility/class-gbe-wpml.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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, elementor gradient button widget, elementor gradient button, elementor addons
gradient-button-for-elementor/gradient-button-for-elementor.php Passed 13 tests
The main file in "Gradient Button for Elementor" v. 1.0.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
A simple gradient button addon for Elementor Page Builder
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin804 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 170 | 180 | 800 |
CSS | 1 | 0 | 0 | 4 |
JavaScript | 2 | 1 | 2 | 0 |
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.31 |
Average class complexity | 7.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 1 | 20.00% |
Methods | 44 | |
▷ Static methods | 5 | 11.36% |
▷ Public methods | 35 | 79.55% |
▷ Protected methods | 5 | 11.36% |
▷ Private methods | 4 | 9.09% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin