90% gf-hero

Code Review | Hero for Gravity Forms

WordPress plugin Hero for Gravity Forms scored90%from 54 tests.

About plugin

  • Plugin page: gf-hero
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.12-6.2.0
  • WordPress version: 6.3.1
  • First release: Nov 5, 2022
  • Latest release: Apr 26, 2023
  • Number of updates: 4
  • Update frequency: every 43.2 days
  • Top authors: toroguapo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

This is a short check of server-side resources used by Hero for Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.50 ▲1.26
Dashboard /wp-admin3.31 ▲0.0049.16 ▲0.34
Posts /wp-admin/edit.php3.36 ▲0.0043.41 ▼1.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.69 ▼16.43
Media Library /wp-admin/upload.php3.23 ▲0.0031.72 ▼2.36

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hero for Gravity Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.39 ▼0.222.01 ▲0.4144.26 ▲0.27
Dashboard /wp-admin2,195 ▲185.53 ▼0.1091.28 ▲0.4039.32 ▼4.85
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0236.32 ▼2.5232.60 ▼10.36
Add New Post /wp-admin/post-new.php1,541 ▲1323.29 ▲0.31651.77 ▼19.0757.37 ▲5.53
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.0291.00 ▼4.5443.89 ▼0.67

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

gf-hero/gf-hero.php Passed 13 tests

"Hero for Gravity Forms" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
26 characters long description:
Gravity Forms superpowers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,719 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS21321,816
PHP16253711,044
JavaScript522548859

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions67
▷ Named functions67100.00%
▷ Anonymous functions00.00%
Constants38
▷ Global constants38100.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
PNG images were not found in this plugin