84% gravityforms-es

Code Review | Gravity Forms (Spanish)

WordPress plugin Gravity Forms (Spanish) scored 84% from 54 tests.

About plugin

  • Plugin page: gravityforms-es
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 5.8.1
  • First release: Aug 23, 2013
  • Latest release: Aug 23, 2018
  • Number of updates: 118
  • Update frequency: every 24.6 days
  • Top authors: closemarketing (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active / 14,454 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.36MB] [CPU: ▼184.32ms] Passed 4 tests

Server-side resources used by Gravity Forms (Spanish)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼0.4812.70 ▼10.26
Dashboard /wp-admin2.29 ▼0.7612.54 ▼34.34
Posts /wp-admin/edit.php2.29 ▼0.8213.20 ▼34.64
Add New Post /wp-admin/post-new.php2.29 ▼3.1412.13 ▼643.05
Media Library /wp-admin/upload.php2.29 ▼0.7113.09 ▼25.24

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms (Spanish)
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.16 ▲0.399.11 ▼2.6547.57 ▲2.00
Dashboard /wp-admin2,970 ▲365.91 ▼0.03132.04 ▼20.48112.77 ▲2.43
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0276.05 ▲8.1689.34 ▲1.78
Add New Post /wp-admin/post-new.php1,683 ▲6818.46 ▼2.60403.36 ▲107.25107.02 ▲0.91
Media Library /wp-admin/upload.php1,807 ▼05.03 ▲0.00150.00 ▼14.11118.54 ▲1.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/gravityforms-es/gravityforms-es.php+108
    Use of undefined constant WPLANG - assumed 'WPLANG' (this will throw an Error in a future version of PHP)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix 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/gravityforms-es/gravityforms-es.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

gravityforms-es/gravityforms-es.php 92% from 13 tests

"Gravity Forms (Spanish)" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.9" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin7,707 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File12,3452,6105,261
PHP246932,400
JavaScript25546

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin