84% source-input-for-gravity-forms

Code Review | Source Input for Gravity Forms

WordPress plugin Source Input for Gravity Forms scored84%from 54 tests.

About plugin

  • Plugin page: source-input-for-...
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Dec 13, 2017
  • Latest release: Dec 18, 2017
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: liftedlogic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /757 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

Analyzing server-side resources used by Source Input for Gravity Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0141.26 ▼3.69
Dashboard /wp-admin3.31 ▲0.0142.96 ▼7.75
Posts /wp-admin/edit.php3.36 ▲0.0045.87 ▼1.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.76 ▼5.06
Media Library /wp-admin/upload.php3.23 ▲0.0032.60 ▼0.79

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Source Input for Gravity Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.75 ▼0.561.76 ▼0.2543.90 ▲0.67
Dashboard /wp-admin2,206 ▲145.91 ▲0.94108.58 ▼9.8239.45 ▼5.82
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0039.69 ▲1.2735.84 ▲1.74
Add New Post /wp-admin/post-new.php1,545 ▲3118.16 ▲0.48610.84 ▼7.8351.45 ▲4.18
Media Library /wp-admin/upload.php1,388 ▲64.30 ▲0.0994.93 ▼1.0041.20 ▼1.69

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'GF_Field' not found in wp-content/plugins/source-input-for-gravity-forms/lib/GFSI_Source_Field.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/source-input-for-gravity-forms/lib/GFSI_AddOn.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • License uri: Please fix this invalid url: "License URI: http://www.gnu.org/licenses/gpl-3.0.html"
You can take inspiration from this readme.txt

source-input-for-gravity-forms/source-input-for-gravity-forms.php Passed 13 tests

The main PHP file in "Source Input for Gravity Forms" ver. 0.1.1 adds more information about the plugin and also serves as the entry point for this plugin
23 characters long description:
Track conversion source

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin284 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36025252
JavaScript18132

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity11.33
▷ Minimum class complexity9.00
▷ Maximum class complexity14.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods20
▷ Static methods420.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin