Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▲2.88ms] Passed 4 tests
A check of server-side resources used by Local Delivery by DoorDash
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.47 ▲2.46 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.65 ▲6.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 44.95 ▼2.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 88.59 ▲5.30 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.72 ▲5.90 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Local Delivery by DoorDash
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲15 | 14.74 ▲1.51 | 1.84 ▲0.22 | 43.50 ▲4.52 |
Dashboard /wp-admin | 2,213 ▲7 | 5.85 ▲0.02 | 104.51 ▲4.12 | 42.15 ▲2.21 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.02 ▼0.03 | 38.65 ▲2.63 | 33.17 ▲2.28 |
Add New Post /wp-admin/post-new.php | 1,518 ▼1 | 17.59 ▼5.66 | 683.19 ▲38.68 | 69.33 ▲11.77 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.23 ▲0.04 | 96.63 ▼2.67 | 44.92 ▲2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/local-delivery-by-doordash/public/partials/woocommerce-doordash-public-display.php
- > /wp-content/plugins/local-delivery-by-doordash/admin/partials/woocommerce-doordash-admin-display.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/local-delivery-by-doordash/admin/partials/woocommerce-doordash-admin-settings-main.php:18
- > PHP Notice
Undefined variable: prefix in wp-content/plugins/local-delivery-by-doordash/admin/partials/woocommerce-doordash-admin-settings-main.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/local-delivery-by-doordash/admin/partials/woocommerce-doordash-admin-settings-edit-location.php:18
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/local-delivery-by-doordash/admin/class-woocommerce-doordash-settings.php:25
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/local-delivery-by-doordash/includes/class-woocommerce-doordash-shipping-method.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: delivery, doordash, shipping, woocommerce
local-delivery-by-doordash/woocommerce-doordash.php 85% from 13 tests
"Local Delivery by DoorDash" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("local-delivery-by-doordash.php" instead of "woocommerce-doordash.php")
- Description: Keep the plugin description shorter than 140 characters (currently 208 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected2,919 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 603 | 1,809 | 2,313 |
JavaScript | 3 | 51 | 81 | 309 |
CSS | 2 | 54 | 69 | 296 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 145 | |
▷ Static methods | 2 | 1.38% |
▷ Public methods | 132 | 91.03% |
▷ Protected methods | 8 | 5.52% |
▷ Private methods | 5 | 3.45% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected