57% helloprint

Code Review | Plug your WooCommerce into the largest catalog of customized print products from Helloprint

WordPress plugin Plug your WooCommerce into the largest catalog of customized print products from Helloprint scored57%from 54 tests.

About plugin

  • Plugin page: helloprint
  • Plugin version: 1.9.9
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 6, 2022
  • Latest release: Nov 29, 2023
  • Number of updates: 117
  • Update frequency: every 4.4 days
  • Top authors: helloprint (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /9,293 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /5.21 ▲1.7477.71 ▲34.26
Dashboard /wp-admin5.13 ▲1.8387.49 ▲42.44
Posts /wp-admin/edit.php5.25 ▲1.8994.22 ▲41.43
Add New Post /wp-admin/post-new.php6.93 ▲1.0594.62 ▼3.25
Media Library /wp-admin/upload.php5.05 ▲1.8286.86 ▲51.03
Edit Order Preset /wp-admin/admin.php?page=edit-order-preset5.49386.24
Settings /wp-admin/admin.php?page=helloprint5.0277.22
Delete Pricing Tier /wp-admin/admin.php?page=delete-helloprint-pricing-tier4.9969.64
Order Presets /wp-admin/admin.php?page=helloprint-order-presets5.0783.29
Edit Pricing Tier /wp-admin/admin.php?page=edit-hp-pricing-tier4.9968.48
New Order Preset /wp-admin/admin.php?page=add-order-preset5.49363.19
Pricing Tiers /wp-admin/admin.php?page=helloprint-pricing-tiers5.0673.80
Delete Order Preset /wp-admin/admin.php?page=delete-helloprint-order-preset4.9970.64
New Pricing Tier /wp-admin/admin.php?page=add-hp-pricing-tier4.9972.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,014 ▲25216.48 ▲2.1327.54 ▲25.9441.23 ▼4.42
Dashboard /wp-admin2,268 ▲1046.83 ▲1.23158.72 ▲52.8052.38 ▲8.45
Posts /wp-admin/edit.php2,176 ▲763.56 ▲1.5669.88 ▲29.1038.19 ▲0.58
Add New Post /wp-admin/post-new.php45 ▼1,6440.41 ▼23.750.07 ▼641.549.28 ▼52.48
Media Library /wp-admin/upload.php1,467 ▲676.42 ▲2.24148.37 ▲51.5548.19 ▲4.52
Edit Order Preset /wp-admin/admin.php?page=edit-order-preset1,2954.57101.6856.80
Settings /wp-admin/admin.php?page=helloprint1,0913.8472.5129.94
Delete Pricing Tier /wp-admin/admin.php?page=delete-helloprint-pricing-tier8123.6559.6625.03
Edit /wp-admin/edit-language-translation.php260.410.0615.05
Order Presets /wp-admin/admin.php?page=helloprint-order-presets9193.8162.1827.20
Edit Pricing Tier /wp-admin/admin.php?page=edit-hp-pricing-tier7593.0539.5018.99
New Order Preset /wp-admin/admin.php?page=add-order-preset1,2774.58101.7739.81
Pricing Tiers /wp-admin/admin.php?page=helloprint-pricing-tiers9023.8559.3726.39
Delete Order Preset /wp-admin/admin.php?page=delete-helloprint-order-preset8123.6955.5123.05
New Pricing Tier /wp-admin/admin.php?page=add-hp-pricing-tier7593.0548.2722.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript183,2911,87417,607
PHP881,5701,25511,447
PO File264,6993,9839,752
CSS122502393,342
JSON20024
SVG10012
Markdown10010

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity33.69
▷ Minimum class complexity1.00
▷ Maximum class complexity317.00
Average method complexity5.15
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces11
Interfaces0
Traits0
Classes49
▷ Abstract classes00.00%
▷ Concrete classes49100.00%
▷ Final classes12.04%
Methods344
▷ Static methods3911.34%
▷ Public methods30889.53%
▷ Protected methods00.00%
▷ Private methods3610.47%
Functions46
▷ Named functions2860.87%
▷ Anonymous functions1839.13%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
templates/images/icons.png15.83KB7.46KB▼ 52.89%
assets/admin/img/pdf-upload-2619.png7.91KB3.21KB▼ 59.34%