Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.50ms] Passed 4 tests
Analyzing server-side resources used by Order date, Order pickup, Order date time, Pickup Location, delivery date for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.03 ▼6.18 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.60 ▼14.28 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.64 ▼1.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.05 ▼11.68 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.89 ▲0.02 |
Server storage [IO: ▲2.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 89 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Order date, Order pickup, Order date time, Pickup Location, delivery date for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.29 ▼0.06 | 1.70 ▲0.02 | 38.40 ▼1.03 |
Dashboard /wp-admin | 2,195 ▲21 | 5.58 ▲0.05 | 94.18 ▼4.17 | 42.40 ▼5.45 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.94 ▲0.01 | 39.14 ▼0.73 | 35.03 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.37 ▲0.27 | 641.66 ▼37.72 | 50.73 ▼5.91 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.15 ▼0.12 | 96.17 ▼3.44 | 42.20 ▼0.64 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pi-woocommerce-order-date-time-and-type/pi-woocommerce-order-date-time-and-type.php
- > /wp-content/plugins/pi-woocommerce-order-date-time-and-type/include/pisol.class.form.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/include/banner-sample.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/admin/options-pickup.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/public/class-main.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/admin/options-time.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/public/class-shipping-method.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/admin/menu.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function pi_dtt_pro_check() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/admin/options-limit.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function pisol_dtt_get_setting() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/public/class-woo-app.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function pi_dtt_pro_check() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/admin/options-time-slot.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pi-woocommerce-order-date-time-and-type/include/includes.php:3
- > 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 issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Screenshots: These screenshots need descriptions #1, #10, #11, #12, #13, #14, #15, #16, #17, #19, #2, #20, #21, #22, #23, #3, #4, #6, #7, #9 in pi-woocommerce-order-date-time-and-type/assets to your readme.txt
pi-woocommerce-order-date-time-and-type/pi-woocommerce-order-date-time-and-type.php 85% from 13 tests
The entry point to "Order date, Order pickup, Order date time, Pickup Location, delivery date for WooCommerce" version 3.0.41 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 90 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin15,899 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 2,112 | 73 | 10,630 |
PHP | 33 | 963 | 163 | 3,572 |
SVG | 4 | 3 | 4 | 1,036 |
JavaScript | 8 | 132 | 30 | 636 |
XML | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.90 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 29 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 214 | |
▷ Static methods | 37 | 17.29% |
▷ Public methods | 214 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 8 | 57.14% |
▷ Anonymous functions | 6 | 42.86% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
34 PNG files occupy 1.10MB with 0.45MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/ui-icons_228ef1_256x240.png | 4.49KB | 4.18KB | ▼ 6.89% |
admin/css/images/ui-icons_bbbbbb_256x240.png | 6.91KB | 4.18KB | ▼ 39.46% |
admin/css/images/ui-bg_diagonals-thick_20_666666_40x40.png | 0.34KB | 0.15KB | ▼ 55.27% |
admin/css/images/ui-icons_ededed_256x240.png | 6.83KB | 4.18KB | ▼ 38.76% |
admin/css/images/ui-bg_highlight-hard_100_f9f9f9_1x100.png | 0.28KB | 0.10KB | ▼ 63.57% |