78% mwb-gf-integration-for-hubspot

Code Review | MWB GF Integration for HubSpot -Sync HubSpot Forms, Contacts, Tickets

WordPress plugin MWB GF Integration for HubSpot -Sync HubSpot Forms, Contacts, Tickets scored78%from 54 tests.

About plugin

  • Plugin page: mwb-gf-integratio...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.3.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2021
  • Latest release: Nov 27, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: makewebbetter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /288 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 successfully, without throwing any errors or notices

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

Server-side resources used by MWB GF Integration for HubSpot -Sync HubSpot Forms, Contacts, Tickets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.06 ▼6.47
Dashboard /wp-admin3.31 ▲0.0044.91 ▼1.78
Posts /wp-admin/edit.php3.36 ▲0.0047.94 ▲0.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.10 ▼9.39
Media Library /wp-admin/upload.php3.23 ▲0.0036.66 ▲3.06

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 117 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

MWB GF Integration for HubSpot -Sync HubSpot Forms, Contacts, Tickets: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.59 ▼0.531.77 ▲0.0440.92 ▼2.29
Dashboard /wp-admin2,209 ▲275.90 ▲1.05108.07 ▼0.2338.77 ▼5.24
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0239.50 ▲0.8034.60 ▲1.70
Add New Post /wp-admin/post-new.php1,533 ▼023.24 ▲0.02659.16 ▼72.1865.34 ▲13.80
Media Library /wp-admin/upload.php1,391 ▲64.34 ▲0.2097.51 ▼3.5343.28 ▼0.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mwb-gf-integration-for-hubspot/public/partials/mwb-gf-integration-for-hubspot-public-display.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mwb-gf-integration-for-hubspot/admin/partials/setup-guide.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'Mwb_Gf_Integration_Hubspot_Api_Base' not found in wp-content/plugins/mwb-gf-integration-for-hubspot/mwb-crm-fw/api/class-mwb-gf-integration-hubspot-api.php:21
    • > PHP Notice
      Undefined variable: custom_app in wp-content/plugins/mwb-gf-integration-for-hubspot/admin/partials/setup-guide.php on line 18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mwb-gf-integration-for-hubspot/public/partials/email-template.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/mwb-gf-integration-for-hubspot/extra-templates/makewebbetter-onboarding-template-display.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/mwb-gf-integration-for-hubspot/mwb-crm-fw/framework/class-mwb-gf-integration-connect-hubspot-framework.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #13 (MWB GF Integration for HubSpot: primary field), #14 (MWB GF Integration for HubSpot: sync logs)
Please take inspiration from this readme.txt

mwb-gf-integration-for-hubspot/mwb-gf-integration-for-hubspot.php Passed 13 tests

The entry point to "MWB GF Integration for HubSpot -Sync HubSpot Forms, Contacts, Tickets" version 1.0.0 is a PHP file that has certain tags in its header comment area
136 characters long description:
Automate lead generation and data collection by syncing Gravity Forms data over HubSpot with this MWB GF Integration for HubSpot plugin.

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
There were no executable files found in this plugin10,400 lines of code in 80 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,3942,8364,972
CSS8409642,517
JavaScript132953901,871
PO File1206242475
JSON6100345
SVG1001137
Markdown376083

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity45.69
▷ Minimum class complexity1.00
▷ Maximum class complexity178.00
Average method complexity4.56
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods198
▷ Static methods189.09%
▷ Public methods18191.41%
▷ Protected methods31.52%
▷ Private methods147.07%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants4
▷ Global constants4100.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
14 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
packages/datatables/media/images/sort_desc_disabled.png0.14KB0.25KB0.00%
admin/images/tooltip.png2.59KB2.26KB▼ 12.76%
admin/images/banner.png45.89KB21.48KB▼ 53.19%
admin/images/crm.png6.98KB7.48KB0.00%
packages/datatables/media/images/sort_both.png0.20KB0.29KB0.00%