84% forms-3rdparty-gravity-forms

Code Review | Forms: 3rd-Party Resend Gravity Forms

WordPress plugin Forms: 3rd-Party Resend Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: forms-3rdparty-gr...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7
  • WordPress version: 6.3.1
  • First release: May 16, 2017
  • Latest release: Oct 29, 2017
  • Number of updates: 4
  • Update frequency: every 44.0 days
  • Top authors: zaus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /993 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by Forms: 3rd-Party Resend Gravity Forms
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.73 ▼4.99
Dashboard /wp-admin3.31 ▲0.0149.54 ▲0.57
Posts /wp-admin/edit.php3.36 ▲0.0155.01 ▼6.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.16 ▼4.55
Media Library /wp-admin/upload.php3.24 ▲0.0139.77 ▲5.25

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Forms: 3rd-Party Resend Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.28 ▼0.011.67 ▼0.0240.14 ▼1.76
Dashboard /wp-admin2,195 ▲185.50 ▼0.0186.94 ▼11.2738.10 ▼1.32
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0340.20 ▼0.8334.32 ▼4.90
Add New Post /wp-admin/post-new.php1,529 ▲223.13 ▲0.36673.07 ▲33.4657.68 ▼2.15
Media Library /wp-admin/upload.php1,406 ▲124.19 ▲0.02107.24 ▲10.4044.21 ▼3.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 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/forms-3rdparty-gravity-forms/forms-3rdparty-resend-gf.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: crm, form, remote request, gf, resend request...

forms-3rdparty-gravity-forms/forms-3rdparty-resend-gf.php 92% from 13 tests

The entry point to "Forms: 3rd-Party Resend Gravity Forms" version 0.1.2 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("forms-3rdparty-gravity-forms.php" instead of "forms-3rdparty-resend-gf.php")

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
Success! There were no dangerous files found in this plugin126 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1343298
Markdown114028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ 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 methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin