Calculate Prices based on Distance For WooCommerce 1.3.5

Does "Calculate Prices based on Distance For WooCommerce" work with WordPress 6.8.2 and PHP 8.1.12? A smoke test was performed on .

Summary

Errors
1PHP fatal errors
No JavaScript exceptions
All test pages loaded successfully
No resource errors
Performance

Memory usage: 30.55 KiB
The average PHP memory usage increased by this amount after activating by the plugin.

Page speed impact: insignificant.
The plugin didn't make the site noticeably slower.

Environment
WordPress version6.8.2
PHP version8.1.12
MySQL version10.6.10
PHP memory limit512M
Plugin Info
Last updated
Active installs 100+
WordPress.org page https://wordpress.org/plugins/calculate-prices-based-on-distance-for-woocommerce/
Badges

WordPress compatibility badge PHP compatibility badge

Get badge code

Pages 2

WC Distance Calculater ‹ Test site — WordPress

Page screenshot: WC Distance Calculater ‹ Test site — WordPress
URL /wp-admin/admin.php?page=address_and_date_time_picker
Requested URL /wp-admin/plugins.php?action=activate&plugin=calculate-prices-based-on-distance-for-woocommerce%2Fcalculate-prices-based-on-distance-for-woocommerce.php&plugin_status=all&paged=1&s&_wpnonce=22865c5e1a
Aspect after-activation
HTTP status 200
Load time 0.500 s
Memory usage N/A
JS errors None
Resource errors None

Test site – Just another WordPress site

Page screenshot: Test site – Just another WordPress site
URL /
Aspect front-page
HTTP status 200
Load time 0.263 s
Memory usage 3.47 MiB
JS errors None
Resource errors None

Benchmark

URL Load time Memory usage
Inactive Active Change Inactive Active Change
/wp-admin/index.php0.376 s0.310 s-0.066 s3.51 MiB3.54 MiB+ 37.06 KiB
/wp-admin/edit.php0.252 s0.227 s-0.025 s3.57 MiB3.61 MiB+ 36.13 KiB
/wp-admin/post-new.php0.882 s0.710 s-0.172 s6.06 MiB6.1 MiB+ 40.55 KiB
/wp-admin/upload.php0.604 s0.387 s-0.217 s3.52 MiB3.54 MiB+ 18.72 KiB
/wp-admin/options-writing.php0.229 s0.187 s-0.042 s3.5 MiB3.52 MiB+ 22.71 KiB
/wp-admin/media-new.php0.281 s0.231 s-0.050 s3.49 MiB3.52 MiB+ 30.91 KiB
/wp-admin/edit-tags.php?taxonomy=category0.223 s0.252 s+0.029 s3.5 MiB3.55 MiB+ 41.58 KiB
/wp-admin/post-new.php?post_type=page0.685 s0.649 s-0.036 s6.05 MiB6.09 MiB+ 36.08 KiB
/wp-admin/options-discussion.php0.380 s0.404 s+0.024 s3.5 MiB3.52 MiB+ 19.21 KiB
/wp-admin/edit-comments.php0.234 s0.212 s-0.022 s3.52 MiB3.54 MiB+ 18.71 KiB
/0.360 s0.206 s-0.154 s3.43 MiB3.47 MiB+ 34.34 KiB
Average 0.410 s0.343 s-0.066 s3.97 MiB4 MiB+ 30.55 KiB

Code Statistics

Note: Third-party libraries and minified JS/CSS files are excluded from these statistics where possible, so the numbers you see here may be lower than those reported by other tools.

JavaScript
PHP
Language % Lines of code Comment lines Files
JavaScript75.1%4,9721,3146
PHP21.3%1,41415512
CSS3.1%206253
JSON0.5%3201
Total 6,624 1,494 22

PHP Code Analysis | More results »

Lines of code 732
Total complexity 210
Median class complexity 88.5
Median method complexity 2.0
Most complex class WCCPD_Calculate_Miles
Most complex function WCCPD_Calculate_Miles::wccpd_cm_save_form_fields()
Classes 2
Methods 29
Functions 9

Additions

Things that the plugin adds to the site. This section is not intended to be comprehensive. The test tool only looks for a few specific types of added content.

No new entries found.

PHP Error Log 10 lines

[21-Jul-2025 04:15:15 UTC] PHP Fatal error:  Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in /wp-content/plugins/calculate-prices-based-on-distance-for-woocommerce/templates/cm-admin-settings.php:91
Stack trace:
#0 /wp-content/plugins/calculate-prices-based-on-distance-for-woocommerce/inc/helpers.php(10): include()
#1 /wp-content/plugins/calculate-prices-based-on-distance-for-woocommerce/inc/admin.php(22): wccpd_load_templates()
#2 /wp-includes/class-wp-hook.php(324): wccpd_cm_custom_address_settings()
#3 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#4 /wp-includes/plugin.php(517): WP_Hook->do_action()
#5 /wp-admin/admin.php(260): do_action()
#6 {main}
  thrown in /wp-content/plugins/calculate-prices-based-on-distance-for-woocommerce/templates/cm-admin-settings.php on line 91
See also: All tests for this plugin