79% cf7-hubspot

Code Review | Integration for Contact Form 7 HubSpot

WordPress plugin Integration for Contact Form 7 HubSpot scored 79% from 54 tests.

About plugin

  • Plugin page: cf7-hubspot
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.8.1
  • First release: Oct 25, 2018
  • Latest release: Nov 14, 2021
  • Number of updates: 37
  • Update frequency: every 30.2 days
  • Top authors: CRMPerks (72.97%)asif876 (29.73%)

Code review

54 tests

User reviews

35 reviews

Install metrics

7,000+ active / 57,244 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.69MB] [CPU: ▼136.76ms] Passed 4 tests

This is a short check of server-side resources used by Integration for Contact Form 7 HubSpot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.09 ▲0.3741.72 ▲19.30
Dashboard /wp-admin3.88 ▲0.8350.30 ▲7.19
Posts /wp-admin/edit.php3.93 ▲0.8347.47 ▲2.32
Add New Post /wp-admin/post-new.php6.18 ▲0.7592.28 ▼562.45
Media Library /wp-admin/upload.php3.83 ▲0.8338.42 ▲5.91

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 70 new files
Database: 3 new tables, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Integration for Contact Form 7 HubSpot
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲10416.02 ▲0.0910.21 ▲0.6049.95 ▲0.64
Dashboard /wp-admin2,993 ▲595.94 ▼0.01135.85 ▲1.75108.00 ▼6.86
Posts /wp-admin/edit.php2,759 ▲202.72 ▼0.0068.02 ▲7.4292.24 ▼0.83
Add New Post /wp-admin/post-new.php1,515 ▼15718.59 ▼0.26377.54 ▲12.88104.66 ▼3.72
Media Library /wp-admin/upload.php1,827 ▲205.01 ▼0.02153.50 ▲9.42114.47 ▼7.56

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The uninstall procedure failed, leaving 3 tables in the database
    • wp_vxcf_hubspot
    • wp_vxcf_hubspot_accounts
    • wp_vxcf_hubspot_log
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • vxcf_hubspot_version

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: hubspot, contact form 7, hubspot form, contact form 7 hubspot, hubspot forms

cf7-hubspot/cf7-hubspot.php 85% from 13 tests

The main PHP script in "Integration for Contact Form 7 HubSpot" version 1.2.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 211 characters long)

Code Analysis 97% from 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 plugin8,627 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 148)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity163.57
▷ Minimum class complexity6.00
▷ Maximum class complexity372.00
Average method complexity6.81
▷ Minimum method complexity1.00
▷ Maximum method complexity148.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods42.04%
▷ Public methods19096.94%
▷ Protected methods00.00%
▷ Private methods63.06%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
34 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_ffffff_256x240.png6.15KB4.17KB▼ 32.13%
images/filtered.png1.47KB0.48KB▼ 67.40%
css/images/ui-icons_c02669_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-bg_diagonals-small_50_ff3853_40x40.png0.32KB0.10KB▼ 69.70%
css/images/ui-bg_dots-medium_80_ffff38_4x4.png0.22KB0.09KB▼ 60.00%