84% gf-forms-leadsbridge-add-on

Code Review | GF Forms LeadsBridge Add-On

WordPress plugin GF Forms LeadsBridge Add-On scored84%from 54 tests.

About plugin

  • Plugin page: gf-forms-leadsbri...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 9, 2020
  • Latest release: Jan 13, 2020
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: thomassquall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by GF Forms LeadsBridge Add-On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.25 ▼4.48
Dashboard /wp-admin3.32 ▼0.0248.06 ▼11.94
Posts /wp-admin/edit.php3.37 ▲0.0247.00 ▼0.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.17 ▼4.65
Media Library /wp-admin/upload.php3.25 ▲0.0232.47 ▼4.70

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for GF Forms LeadsBridge Add-On
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.36 ▼0.951.77 ▼0.0340.34 ▼1.04
Dashboard /wp-admin2,209 ▲215.91 ▲1.0596.00 ▼10.0440.15 ▼5.81
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0540.06 ▲2.7335.21 ▼0.31
Add New Post /wp-admin/post-new.php1,528 ▼523.18 ▼0.32685.07 ▲19.7357.87 ▼0.17
Media Library /wp-admin/upload.php1,385 ▼34.28 ▲0.03105.14 ▲3.7546.92 ▲3.97

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function has_action() in wp-content/plugins/gf-forms-leadsbridge-add-on/gf-forms-leadsbridge-add-on.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === gf-forms-leadsbridge-add-on === )
You can take inspiration from this readme.txt

gf-forms-leadsbridge-add-on/gf-forms-leadsbridge-add-on.php 92% from 13 tests

The main PHP file in "GF Forms LeadsBridge Add-On" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23420112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin