90% wpop-contactform-hubspot

Code Review | WPOP Contact Form 7 to Hubspot

WordPress plugin WPOP Contact Form 7 to Hubspot scored90%from 54 tests.

About plugin

  • Plugin page: wpop-contactform-...
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Jan 4, 2020
  • Latest release: Sep 16, 2022
  • Number of updates: 13
  • Update frequency: every 76.0 days
  • Top authors: wpoperations (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /3,979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.61ms] Passed 4 tests

This is a short check of server-side resources used by WPOP Contact Form 7 to Hubspot
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.43 ▲0.33
Dashboard /wp-admin3.32 ▲0.0243.30 ▼5.53
Posts /wp-admin/edit.php3.37 ▲0.0245.26 ▼4.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.44 ▼5.73
Media Library /wp-admin/upload.php3.25 ▲0.0235.00 ▼2.37

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WPOP Contact Form 7 to Hubspot
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲1014.52 ▲0.171.66 ▼0.1842.74 ▲1.03
Dashboard /wp-admin2,199 ▲195.51 ▼0.1783.92 ▼3.6537.83 ▼1.96
Posts /wp-admin/edit.php2,107 ▲42.05 ▲0.0735.54 ▼4.2035.47 ▼3.43
Add New Post /wp-admin/post-new.php1,536 ▲1023.27 ▼0.31665.59 ▲43.5452.99 ▲2.37
Media Library /wp-admin/upload.php1,407 ▲74.17 ▲0.0194.13 ▼11.6340.99 ▼7.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: You can take inspiration from this readme.txt

wpop-contactform-hubspot/wpop-contactform-hubspot.php Passed 13 tests

The entry point to "WPOP Contact Form 7 to Hubspot" version 1.0.9 is a PHP file that has certain tags in its header comment area
56 characters long description:
Add Contact Form 7 Data to HubSpot Contact lists easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin568 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44736421
CSS1201135
JavaScript12112

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity19.33
▷ Minimum class complexity2.00
▷ Maximum class complexity33.00
Average method complexity4.67
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin