Benchmarks
Plugin footprint 83% 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: ▲0.02MB] [CPU: ▼6.92ms] Passed 4 tests
Server-side resources used by Kikote - Location Picker at Checkout & Google Address AutoFill Plugin for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 34.87 ▼5.21 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.78 ▼3.68 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.47 ▲3.32 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.67 ▼17.96 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.88 ▼0.83 |
Server storage [IO: ▲6.79MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 543 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Kikote - Location Picker at Checkout & Google Address AutoFill Plugin for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲41 | 14.26 ▼0.09 | 1.97 ▼0.01 | 42.18 ▲1.39 |
Dashboard /wp-admin | 2,208 ▲28 | 5.64 ▲0.03 | 88.25 ▼5.42 | 42.45 ▲4.39 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 2.00 ▲0.06 | 42.72 ▲6.25 | 39.08 ▲4.98 |
Add New Post /wp-admin/post-new.php | 1,534 ▲5 | 23.26 ▲0.34 | 677.37 ▼17.43 | 62.86 ▲7.27 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.22 ▲0.07 | 97.93 ▼2.31 | 42.75 ▼2.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please fix the following
- 140× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\ErrorCorrectionLevel\\ErrorCorrectionLevelInterface' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/endroid/qr-code/src/ErrorCorrectionLevel/ErrorCorrectionLevelHigh.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\RoundBlockSizeMode\\RoundBlockSizeModeInterface' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeMargin.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/bacon/bacon-qr-code/test/Common/ModeTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/mjaschen/phpgeo/tests/Location/CardinalDirection/CardinalDirectionDistancesTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/mjaschen/phpgeo/tests/Location/PolylineTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\Label\\Alignment\\LabelAlignmentInterface' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/endroid/qr-code/src/Label/Alignment/LabelAlignmentLeft.php:7
- > PHP Fatal error
Uncaught Error: Interface 'BaconQrCode\\Exception\\ExceptionInterface' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/bacon/bacon-qr-code/src/Exception/InvalidArgumentException.php:6
- > PHP Fatal error
Uncaught Error: Interface 'Endroid\\QrCode\\RoundBlockSizeMode\\RoundBlockSizeModeInterface' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/endroid/qr-code/src/RoundBlockSizeMode/RoundBlockSizeModeNone.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Location\\Formatter\\Coordinate\\FormatterInterface' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/mjaschen/phpgeo/src/Formatter/Coordinate/GeoJSON.php:14
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/map-location-picker-at-checkout-for-woocommerce/vendor/mjaschen/phpgeo/tests/Location/CardinalDirection/CardinalDirectionTest.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: delivery map, woocommerce, geolocation, google map, location picker...
map-location-picker-at-checkout-for-woocommerce/lpac.php 85% from 13 tests
"Kikote - Location Picker at Checkout & Google Address AutoFill Plugin for WooCommerce" version 1.8.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.5" instead of "5.7")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("map-location-picker-at-checkout-for-woocommerce.php" instead of "lpac.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin56,338 lines of code in 468 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 390 | 12,658 | 23,248 | 53,149 |
Markdown | 35 | 782 | 0 | 1,784 |
JavaScript | 14 | 81 | 187 | 502 |
JSON | 2 | 0 | 0 | 386 |
CSS | 17 | 48 | 15 | 254 |
XML | 6 | 54 | 83 | 166 |
YAML | 2 | 8 | 0 | 51 |
make | 1 | 13 | 1 | 45 |
SVG | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 20.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 60 | |
Interfaces | 35 | |
Traits | 3 | |
Classes | 274 | |
▷ Abstract classes | 4 | 1.46% |
▷ Concrete classes | 270 | 98.54% |
▷ Final classes | 103 | 38.15% |
Methods | 2,611 | |
▷ Static methods | 359 | 13.75% |
▷ Public methods | 1,987 | 76.10% |
▷ Protected methods | 60 | 2.30% |
▷ Private methods | 564 | 21.60% |
Functions | 136 | |
▷ Named functions | 108 | 79.41% |
▷ Anonymous functions | 28 | 20.59% |
Constants | 280 | |
▷ Global constants | 114 | 40.71% |
▷ Class constants | 166 | 59.29% |
▷ Public constants | 81 | 48.80% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
18 PNG files occupy 2.41MB with 1.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/printus.png | 148.50KB | 89.54KB | ▼ 39.70% |
assets/img/map-builder.png | 596.91KB | 189.95KB | ▼ 68.18% |
assets/img/logo.png | 12.96KB | 4.54KB | ▼ 65.00% |
vendor/freemius/wordpress-sdk/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/mjaschen/phpgeo/docs/100_Geometries/bounds-factory.png | 74.46KB | 26.85KB | ▼ 63.94% |