74% wp-hubspot-woocommerce

Code Review | Integration for HubSpot and WooCommerce

WordPress plugin Integration for HubSpot and WooCommerce scored74%from 54 tests.

About plugin

  • Plugin page: wp-hubspot-woocom...
  • Plugin version: 1.1.3
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Jun 10, 2019
  • Latest release: Nov 3, 2023
  • Number of updates: 25
  • Update frequency: every 65.4 days
  • Top authors: CRMPerks (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,581 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼6.03ms] Passed 4 tests

This is a short check of server-side resources used by Integration for HubSpot and WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3141.43 ▲2.52
Dashboard /wp-admin3.61 ▲0.2749.17 ▼14.19
Posts /wp-admin/edit.php3.73 ▲0.3746.55 ▼3.51
Add New Post /wp-admin/post-new.php6.19 ▲0.3193.42 ▼6.39
Media Library /wp-admin/upload.php3.53 ▲0.3036.47 ▼0.02

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 82 new files
Database: 2 new tables, 7 new options
New tables
wp_vxc_hubspot_log
wp_vxc_hubspot_accounts
New WordPress options
can_compress_scripts
theysaidso_admin_options
vxc_hubspot_pro_version
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Integration for HubSpot and WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲6814.71 ▲0.441.89 ▲0.0644.53 ▲4.45
Dashboard /wp-admin2,223 ▲465.59 ▼0.0586.22 ▼7.6645.12 ▲3.69
Posts /wp-admin/edit.php2,126 ▲261.98 ▲0.0436.27 ▼5.2334.82 ▼1.47
Add New Post /wp-admin/post-new.php1,555 ▲2624.98 ▲1.93656.77 ▼6.2968.74 ▲15.92
Media Library /wp-admin/upload.php1,422 ▲224.22 ▲0.0797.86 ▼0.3941.54 ▼0.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_vxc_hubspot_accounts
    • wp_vxc_hubspot_log
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • vxc_hubspot_pro_version
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-hubspot-woocommerce/templates/crm-order-box.php

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: hubspot and woocommerce integration, hubspot, hubspot woocommerce plugin, hubspot and woocommerce, hubspot crm woocommerce

wp-hubspot-woocommerce/wp-hubspot-woocommerce.php Passed 13 tests

The main PHP script in "Integration for HubSpot and WooCommerce" version 1.1.3 is automatically included on every request by WordPress
105 characters long description:
Integrates WooCommerce with HubSpot allowing new orders to be automatically sent to your HubSpot account.

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin7,991 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP187037647,159
SVG100640
CSS43712186
JavaScript31206

PHP code 50% from 2 tests

An overview of cyclomatic complexity and code structure
Please tend to the following items
  • Method cyclomatic complexity should be reduced to less than 100 (currently 152)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity198.50
▷ Minimum class complexity9.00
▷ Maximum class complexity468.00
Average method complexity8.72
▷ Minimum method complexity1.00
▷ Maximum method complexity152.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods154
▷ Static methods31.95%
▷ Public methods15298.70%
▷ Protected methods00.00%
▷ Private methods21.30%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
47 PNG files occupy 0.25MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_flat_75_ba9217_40x100.png0.20KB0.08KB▼ 57.77%
css/images/ui-icons_88a206_256x240.png4.44KB4.17KB▼ 6.02%
images/premium/phone-lookup.png8.95KB8.63KB▼ 3.60%
images/premium/marketing-data.png6.02KB5.86KB▼ 2.66%
css/images/ui-icons_cd0a0a_256x240.png4.44KB4.17KB▼ 6.02%