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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 41.43 ▲2.52 |
Dashboard /wp-admin | 3.61 ▲0.27 | 49.17 ▼14.19 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 46.55 ▼3.51 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 93.42 ▼6.39 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 36.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲68 | 14.71 ▲0.44 | 1.89 ▲0.06 | 44.53 ▲4.45 |
Dashboard /wp-admin | 2,223 ▲46 | 5.59 ▼0.05 | 86.22 ▼7.66 | 45.12 ▲3.69 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 1.98 ▲0.04 | 36.27 ▼5.23 | 34.82 ▼1.47 |
Add New Post /wp-admin/post-new.php | 1,555 ▲26 | 24.98 ▲1.93 | 656.77 ▼6.29 | 68.74 ▲15.92 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.22 ▲0.07 | 97.86 ▼0.39 | 41.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 703 | 764 | 7,159 |
SVG | 1 | 0 | 0 | 640 |
CSS | 4 | 37 | 12 | 186 |
JavaScript | 3 | 1 | 20 | 6 |
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 code | 0.54 |
Average class complexity | 198.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 468.00 |
Average method complexity | 8.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 152.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 3 | 1.95% |
▷ Public methods | 152 | 98.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 1.30% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_75_ba9217_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
css/images/ui-icons_88a206_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/premium/phone-lookup.png | 8.95KB | 8.63KB | ▼ 3.60% |
images/premium/marketing-data.png | 6.02KB | 5.86KB | ▼ 2.66% |
css/images/ui-icons_cd0a0a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |