Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼1.84ms] Passed 4 tests
Analyzing server-side resources used by Delivery Times for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 28.97 ▼20.48 |
Dashboard /wp-admin | 3.66 ▲0.35 | 57.38 ▲9.50 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 52.83 ▲3.71 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 108.61 ▲3.96 |
Media Library /wp-admin/upload.php | 3.49 ▲0.27 | 40.35 ▲5.45 |
Delivery Times /wp-admin/admin.php?page=dtwc_settings | 3.49 | 37.94 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
dtwc_advanced |
theysaidso_admin_options |
widget_recent-comments |
dtwc_business |
dtwc_basic |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Delivery Times for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,617 ▼140 | 15.09 ▲0.72 | 0.54 ▼2.10 | 18.17 ▼26.74 |
Dashboard /wp-admin | 2,358 ▲167 | 6.61 ▲1.74 | 119.54 ▲18.06 | 38.98 ▲0.42 |
Posts /wp-admin/edit.php | 2,270 ▲181 | 3.56 ▲1.52 | 55.66 ▲20.69 | 29.62 ▼5.97 |
Add New Post /wp-admin/post-new.php | 1,683 ▲150 | 22.20 ▼0.84 | 583.69 ▼19.72 | 43.32 ▼6.47 |
Media Library /wp-admin/upload.php | 1,403 ▲21 | 4.31 ▲0.19 | 82.25 ▼19.07 | 45.23 ▲4.30 |
Delivery Times /wp-admin/admin.php?page=dtwc_settings | 1,330 | 3.54 | 47.23 | 26.71 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 9 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- dtwc_advanced
- widget_recent-posts
- db_upgraded
- dtwc_business
- dtwc_basic
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 no errors were found, this is by no means 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/delivery-times-for-woocommerce/admin/partials/dtwc-admin-display.php
- > /wp-content/plugins/delivery-times-for-woocommerce/public/partials/dtwc-public-display.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/delivery-times-for-woocommerce/admin/dtwc-helper-functions.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delivery-times-for-woocommerce/admin/dtwc-woocommerce-checkout.php:116
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/delivery-times-for-woocommerce/admin/dtwc-ddwc-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delivery-times-for-woocommerce/admin/dtwc-woocommerce-settings.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/delivery-times-for-woocommerce/admin/class-dtwc-admin-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/delivery-times-for-woocommerce/admin/dtwc-admin-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/delivery-times-for-woocommerce/delivery-times-for-woocommerce.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/delivery-times-for-woocommerce/uninstall.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: order-delivery, woocommerce, delivery, courier, delivery-times
delivery-times-for-woocommerce/delivery-times-for-woocommerce.php 92% from 13 tests
The primary PHP file in "Delivery Times for WooCommerce" version 1.8.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "3.5.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,902 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 432 | 1,144 | 1,173 |
CSS | 6 | 367 | 62 | 1,158 |
PO File | 3 | 162 | 168 | 482 |
JavaScript | 2 | 20 | 40 | 84 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 10.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 2 | 3.57% |
▷ Public methods | 51 | 91.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 8.93% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 5 | |
▷ Global constants | 5 | 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
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.27KB | 0.18KB | ▼ 35.00% |
public/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
public/css/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
public/css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
public/css/images/ui-icons_888888_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |