Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.94ms] Passed 4 tests
Analyzing server-side resources used by Integration with HubSpot for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.77 ▼2.70 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.12 ▼14.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.45 ▼5.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.00 ▼12.79 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.85 ▲1.88 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Integration with HubSpot for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲18 | 14.05 ▼0.30 | 1.90 ▲0.02 | 44.09 ▲4.49 |
Dashboard /wp-admin | 2,195 ▲18 | 5.59 ▼0.07 | 94.27 ▼6.92 | 42.33 ▲2.23 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▼0.02 | 34.53 ▼1.48 | 35.28 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 22.95 ▲4.69 | 652.60 ▲34.69 | 51.40 ▼17.48 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.39 ▲0.24 | 99.25 ▲0.62 | 45.49 ▲3.90 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hubwoo-integration/admin/templates/hubwoo_abncart.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hubwoo-integration/admin/templates/realtime-sync.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/hubwoo-integration/admin/templates/hubwoo_setup.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hubwoo-integration/admin/templates/hubwoo_overview.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hubwoo-integration/admin/templates/hubwoo_lists.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hubwoo-integration/admin/templates/hubwoo_ocs.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/hubwoo-integration/admin/templates/error-management.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hubwoo-integration/includes/class-hubwoo-ajax-handler.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/hubwoo-integration/admin/templates/hubwoo_deals.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function is_oauth_success() on null in wp-content/plugins/hubwoo-integration/admin/templates/hubwoo_connect.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce crm, hubspot woocommerce integration, marketing automation, hubspot, woocommerce...
hubwoo-integration/hubspot-woocommerce-integration.php 77% from 13 tests
The entry point to "Integration with HubSpot for WooCommerce" version 4.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("hubwoo-integration.php" instead of "hubspot-woocommerce-integration.php")
- Requires at least: Required version does not match the one declared in readme.txt ("3.4" instead of "4.4")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,668 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 878 | 1,376 | 2,702 |
CSS | 2 | 59 | 68 | 1,213 |
PO File | 1 | 181 | 196 | 442 |
JavaScript | 2 | 1 | 15 | 311 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 96.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 108 | |
▷ Static methods | 17 | 15.74% |
▷ Public methods | 92 | 85.19% |
▷ Protected methods | 2 | 1.85% |
▷ Private methods | 14 | 12.96% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.14MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/email-icon.png | 2.29KB | 2.03KB | ▼ 11.48% |
admin/images/lock.png | 0.48KB | 0.31KB | ▼ 36.16% |
admin/images/skype_logo.png | 0.93KB | 0.96KB | 0.00% |
admin/images/checked.png | 0.49KB | 0.42KB | ▼ 14.14% |
admin/images/connected.png | 1.32KB | 1.07KB | ▼ 18.77% |