84% elementor-gravity-forms

Code Review | Gravity Forms styler for Elementor Page Builder

WordPress plugin Gravity Forms styler for Elementor Page Builder scored84%from 54 tests.

About plugin

  • Plugin page: elementor-gravity...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Nov 24, 2017
  • Latest release: Nov 24, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: re_enter_rupok (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /18,332 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
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.42ms] Passed 4 tests

Analyzing server-side resources used by Gravity Forms styler for Elementor Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.54 ▼2.34
Dashboard /wp-admin3.39 ▲0.0952.09 ▼16.36
Posts /wp-admin/edit.php3.44 ▲0.0951.08 ▼3.14
Add New Post /wp-admin/post-new.php5.97 ▲0.0985.21 ▼15.84
Media Library /wp-admin/upload.php3.31 ▲0.0939.98 ▲3.36

Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Gravity Forms styler for Elementor Page Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲9513.20 ▼1.101.87 ▼0.2243.90 ▼3.38
Dashboard /wp-admin2,233 ▲455.91 ▲0.03110.04 ▼14.5872.07 ▲27.79
Posts /wp-admin/edit.php2,131 ▲422.05 ▲0.0247.06 ▲8.6551.91 ▲18.41
Add New Post /wp-admin/post-new.php1,549 ▲2123.16 ▲4.96664.35 ▼18.3155.40 ▼3.38
Media Library /wp-admin/upload.php1,430 ▲424.22 ▲0.0399.14 ▼15.3566.28 ▲20.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Elementor\\add_action() in wp-content/plugins/elementor-gravity-forms/includes/elementor-helper.php:14

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: gravity form, gravity form styler, elementor addon, elementor widget, elementor

elementor-gravity-forms/elementor-gravity-form.php 92% from 13 tests

The main PHP script in "Gravity Forms styler for Elementor Page Builder" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("elementor-gravity-forms.php" instead of "elementor-gravity-form.php")

Code Analysis Passed 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 detected7,452 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript39467495,935
PHP61581141,177
CSS32313340

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.67
▷ Minimum class complexity2.00
▷ Maximum class complexity31.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods1482.35%
▷ Protected methods317.65%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/ea-icon.png1.15KB0.26KB▼ 77.51%