94% gravity-forms-find-my-forms

Code Review | Gravity Forms Find My Forms

WordPress plugin Gravity Forms Find My Forms scored 94% from 54 tests.

About plugin

  • Plugin page: gravity-forms-fin...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 5.9.2
  • First release: May 17, 2013
  • Latest release: May 18, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: benhays (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active / 1,260 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼312.17ms] Passed 4 tests

Analyzing server-side resources used by Gravity Forms Find My Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0167.99 ▲17.19
Dashboard /wp-admin3.41 ▲0.0134.82 ▼54.74
Posts /wp-admin/edit.php3.65 ▲0.0137.63 ▼6.66
Add New Post /wp-admin/post-new.php6.88 ▼0.0999.29 ▼1,190.20
Media Library /wp-admin/upload.php3.30 ▲0.0031.28 ▲2.94

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Gravity Forms Find My Forms: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.74 ▲0.085.49 ▼0.672.15 ▼0.10
Dashboard /wp-admin2,892 ▲346.12 ▼0.13117.93 ▼14.86218.37 ▲54.92
Posts /wp-admin/edit.php2,684 ▼43.04 ▼0.2089.76 ▲29.50163.55 ▲25.82
Add New Post /wp-admin/post-new.php1,711 ▲5020.84 ▼0.91450.12 ▼14.65163.63 ▼17.96
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.00152.03 ▼147.43193.00 ▲7.71

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-find-my-forms/gravity-forms-find-my-forms.php:12

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

gravity-forms-find-my-forms/gravity-forms-find-my-forms.php Passed 13 tests

"Gravity Forms Find My Forms" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Generate a list of all your forms and which pages they're being used on

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 detected123 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12116102
Markdown110021

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.24
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected