Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.61MB] [CPU: ▲28.72ms] Passed 4 tests
Server-side resources used by Plug your WooCommerce into the largest catalog of customized print products from Helloprint
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.21 ▲1.74 | 77.71 ▲34.26 |
Dashboard /wp-admin | 5.13 ▲1.83 | 87.49 ▲42.44 |
Posts /wp-admin/edit.php | 5.25 ▲1.89 | 94.22 ▲41.43 |
Add New Post /wp-admin/post-new.php | 6.93 ▲1.05 | 94.62 ▼3.25 |
Media Library /wp-admin/upload.php | 5.05 ▲1.82 | 86.86 ▲51.03 |
Edit Order Preset /wp-admin/admin.php?page=edit-order-preset | 5.49 | 386.24 |
Settings /wp-admin/admin.php?page=helloprint | 5.02 | 77.22 |
Delete Pricing Tier /wp-admin/admin.php?page=delete-helloprint-pricing-tier | 4.99 | 69.64 |
Order Presets /wp-admin/admin.php?page=helloprint-order-presets | 5.07 | 83.29 |
Edit Pricing Tier /wp-admin/admin.php?page=edit-hp-pricing-tier | 4.99 | 68.48 |
New Order Preset /wp-admin/admin.php?page=add-order-preset | 5.49 | 363.19 |
Pricing Tiers /wp-admin/admin.php?page=helloprint-pricing-tiers | 5.06 | 73.80 |
Delete Order Preset /wp-admin/admin.php?page=delete-helloprint-order-preset | 4.99 | 70.64 |
New Pricing Tier /wp-admin/admin.php?page=add-hp-pricing-tier | 4.99 | 72.05 |
Server storage [IO: ▲3.51MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 188 new files
Database: 10 new tables, 8 new options
New tables |
---|
wp_helloprint_product_pricing_tier |
wp_helloprint_order_line_item_presets |
wp_helloprint_scaled_pricing |
wp_helloprint_pricing_tiers |
wp_helloprint_translations |
wp_helloprint_order_line_preset_files |
wp_helloprint_order_presets |
wp_helloprint_pitch_prints |
wp_helloprint_bulk_import_queues |
wp_helloprint_order_line_public_files |
New WordPress options |
---|
helloprint_env_mode |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
recovery_mode_email_last_sent |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Plug your WooCommerce into the largest catalog of customized print products from Helloprint
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,014 ▲252 | 16.48 ▲2.13 | 27.54 ▲25.94 | 41.23 ▼4.42 |
Dashboard /wp-admin | 2,268 ▲104 | 6.83 ▲1.23 | 158.72 ▲52.80 | 52.38 ▲8.45 |
Posts /wp-admin/edit.php | 2,176 ▲76 | 3.56 ▲1.56 | 69.88 ▲29.10 | 38.19 ▲0.58 |
Add New Post /wp-admin/post-new.php | 45 ▼1,644 | 0.41 ▼23.75 | 0.07 ▼641.54 | 9.28 ▼52.48 |
Media Library /wp-admin/upload.php | 1,467 ▲67 | 6.42 ▲2.24 | 148.37 ▲51.55 | 48.19 ▲4.52 |
Edit Order Preset /wp-admin/admin.php?page=edit-order-preset | 1,295 | 4.57 | 101.68 | 56.80 |
Settings /wp-admin/admin.php?page=helloprint | 1,091 | 3.84 | 72.51 | 29.94 |
Delete Pricing Tier /wp-admin/admin.php?page=delete-helloprint-pricing-tier | 812 | 3.65 | 59.66 | 25.03 |
Edit /wp-admin/edit-language-translation.php | 26 | 0.41 | 0.06 | 15.05 |
Order Presets /wp-admin/admin.php?page=helloprint-order-presets | 919 | 3.81 | 62.18 | 27.20 |
Edit Pricing Tier /wp-admin/admin.php?page=edit-hp-pricing-tier | 759 | 3.05 | 39.50 | 18.99 |
New Order Preset /wp-admin/admin.php?page=add-order-preset | 1,277 | 4.58 | 101.77 | 39.81 |
Pricing Tiers /wp-admin/admin.php?page=helloprint-pricing-tiers | 902 | 3.85 | 59.37 | 26.39 |
Delete Order Preset /wp-admin/admin.php?page=delete-helloprint-order-preset | 812 | 3.69 | 55.51 | 23.05 |
New Pricing Tier /wp-admin/admin.php?page=add-hp-pricing-tier | 759 | 3.05 | 48.27 | 22.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 10 tables in the database
- wp_helloprint_product_pricing_tier
- wp_helloprint_order_line_public_files
- wp_helloprint_pricing_tiers
- wp_helloprint_order_line_item_presets
- wp_helloprint_translations
- wp_helloprint_bulk_import_queues
- wp_helloprint_order_line_preset_files
- wp_helloprint_pitch_prints
- wp_helloprint_order_presets
- wp_helloprint_scaled_pricing
- The uninstall procedure has failed, leaving 8 options in the database
- helloprint_env_mode
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=edit-hp-pricing-tier
- > Notice in wp-content/plugins/helloprint/includes/Base/Controllers/Admin/PricingTierController.php+125
Undefined index: id
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=delete-helloprint-order-preset
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
- > GET request to /wp-admin/admin.php?page=edit-hp-pricing-tier
- > Error in wp-content/plugins/helloprint/includes/Base/Controllers/Admin/PricingTierController.php+145
Uncaught Error: Call to undefined function HelloPrint\Inc\Base\Controllers\Admin\get_woocommerce_currency_symbol() in wp-content/plugins/helloprint/includes/Base/Controllers/Admin/PricingTierController.php:145
Stack trace:
#0 wp-includes/class-wp-hook.php(310): HelloPrint\Inc\Base\Controllers\Admin\PricingTierController->edit_helloprint_pricing_tier()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown- > GET request to /wp-admin/admin.php?page=add-hp-pricing-tier
- > Error in wp-content/plugins/helloprint/includes/Base/Controllers/Admin/PricingTierController.php+84
Uncaught Error: Call to undefined function HelloPrint\Inc\Base\Controllers\Admin\get_woocommerce_currency_symbol() in wp-content/plugins/helloprint/includes/Base/Controllers/Admin/PricingTierController.php:84
Stack trace:
#0 wp-includes/class-wp-hook.php(310): HelloPrint\Inc\Base\Controllers\Admin\PricingTierController->new_helloprint_pricing_tier()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 {main}
thrown
SRP 0% from 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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/helloprint/templates/admin/order-item-prevent-edit.php
- > /wp-content/plugins/helloprint/helloprint.php
- > /wp-content/plugins/helloprint/templates/wp/inc/custom-size.php
- 71× 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 wp_kses() in wp-content/plugins/helloprint/templates/admin/tabs/helloprint-product-panel.php:9
- > PHP Fatal error
Uncaught Error: Class 'HelloPrint\\Inc\\Base\\Controllers\\BaseController' not found in wp-content/plugins/helloprint/includes/Base/Controllers/Admin/ProductController.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/helloprint/templates/admin/flash-message.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function hp_is_pitchprint_plugin_active() in wp-content/plugins/helloprint/templates/wp/inc/pitchprint.php:2
- > PHP Fatal error
Uncaught Error: Class 'HelloPrint\\Inc\\Base\\Controllers\\BaseController' not found in wp-content/plugins/helloprint/includes/Api/Callback/ManagerCallback.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/helloprint/templates/admin/pitch-print/all-pitch-prints.php:9
- > PHP Fatal error
Uncaught Error: Class 'HelloPrint\\Inc\\Base\\Controllers\\BaseController' not found in wp-content/plugins/helloprint/includes/Base/Controllers/Admin/FileUploadController.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/helloprint/templates/admin/inc/custom-size.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/helloprint/templates/admin/order-preset/includes/for-non-hp-product.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/helloprint/templates/admin/helloprint-uploaded-file.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 9 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=add-hp-pricing-tier
- > Network (severe)
wp-admin/admin-ajax.php - Failed to load resource: the server responded with a status of 400 (Bad Request)
- > GET request to /wp-admin/edit-language-translation.php
- > Network (severe)
wp-admin/edit-language-translation.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: helloprint for woocommerce, helloprint, printing service
helloprint/helloprint.php 92% from 13 tests
"Plug your WooCommerce into the largest catalog of customized print products from Helloprint" version 1.9.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
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
Success! There were no dangerous files found in this plugin42,194 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 3,291 | 1,874 | 17,607 |
PHP | 88 | 1,570 | 1,255 | 11,447 |
PO File | 26 | 4,699 | 3,983 | 9,752 |
CSS | 12 | 250 | 239 | 3,342 |
JSON | 2 | 0 | 0 | 24 |
SVG | 1 | 0 | 0 | 12 |
Markdown | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 33.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 317.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 49 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 49 | 100.00% |
▷ Final classes | 1 | 2.04% |
Methods | 344 | |
▷ Static methods | 39 | 11.34% |
▷ Public methods | 308 | 89.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 36 | 10.47% |
Functions | 46 | |
▷ Named functions | 28 | 60.87% |
▷ Anonymous functions | 18 | 39.13% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/images/icons.png | 15.83KB | 7.46KB | ▼ 52.89% |
assets/admin/img/pdf-upload-2619.png | 7.91KB | 3.21KB | ▼ 59.34% |