79% cf7-hubspot

Code Review | Integration for HubSpot and Contact Form 7, WPForms, Elementor, Ninja Forms

WordPress plugin Integration for HubSpot and Contact Form 7, WPForms, Elementor, Ninja Forms scored79%from 54 tests.

About plugin

  • Plugin page: cf7-hubspot
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.3
  • WordPress version: 6.3.1
  • First release: Oct 25, 2018
  • Latest release: Oct 5, 2023
  • Number of updates: 52
  • Update frequency: every 34.8 days
  • Top authors: CRMPerks (80.77%)asif876 (21.15%)

Code review

54 tests

User reviews

51 reviews

Install metrics

7,000+ active /110,615 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.76MB] [CPU: ▼4.27ms] Passed 4 tests

This is a short check of server-side resources used by Integration for HubSpot and Contact Form 7, WPForms, Elementor, Ninja Forms
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3541.08 ▼4.13
Dashboard /wp-admin4.22 ▲0.8855.64 ▼7.27
Posts /wp-admin/edit.php4.27 ▲0.9248.75 ▲1.87
Add New Post /wp-admin/post-new.php6.80 ▲0.9285.28 ▼7.56
Media Library /wp-admin/upload.php4.14 ▲0.9140.81 ▲6.34

Server storage [IO: ▲1.34MB] [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, 7 new options
New tables
wp_vxcf_hubspot_accounts
wp_vxcf_hubspot_log
wp_vxcf_hubspot
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
vxcf_hubspot_version
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Integration for HubSpot and Contact Form 7, WPForms, Elementor, Ninja Forms
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.35 ▼0.261.72 ▲0.0844.07 ▼0.02
Dashboard /wp-admin2,208 ▲315.48 ▼0.0583.42 ▼6.7837.80 ▼1.53
Posts /wp-admin/edit.php2,116 ▲161.96 ▼0.0636.05 ▲0.9932.80 ▼5.74
Add New Post /wp-admin/post-new.php1,548 ▲2218.26 ▼4.70634.33 ▲4.1863.79 ▲6.72
Media Library /wp-admin/upload.php1,419 ▲194.22 ▲0.0194.80 ▼10.1642.65 ▲0.77

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_accounts
    • wp_vxcf_hubspot_log
    • wp_vxcf_hubspot
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • vxcf_hubspot_version
    • theysaidso_admin_options

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

Optimizations

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: elementor foems hubspot, ninja forms hubspot, contact form 7 hubspot, wpforms hubspot, contact form 7

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

The main PHP script in "Integration for HubSpot and Contact Form 7, WPForms, Elementor, Ninja Forms" version 1.3.0 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 232 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 plugin9,032 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP208689078,115
SVG100640
CSS52310271
JavaScript31206

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 152)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity185.57
▷ Minimum class complexity6.00
▷ Maximum class complexity491.00
Average method complexity7.36
▷ Minimum method complexity1.00
▷ Maximum method complexity152.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods203
▷ Static methods62.96%
▷ Public methods19797.04%
▷ Protected methods00.00%
▷ Private methods62.96%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ 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.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/deleted.png0.48KB0.33KB▼ 31.03%
css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
css/images/ui-icons_c02669_256x240.png4.44KB4.17KB▼ 6.02%
images/active0.png0.22KB0.18KB▼ 16.67%
css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%