89% wpop-wpforms-to-hubspot

Code Review | WPOP's WPForms to HubSpot

WordPress plugin WPOP's WPForms to HubSpot scored89%from 54 tests.

About plugin

  • Plugin page: wpop-wpforms-to-h...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 5, 2021
  • Latest release: Sep 16, 2022
  • Number of updates: 10
  • Update frequency: every 56.1 days
  • Top authors: wpoperations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by WPOP's WPForms to HubSpot
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.41 ▲1.41
Dashboard /wp-admin3.31 ▼0.0345.83 ▼17.62
Posts /wp-admin/edit.php3.36 ▲0.0147.68 ▲0.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.11 ▼13.84
Media Library /wp-admin/upload.php3.24 ▲0.0134.45 ▲0.37

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WPOP's WPForms to HubSpot
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.23 ▼1.424.99 ▲2.9242.98 ▼1.29
Dashboard /wp-admin2,207 ▲184.87 ▼0.03104.60 ▼14.8640.91 ▼1.53
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0338.23 ▼0.3535.68 ▲0.85
Add New Post /wp-admin/post-new.php1,518 ▼217.48 ▼5.65668.87 ▼44.6455.86 ▼2.83
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0198.84 ▼7.3240.69 ▼5.11

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

wpop-wpforms-to-hubspot/wpop-wpforms-hubspot.php 85% from 13 tests

Analyzing the main PHP file in "WPOP's WPForms to HubSpot" version 1.0.5
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("wpop-wpforms-to-hubspot.php" instead of "wpop-wpforms-hubspot.php")

Code Analysis Passed 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 plugin466 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47836447
CSS11019

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.00
▷ Minimum class complexity2.00
▷ Maximum class complexity17.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin