94% gravitate-gforms-api-helper

Code Review | Gravitate Gforms API Helper

WordPress plugin Gravitate Gforms API Helper scored 94% from 54 tests.

About plugin

  • Plugin page: gravitate-gforms-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 5.9.2
  • First release: Jun 11, 2014
  • Latest release: Jun 25, 2014
  • Number of updates: 10
  • Update frequency: every 56.5 days
  • Top authors: Gravitate (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 1,268 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼307.85ms] Passed 4 tests

An overview of server-side resources used by Gravitate Gforms API Helper
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0452.15 ▲0.20
Dashboard /wp-admin3.45 ▲0.0435.74 ▲2.48
Posts /wp-admin/edit.php3.68 ▲0.0337.80 ▼0.76
Add New Post /wp-admin/post-new.php6.91 ▼0.0697.19 ▼1,230.60
Media Library /wp-admin/upload.php3.33 ▲0.0324.68 ▼0.25

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Gravitate Gforms API Helper
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1916.26 ▲0.205.92 ▲0.132.32 ▼0.04
Dashboard /wp-admin2,888 ▲346.06 ▼0.13114.69 ▼25.30154.98 ▼5.16
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0063.17 ▼1.20143.03 ▼1.74
Add New Post /wp-admin/post-new.php1,773 ▲2121.70 ▲0.12503.18 ▲55.40153.45 ▼4.13
Media Library /wp-admin/upload.php1,698 ▲35.50 ▼0.03137.43 ▼5.65188.13 ▼0.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Please fix the following
  • 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/gravitate-gforms-api-helper/gravitate-gforms-api-helper.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: api, gravity forms, gravitate

gravitate-gforms-api-helper/gravitate-gforms-api-helper.php Passed 13 tests

This is the main PHP file of "Gravitate Gforms API Helper" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
97 characters long description:
This is a Plugin Helper to allow you to easily setup an External API on Gravity Form Submissions.

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
Success! There were no dangerous files found in this plugin142 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15151142

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected