84% gf-wufoo-forms

Code Review | Gravity Forms + Wufoo

WordPress plugin Gravity Forms + Wufoo scored84%from 54 tests.

About plugin

  • Plugin page: gf-wufoo-forms
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2017
  • Latest release: Aug 24, 2017
  • Number of updates: 11
  • Update frequency: every 0.1 days
  • Top authors: RevolutionMizu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Gravity Forms + Wufoo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.07 ▼5.05
Dashboard /wp-admin3.31 ▲0.0144.02 ▼1.41
Posts /wp-admin/edit.php3.36 ▲0.0044.80 ▼2.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.21 ▼0.53
Media Library /wp-admin/upload.php3.23 ▲0.0033.02 ▼0.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Gravity Forms + Wufoo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.121.72 ▼0.2540.71 ▼7.34
Dashboard /wp-admin2,203 ▲154.87 ▼1.03107.09 ▼8.2540.15 ▼7.14
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0149.24 ▲15.6544.14 ▲7.40
Add New Post /wp-admin/post-new.php1,519 ▼123.20 ▲0.15668.85 ▲21.6069.01 ▲13.69
Media Library /wp-admin/upload.php1,388 ▼04.20 ▲0.0297.11 ▼0.9044.74 ▲3.58

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/gf-wufoo-forms/class-gfwufooaddon.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gf-wufoo-forms/gravityforms-wufoo.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: wufoo, gravity forms, gravity, forms

gf-wufoo-forms/gravityforms-wufoo.php 92% from 13 tests

The entry point to "Gravity Forms + Wufoo" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gf-wufoo-forms.php" instead of "gravityforms-wufoo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin732 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6163239618
Markdown2700114

PHP code Passed 2 tests

This is a very shot review 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.16
Average class complexity3.45
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods62
▷ Static methods23.23%
▷ Public methods5283.87%
▷ Protected methods46.45%
▷ Private methods69.68%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin