Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼10.87ms] Passed 4 tests
Server-side resources used by Local Pickup Pro for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 29.64 ▼8.56 |
Dashboard /wp-admin | 3.44 ▲0.09 | 47.18 ▼14.36 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 42.66 ▼6.74 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 87.98 ▼13.80 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.87 ▲2.69 |
All Locations /wp-admin/edit.php?post_type=local-pickup-pro | 3.40 | 43.30 |
Settings /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wpll-shipping-method | 3.13 | 26.88 |
Add New /wp-admin/post-new.php?post_type=local-pickup-pro | 3.37 | 39.34 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
recovery_mode_email_last_sent |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Local Pickup Pro for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,492 ▼254 | 14.31 ▼0.06 | 0.48 ▼1.11 | 20.74 ▼19.58 |
Dashboard /wp-admin | 2,233 ▲55 | 5.65 ▼0.04 | 85.36 ▼21.71 | 38.00 ▲1.11 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 2.01 ▼0.00 | 35.29 ▼1.41 | 32.05 ▼13.38 |
Add New Post /wp-admin/post-new.php | 1,559 ▲33 | 20.96 ▼2.07 | 589.76 ▼29.88 | 82.72 ▲3.14 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.18 ▼0.04 | 99.08 ▼2.92 | 48.58 ▲4.05 |
All Locations /wp-admin/edit.php?post_type=local-pickup-pro | 1,118 | 2.00 | 33.17 | 32.29 |
Settings /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wpll-shipping-method | 28 | 0.42 | 0.07 | 3.85 |
Add New /wp-admin/post-new.php?post_type=local-pickup-pro | 1,345 | 1.51 | 7.56 | 32.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=local-pickup-pro
- > Error in wp-content/plugins/woo-local-pickup-pro/includes/wlpp-post-type.php+124
Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/woo-local-pickup-pro/includes/wlpp-post-type.php:124
Stack trace:
#0 wp-admin/includes/template.php(1443): wlpp_metabox_details_content()
#1 wp-admin/edit-form-advanced.php(688): do_meta_boxes()
#2 wp-admin/post-new.php(75): require('/var/www/wordpr...')
#3 {main}
thrown
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
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-local-pickup-pro/includes/wlpp-checkout.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-local-pickup-pro/includes/wlpp-admin.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woo-local-pickup-pro/includes/wlpp-ship-method.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-local-pickup-pro/includes/wlpp-post-type.php:36
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wpll-shipping-method
- > Network (severe)
wp-admin/admin.php?page=wc-settings&tab=shipping§ion=wpll-shipping-method - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% 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
8 plugin tags: store pickup, local pickup, woocoomerce local pickup, e-commerce, ecommerce...
woo-local-pickup-pro/install.php 77% from 13 tests
The main PHP file in "Local Pickup Pro for WooCommerce" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-local-pickup-pro.php" instead of "install.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,816 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 42 | 48 | 1,225 |
PHP | 6 | 57 | 54 | 591 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/css/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
includes/assets/css/images/ui-icons_cc0000_256x240.png | 4.52KB | 4.18KB | ▼ 7.56% |
includes/assets/css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |
includes/assets/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
includes/assets/css/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |