78% mwb-cf7-integration-with-hubspot

Code Review | MWB CF7 Integration with HubSpot -Sync HubSpot Forms, Contacts, Tickets

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

About plugin

  • Plugin page: mwb-cf7-integrati...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.3.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2021
  • Latest release: Nov 10, 2021
  • Number of updates: 5
  • Update frequency: every 3.6 days
  • Top authors: makewebbetter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /380 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by MWB CF7 Integration with HubSpot -Sync HubSpot Forms, Contacts, Tickets
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.40 ▲5.26
Dashboard /wp-admin3.31 ▲0.0049.48 ▼0.59
Posts /wp-admin/edit.php3.36 ▲0.0051.94 ▼10.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.63 ▼20.43
Media Library /wp-admin/upload.php3.23 ▲0.0037.05 ▲0.24

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for MWB CF7 Integration with HubSpot -Sync HubSpot Forms, Contacts, Tickets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.24 ▼0.112.38 ▲0.5343.56 ▼3.93
Dashboard /wp-admin2,195 ▲215.61 ▲0.0890.25 ▼5.5441.82 ▼2.40
Posts /wp-admin/edit.php2,103 ▼01.98 ▲0.0042.62 ▼5.5932.46 ▼11.06
Add New Post /wp-admin/post-new.php1,526 ▼1123.36 ▲5.14629.82 ▲18.4351.10 ▼32.03
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.0396.51 ▼7.4443.80 ▼3.53

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/mwb-cf7-integration-with-hubspot/public/partials/mwb-cf7-integration-with-hubspot-public-display.php
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/mwb-cf7-integration-with-hubspot/mwb-crm-fw/framework/class-mwb-cf7-integration-connect-hubspot-framework.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/mwb-cf7-integration-with-hubspot/admin/partials/setup-guide.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_screen() in wp-content/plugins/mwb-cf7-integration-with-hubspot/extra-templates/makewebbetter-onboarding-template-display.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Mwb_Cf7_Integration_Hubspot_Api_Base' not found in wp-content/plugins/mwb-cf7-integration-with-hubspot/mwb-crm-fw/api/class-mwb-cf7-integration-hubspot-api.php:21
    • > PHP Notice
      Undefined variable: custom_app in wp-content/plugins/mwb-cf7-integration-with-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-cf7-integration-with-hubspot/public/partials/email-template.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

mwb-cf7-integration-with-hubspot/mwb-cf7-integration-with-hubspot.php Passed 13 tests

The principal PHP file in "MWB CF7 Integration with HubSpot -Sync HubSpot Forms, Contacts, Tickets" v. 1.0.1 is loaded by WordPress automatically on each request
134 characters long description:
Collect data through Contact Form 7 and sync it over HubSpot for effortless data management using this HubSpot CF7 integration plugin.

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
No dangerous file extensions were detected6,777 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
PHP391,4392,9185,154
PO File1221261513
JavaScript12396439
JSON6100345
SVG1101146
CSS7171297
Markdown376083

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity48.12
▷ Minimum class complexity1.00
▷ Maximum class complexity181.00
Average method complexity4.57
▷ Minimum method complexity1.00
▷ Maximum method complexity37.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods208
▷ Static methods2110.10%
▷ Public methods19191.83%
▷ Protected methods31.44%
▷ Private methods146.73%
Functions13
▷ Named functions1184.62%
▷ Anonymous functions215.38%
Constants1
▷ Global constants1100.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
13 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/api.png48.50KB14.80KB▼ 69.48%
packages/datatables/media/images/sort_desc.png0.15KB0.25KB0.00%
packages/datatables/media/images/sort_asc.png0.16KB0.25KB0.00%
admin/images/crm.png6.98KB7.48KB0.00%
packages/datatables/media/images/sort_asc_disabled.png0.14KB0.25KB0.00%