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.00MB] [CPU: ▼9.08ms] Passed 4 tests
Analyzing server-side resources used by MWB HubSpot for WooCommerce - CRM, Abandoned Cart, Email Marketing, Marketing Automation & Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.92 ▼2.65 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.43 ▲2.07 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.77 ▼8.79 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.51 ▼21.53 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.10 ▼3.35 |
Server storage [IO: ▲1.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MWB HubSpot for WooCommerce - CRM, Abandoned Cart, Email Marketing, Marketing Automation & Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.38 | 1.78 ▼0.24 | 44.01 ▼3.20 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.09 | 91.70 ▼3.53 | 41.28 ▼5.44 |
Posts /wp-admin/edit.php | 2,103 ▼1 | 2.00 ▼0.01 | 39.78 ▼2.23 | 35.89 ▼1.30 |
Add New Post /wp-admin/post-new.php | 1,526 ▼11 | 23.61 ▲5.44 | 591.28 ▼54.56 | 51.98 ▼8.72 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▲0.03 | 99.42 ▼9.34 | 40.04 ▼3.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/makewebbetter-hubspot-for-woocommerce.php+293
Use of undefined constant WC_LOG_DIR - assumed 'WC_LOG_DIR' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/makewebbetter-hubspot-for-woocommerce/admin/templates/deactivation-screen.php
- 19× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Hubwoo' not found in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/admin/templates/hubwoo-deals.php:13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/includes/class-hubwoo-rfm-configuration.php on line 14
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/includes/class-hubwoo-rfm-configuration.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_admin_fields() in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/admin/templates/hubwoo-abncart.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/admin/templates/hubwoo-add-ons.php:20
- > PHP Fatal error
Uncaught Error: Class 'Hubwoo' not found in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/admin/templates/hubwoo-logs.php:12
- > PHP Fatal error
Uncaught Error: Class 'Hubwoo' not found in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/admin/templates/setup/hubwoo-pipeline-setup.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/includes/class-hubwoo-rfm-configuration.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'HubWooContactProperties' not found in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/admin/templates/setup/hubwoo-grp-pr-setup.php:13
- > PHP Fatal error
Uncaught Error: Class 'HubWooEnum' not found in wp-content/plugins/makewebbetter-hubspot-for-woocommerce/includes/class-hubwooconst.php:18
- > PHP Fatal error
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
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: A description for screenshot #8 is missing in makewebbetter-hubspot-for-woocommerce/assets to your readme.txt
makewebbetter-hubspot-for-woocommerce/makewebbetter-hubspot-for-woocommerce.php Passed 13 tests
"MWB HubSpot for WooCommerce - CRM, Abandoned Cart, Email Marketing, Marketing Automation & Analytics" version 1.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
130 characters long description:
Integrate WooCommerce with HubSpot’s free CRM, abandoned cart tracking, email marketing, marketing automation, analytics & more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin23,549 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 3,608 | 3,603 | 16,154 |
CSS | 4 | 265 | 162 | 3,897 |
JavaScript | 3 | 228 | 26 | 2,189 |
PO File | 1 | 564 | 632 | 1,297 |
SVG | 3 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 78.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 5.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 391 | |
▷ Static methods | 109 | 27.88% |
▷ Public methods | 371 | 94.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 5.12% |
Functions | 29 | |
▷ Named functions | 13 | 44.83% |
▷ Anonymous functions | 16 | 55.17% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/hubspot-pricing.png | 74.21KB | 30.30KB | ▼ 59.17% |
admin/images/checked.png | 2.19KB | 1.23KB | ▼ 43.79% |
admin/images/contact.png | 0.81KB | 0.80KB | ▼ 1.44% |
admin/images/deal.png | 0.87KB | 0.85KB | ▼ 2.24% |