Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▲229.04ms] 75% from 4 tests
An overview of server-side resources used by Delivery date for woocommerce
Please fix the following
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 229.04ms on /wp-admin/options-general.php?page=delivery)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 39.09 ▲0.68 |
Dashboard /wp-admin | 3.49 ▲0.15 | 356.63 ▲300.57 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 364.30 ▲313.07 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 404.13 ▲311.59 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 338.02 ▲303.32 |
Delivery Date Setting /wp-admin/options-general.php?page=delivery | 3.35 | 348.07 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
ddfw_delivery_options_group |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Delivery date for woocommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲183 | 14.10 ▼0.34 | 6.42 ▲4.87 | 41.60 ▲1.23 |
Dashboard /wp-admin | 2,222 ▲31 | 5.04 ▼0.86 | 96.69 ▼3.19 | 39.54 ▼3.90 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.20 ▲0.23 | 34.50 ▼6.25 | 32.12 ▼6.56 |
Add New Post /wp-admin/post-new.php | 1,531 ▲8 | 23.24 ▲0.28 | 573.60 ▼92.61 | 51.48 ▲0.11 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.18 ▲0.02 | 103.33 ▲6.94 | 45.14 ▲5.08 |
Delivery Date Setting /wp-admin/options-general.php?page=delivery | 772 | 1.81 | 42.25 | 34.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- ddfw_delivery_options_group
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/delivery-date-for-woocommerce/public/partials/delivery_date_for_woocommerce-public-display.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/delivery-date-for-woocommerce/admin/partials/delivery_date_for_woocommerce-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: woocommerce delivery date, custom delivery dates for order, custom delivery date, woocommerce, order delivery date for woocommerce...
delivery-date-for-woocommerce/delivery_date_for_woocommerce.php 85% from 13 tests
The main file in "Delivery date for woocommerce" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: It is recommended to name the main PHP file as the plugin slug ("delivery-date-for-woocommerce.php" instead of "delivery_date_for_woocommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,907 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1 | 16 | 757 |
PHP | 12 | 150 | 549 | 596 |
JavaScript | 3 | 53 | 100 | 499 |
SVG | 2 | 0 | 2 | 55 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/img/ui-icons_ef8c08_256x240.png | 6.84KB | 4.18KB | ▼ 38.88% |
admin/css/img/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.31KB | 0.14KB | ▼ 54.26% |
public/css/img/ui-bg_glass_100_f6f6f6_1x400.png | 0.29KB | 0.12KB | ▼ 59.47% |
admin/partials/customization.png | 22.52KB | 10.34KB | ▼ 54.10% |
admin/partials/pixlogix.png | 114.06KB | 35.39KB | ▼ 68.97% |