89% ui-elements-gravity-forms

Code Review | UI Elements for Gravity Forms

WordPress plugin UI Elements for Gravity Forms scored89%from 54 tests.

About plugin

  • Plugin page: ui-elements-gravi...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.3
  • WordPress version: 6.3.1
  • First release: Nov 5, 2020
  • Latest release: Nov 9, 2020
  • Number of updates: 16
  • Update frequency: every 0.3 days
  • Top authors: deanoakley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.45ms] Passed 4 tests

Server-side resources used by UI Elements for Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0551.38 ▲14.57
Dashboard /wp-admin3.33 ▲0.0256.89 ▲9.21
Posts /wp-admin/edit.php3.38 ▲0.0245.08 ▼7.49
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.43 ▼20.97
Media Library /wp-admin/upload.php3.25 ▲0.0232.67 ▲1.47

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

UI Elements for Gravity Forms: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.74 ▲0.352.14 ▲0.4544.01 ▲2.37
Dashboard /wp-admin2,216 ▲395.82 ▲0.1796.23 ▲8.1443.18 ▲0.95
Posts /wp-admin/edit.php2,126 ▲262.28 ▲0.2537.23 ▼3.4631.09 ▼4.35
Add New Post /wp-admin/post-new.php1,544 ▲1823.37 ▲0.31618.37 ▲22.6433.61 ▼19.66
Media Library /wp-admin/upload.php1,418 ▲154.46 ▲0.26105.19 ▲5.1745.70 ▼1.50

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: gravity, plugin, wordpress, forms, gravity-forms

ui-elements-gravity-forms/ui-elements.php 77% from 13 tests

"UI Elements for Gravity Forms" version 1.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ui-elements-gravity-forms.php" instead of "ui-elements.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 300 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,005 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS3528658
PHP44878275
JavaScript211352
JSON10020

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.07
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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