94% gravity-forms-remove-entries

Code Review | Gravity Forms Remove Entries

WordPress plugin Gravity Forms Remove Entries scored 94% from 54 tests.

About plugin

  • Plugin page: gravity-forms-rem...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.5
  • WordPress version: 5.8.1
  • First release: May 7, 2013
  • Latest release: May 7, 2018
  • Number of updates: 16
  • Update frequency: every 114.1 days
  • Top authors: benhays (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active / 9,159 total downloads

Benchmarks

Plugin footprint Passed 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: ▼145.23ms] Passed 4 tests

Server-side resources used by Gravity Forms Remove Entries
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.58 ▲9.27
Dashboard /wp-admin3.06 ▲0.0136.68 ▼8.47
Posts /wp-admin/edit.php3.11 ▲0.0146.90 ▲2.17
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.16 ▼571.42
Media Library /wp-admin/upload.php3.01 ▲0.0029.10 ▼3.20

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Gravity Forms Remove Entries
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.89 ▼0.027.91 ▼0.2346.53 ▼4.13
Dashboard /wp-admin2,967 ▲365.84 ▼0.23143.80 ▲6.11114.46 ▼1.62
Posts /wp-admin/edit.php2,736 ▼02.70 ▲0.0163.58 ▼3.1693.17 ▲2.58
Add New Post /wp-admin/post-new.php1,672 ▲2918.87 ▲0.55361.19 ▲16.29104.05 ▼6.23
Media Library /wp-admin/upload.php1,804 ▼35.02 ▲0.01143.11 ▼14.01116.07 ▼4.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-remove-entries/gravity-forms-remove-entries.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

gravity-forms-remove-entries/gravity-forms-remove-entries.php Passed 13 tests

The main PHP file in "Gravity Forms Remove Entries" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
100 characters long description:
Remove multiple entries from Gravity Forms. Optionally select a timeframe of removals or remove all.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected303 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16139269
Markdown116034

PHP code Passed 2 tests

Analyzing 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.22
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods1785.00%
▷ Public methods840.00%
▷ Protected methods315.00%
▷ Private methods945.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin