84% gradient-button-for-elementor

Code Review | Gradient Button for Elementor

WordPress plugin Gradient Button for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: gradient-button-f...
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Oct 2, 2018
  • Latest release: Oct 20, 2023
  • Number of updates: 19
  • Update frequency: every 97.1 days
  • Top authors: bloompixel (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /16,809 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.11 ▼4.53
Dashboard /wp-admin3.32 ▼0.0257.04 ▼4.80
Posts /wp-admin/edit.php3.38 ▲0.0244.20 ▼5.41
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.32 ▲10.20
Media Library /wp-admin/upload.php3.25 ▲0.0237.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.76 ▲0.831.79 ▲0.2249.99 ▲7.20
Dashboard /wp-admin2,203 ▲265.63 ▲0.0383.71 ▼2.3845.66 ▲9.37
Posts /wp-admin/edit.php2,108 ▲52.10 ▲0.1536.20 ▲1.5130.48 ▼4.55
Add New Post /wp-admin/post-new.php1,543 ▲1418.14 ▼4.96597.46 ▼10.3372.46 ▲13.68
Media Library /wp-admin/upload.php1,402 ▲54.24 ▲0.0096.68 ▼7.8741.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP9170180800
CSS1004
JavaScript2120

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 code0.31
Average class complexity7.83
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.95
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes6
▷ Abstract classes116.67%
▷ Concrete classes583.33%
▷ Final classes120.00%
Methods44
▷ Static methods511.36%
▷ Public methods3579.55%
▷ Protected methods511.36%
▷ Private methods49.09%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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