Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.45MB] [CPU: ▲0.34ms] Passed 4 tests
Server-side resources used by Pickup | Delivery | Dine-in date time
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 46.39 ▲2.42 |
Dashboard /wp-admin | 3.76 ▲0.46 | 54.18 ▲3.89 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 51.82 ▲5.09 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 87.55 ▼4.33 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 39.39 ▼0.63 |
Timeslot Setting /wp-admin/admin.php?page=byconsolewooodtrestro_admin_timeslot_settings | 3.65 | 36.16 |
Custom Modification Request /wp-admin/admin.php?page=byconsolewooodtrestro_admin_modification_request_settings | 3.65 | 35.25 |
Tweak Features /wp-admin/admin.php?page=byconsolewooodtrestro_admin_tweak_features_settings | 3.65 | 30.81 |
Pickup | Delivery | Dine in /wp-admin/admin.php?page=byconsolewooodtrestro_general_settings | 3.65 | 39.68 |
Holiday Management /wp-admin/admin.php?page=byconsolewooodtrestro_admin_holiday_settings | 3.65 | 34.71 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 121 new files
Database: no new tables, 15 new options
New WordPress options |
---|
byconsolewooodtrestro_dinein_lable |
widget_recent-posts |
can_compress_scripts |
byconsolewooodtrestro_takeaway_lable |
widget_recent-comments |
byconsolewooodtrestro_widget_field_position |
theysaidso_admin_options |
byconsolewooodtrestro_free_plugin_activation_date |
widget_byconsolewooodtrestro_widget |
byconsolewooodtrestro_delivery_lable |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Pickup | Delivery | Dine-in date time
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲154 | 13.36 ▼0.99 | 8.35 ▲6.53 | 49.45 ▲3.93 |
Dashboard /wp-admin | 2,234 ▲54 | 5.65 ▼0.01 | 95.42 ▲6.83 | 42.20 ▼0.25 |
Posts /wp-admin/edit.php | 2,139 ▲36 | 1.97 ▼0.05 | 35.41 ▼1.74 | 35.05 ▼1.56 |
Add New Post /wp-admin/post-new.php | 1,557 ▲20 | 23.19 ▲4.82 | 655.64 ▼24.77 | 58.98 ▲0.09 |
Media Library /wp-admin/upload.php | 1,442 ▲45 | 4.25 ▲0.00 | 101.22 ▼3.90 | 43.91 ▼2.63 |
Timeslot Setting /wp-admin/admin.php?page=byconsolewooodtrestro_admin_timeslot_settings | 1,232 | 1.82 | 26.94 | 24.45 |
Custom Modification Request /wp-admin/admin.php?page=byconsolewooodtrestro_admin_modification_request_settings | 881 | 1.67 | 25.82 | 29.84 |
Tweak Features /wp-admin/admin.php?page=byconsolewooodtrestro_admin_tweak_features_settings | 835 | 2.00 | 24.75 | 23.83 |
Pickup | Delivery | Dine in /wp-admin/admin.php?page=byconsolewooodtrestro_general_settings | 1,344 | 2.00 | 24.12 | 30.18 |
Holiday Management /wp-admin/admin.php?page=byconsolewooodtrestro_admin_holiday_settings | 894 | 2.01 | 24.95 | 27.23 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 15 options
- widget_recent-comments
- byconsolewooodtrestro_guest_purpose
- byconsolewooodtrestro_free_plugin_activation_date
- theysaidso_admin_options
- byconsolewooodtrestro_order_type
- byconsolewooodtrestro_guest_no
- widget_theysaidso_widget
- widget_byconsolewooodtrestro_widget
- can_compress_scripts
- byconsolewooodtrestro_dinein_lable
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-pickup-delivery-dine-in/inc/byconsolewooodtrestro_holiday_management.php:493
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-pickup-delivery-dine-in/inc/byconsolewooodtrestro_modification_request_details.php:749
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-pickup-delivery-dine-in/inc/byconsolewooodtrestro_holiday_management.php:493
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-pickup-delivery-dine-in/inc/byconsolewooodtrestro_timeslot_setting.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restaurant-pickup-delivery-dine-in/inc/byconsolewooodtrestro_tweak_features.php:45
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 19 tag instead of maximum 10
- Screenshots: These screenshots require images: #2 (Custom time slot for take away to choose on checkout page), #3 (Custom time slot for pickup settings page at back-end.), #4 (Custom time slot for delivery settings page at back-end.), #5 (Custom time slot for dine in settings page at back-end.), #6 (Custom time slot for delivery to choose on checkout page), #7 (Custom time slot for delivery to choose on checkout page), #8 (Date picker on checkout page for dine in booking.), #9 (Date picker on checkout page for dine in booking.), #14 (Order details page at customer side.)
restaurant-pickup-delivery-dine-in/ByConsoleWooODTRestro.php 85% from 13 tests
The entry point to "Pickup | Delivery | Dine-in date time" version 1.0.9 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 148 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("restaurant-pickup-delivery-dine-in.php" instead of "ByConsoleWooODTRestro.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected4,123 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 6,293 | 319 | 2,305 |
PO File | 6 | 798 | 1,690 | 1,440 |
CSS | 7 | 135 | 18 | 270 |
JavaScript | 4 | 38 | 21 | 108 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 50.00 |
▷ Minimum class complexity | 50.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 13.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 63 | |
▷ Named functions | 63 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
87 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
css/images/five.png | 3.14KB | 0.58KB | ▼ 81.35% |
css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
css/images/ui-bg_inset-soft_25_000000_1x100.png | 0.27KB | 0.18KB | ▼ 32.73% |