84% sync-gravity-forms-hubspot

Code Review | Sync Gravity Forms and Hubspot Forms

WordPress plugin Sync Gravity Forms and Hubspot Forms scored84%from 54 tests.

About plugin

  • Plugin page: sync-gravity-form...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 27, 2023
  • Latest release: Apr 27, 2023
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: soliddigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /123 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Sync Gravity Forms and Hubspot Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0132.95 ▼3.77
Dashboard /wp-admin3.32 ▼0.0346.78 ▼14.02
Posts /wp-admin/edit.php3.37 ▲0.0147.95 ▼1.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.68 ▼15.32
Media Library /wp-admin/upload.php3.24 ▲0.0134.61 ▲1.19

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sync Gravity Forms and Hubspot Forms
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▲0.061.65 ▼0.0136.53 ▼3.07
Dashboard /wp-admin2,198 ▲245.68 ▲0.1580.05 ▼8.4239.01 ▼2.50
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0238.71 ▲4.4135.96 ▼3.99
Add New Post /wp-admin/post-new.php1,535 ▲718.08 ▼5.28613.66 ▼25.4468.84 ▲15.71
Media Library /wp-admin/upload.php1,394 ▼64.22 ▲0.0296.01 ▼2.0240.85 ▼0.61

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'GFForms' not found in wp-content/plugins/sync-gravity-forms-hubspot/includes/class-hsformsaddon.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: jet engine, macros, dynamic tags, elementor

sync-gravity-forms-hubspot/gf-hubspot.php 85% from 13 tests

"Sync Gravity Forms and Hubspot Forms" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("sync-gravity-forms-hubspot.php" instead of "gf-hubspot.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected313 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP45149267
Markdown116046

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods753.85%
▷ Protected methods00.00%
▷ Private methods646.15%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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 were not PNG files found in your plugin