Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼7.86MB] [CPU: ▼1,621,630.36ms] Passed 4 tests
Analyzing server-side resources used by Advanced Local Pickup for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 45.27 ▲3.23 |
Dashboard /wp-admin | 3.42 ▼31.65 | 53.85 ▼6,486,520.65 |
Posts /wp-admin/edit.php | 3.54 ▲0.13 | 52.56 ▲4.66 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.07 | 95.70 ▼8.68 |
Media Library /wp-admin/upload.php | 3.34 ▲0.07 | 42.67 ▲4.85 |
Server storage [IO: ▲2.00MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Local Pickup for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.14 ▼0.58 | 1.68 ▼0.20 | 43.71 ▼2.82 |
Dashboard /wp-admin | 2,204 ▲27 | 5.51 ▼0.17 | 91.81 ▼1.76 | 40.64 ▼9.49 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.01 ▲0.07 | 34.50 ▼3.48 | 36.01 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.26 ▲0.16 | 643.00 ▼46.92 | 62.64 ▲7.34 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.02 | 97.98 ▼6.91 | 45.42 ▼1.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 10× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_local_pickup() in wp-content/plugins/advanced-local-pickup-for-woocommerce/include/views/wclp-edit-location-form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_local_pickup() in wp-content/plugins/advanced-local-pickup-for-woocommerce/templates/emails/plain/pickup-instruction.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-local-pickup-for-woocommerce/include/views/admin_footer_panel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/advanced-local-pickup-for-woocommerce/include/views/admin_message_panel.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_local_pickup() in wp-content/plugins/advanced-local-pickup-for-woocommerce/include/views/wclp_locations_tab.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/advanced-local-pickup-for-woocommerce/include/views/wclp_setting_tab.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_local_pickup() in wp-content/plugins/advanced-local-pickup-for-woocommerce/templates/myaccount/pickup-instruction.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_local_pickup() in wp-content/plugins/advanced-local-pickup-for-woocommerce/include/views/wclp_pickup_location_instruction_preview.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_local_pickup() in wp-content/plugins/advanced-local-pickup-for-woocommerce/templates/emails/pickup-instruction.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/advanced-local-pickup-for-woocommerce/include/views/wclp_addon_tab.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: ""
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in advanced-local-pickup-for-woocommerce/assets to your readme.txt
advanced-local-pickup-for-woocommerce/woo-advanced-local-pickup.php 77% from 13 tests
The principal PHP file in "Advanced Local Pickup for WooCommerce" v. 1.5.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-local-pickup-for-woocommerce.php" instead of "woo-advanced-local-pickup.php")
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.0")
- Description: Please keep the plugin description shorter than 140 characters (currently 145 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,568 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 597 | 625 | 4,042 |
CSS | 7 | 418 | 65 | 2,531 |
PO File | 7 | 728 | 1,058 | 1,710 |
JavaScript | 6 | 204 | 171 | 1,209 |
SVG | 4 | 1 | 3 | 57 |
XML | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 66.43 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 311.00 |
Average method complexity | 5.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 6 | 5.94% |
▷ Public methods | 98 | 97.03% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.97% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cev-icon.png | 18.66KB | 2.33KB | ▼ 87.50% |
include/customizer/dist/25570203a9df4725d87c.png | 8.75KB | 5.49KB | ▼ 37.33% |
assets/images/ast-icon.png | 4.53KB | 2.38KB | ▼ 47.53% |
assets/images/alp-logo.png | 12.82KB | 6.33KB | ▼ 50.67% |
assets/images/alp-pro-icon.png | 46.09KB | 10.13KB | ▼ 78.03% |