84% gravity-forms-reset-button

Code Review | Gravity Forms Reset Button

WordPress plugin Gravity Forms Reset Button scored84%from 54 tests.

About plugin

  • Plugin page: gravity-forms-res...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9
  • WordPress version: 6.3.1
  • First release: Apr 16, 2014
  • Latest release: Apr 16, 2014
  • Number of updates: 2
  • Update frequency: every 24.5 days
  • Top authors: phpmypython (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

200+ active /2,899 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.75ms] Passed 4 tests

Server-side resources used by Gravity Forms Reset Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.01 ▲1.58
Dashboard /wp-admin3.31 ▲0.0143.07 ▼9.05
Posts /wp-admin/edit.php3.36 ▲0.0045.28 ▲1.23
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.72 ▼20.77
Media Library /wp-admin/upload.php3.23 ▲0.0035.92 ▲2.62

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gravity Forms Reset Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲13713.70 ▼0.895.62 ▲3.6241.79 ▼2.07
Dashboard /wp-admin2,208 ▲204.90 ▲0.01105.75 ▼12.7639.66 ▼5.79
Posts /wp-admin/edit.php2,091 ▲22.01 ▲0.0236.01 ▼3.8430.57 ▼5.66
Add New Post /wp-admin/post-new.php1,542 ▲2318.43 ▼4.87645.05 ▼32.4658.72 ▲5.90
Media Library /wp-admin/upload.php1,390 ▼14.25 ▲0.0493.05 ▼3.7441.51 ▼1.57

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-reset-button/gravity-forms-reset-button.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: gravity forms, reset button

gravity-forms-reset-button/gravity-forms-reset-button.php Passed 13 tests

The primary PHP file in "Gravity Forms Reset Button" version 1.0 is used by WordPress to initiate all plugin functionality
47 characters long description:
Adds a reset button capability to gravity forms

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
Everything looks great! No dangerous files found in this plugin33 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111023
PHP14910

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin