Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.66MB] [CPU: ▲27.61ms] 75% from 4 tests
A check of server-side resources used by Local Delivery Drivers for WooCommerce
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.66MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.25 ▲5.79 | 82.17 ▲38.15 |
Dashboard /wp-admin | 9.27 ▲5.97 | 76.49 ▲22.04 |
Posts /wp-admin/edit.php | 9.28 ▲5.92 | 90.69 ▲38.92 |
Add New Post /wp-admin/post-new.php | 10.86 ▲4.97 | 112.29 ▲11.34 |
Media Library /wp-admin/upload.php | 9.27 ▲6.05 | 85.26 ▲47.30 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.27 | 74.31 |
Server storage [IO: ▲5.38MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 232 new files
Database: 1 new table, 30 new options
New tables |
---|
wp_lddfw_orders |
New WordPress options |
---|
fs_debug_mode |
theysaidso_admin_options |
db_upgraded |
lddfw_delivery_drivers_page |
lddfw_whatsapp_start_delivery_template |
lddfw_sms_start_delivery_template |
lddfw_delivery_dropoff_1 |
lddfw_driver_assigned_status |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Local Delivery Drivers for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.36 ▲0.01 | 1.83 ▼0.02 | 27.61 ▼17.37 |
Dashboard /wp-admin | 2,245 ▲68 | 5.61 ▼0.05 | 99.31 ▲4.84 | 47.92 ▲6.59 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.16 ▲0.17 | 42.77 ▲4.55 | 39.29 ▲1.16 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 22.94 ▼0.25 | 681.40 ▲30.78 | 54.85 ▲7.47 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.40 ▲0.15 | 117.49 ▲12.47 | 53.92 ▲7.16 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,104 | 1.70 | 31.32 | 31.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/local-delivery-drivers-for-woocommerce/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_lddfw_orders
- This plugin does not fully uninstall, leaving 30 options in the database
- lddfw_sms_start_delivery_template
- lddfw_whatsapp_assign_to_driver_template
- lddfw_out_for_delivery_status
- lddfw_sms_out_for_delivery_template
- lddfw_whatsapp_start_delivery_template
- fs_accounts
- lddfw_delivery_dropoff_3
- fs_debug_mode
- lddfw_delivered_status
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/local-delivery-drivers-for-woocommerce/public/partials/lddfw-public-display.php
- > /wp-content/plugins/local-delivery-drivers-for-woocommerce/admin/partials/lddfw-admin-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/local-delivery-drivers-for-woocommerce/includes/lddfw-metaboxes.php:35
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in local-delivery-drivers-for-woocommerce/assets to your readme.txt
local-delivery-drivers-for-woocommerce/local-delivery-drivers-for-woocommerce.php 77% from 13 tests
The main PHP file in "Local Delivery Drivers for WooCommerce" ver. 1.9.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:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.5" instead of "3.0")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 176 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected65,050 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 140 | 8,608 | 19,360 | 38,866 |
CSS | 18 | 1,713 | 62 | 12,847 |
PO File | 8 | 5,144 | 6,324 | 12,117 |
JavaScript | 7 | 216 | 76 | 1,220 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 78.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,426 | |
▷ Static methods | 205 | 14.38% |
▷ Public methods | 1,025 | 71.88% |
▷ Protected methods | 17 | 1.19% |
▷ Private methods | 384 | 26.93% |
Functions | 144 | |
▷ Named functions | 142 | 98.61% |
▷ Anonymous functions | 2 | 1.39% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.37MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) public/images/user.png | 1.49KB | 0.00KB | ▼ 100.00% |
public/images/drivers_app.png | 8.22KB | 2.99KB | ▼ 63.68% |
public/images/lddfw.png | 21.41KB | 19.43KB | ▼ 9.23% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |