Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.41ms] Passed 4 tests
An overview of server-side resources used by Woocommerce Customer Delivery Date Time Selection
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.31 ▲1.07 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.18 ▼13.42 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.33 ▲0.12 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 81.58 ▼17.08 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.34 ▲0.74 |
Server storage [IO: ▲2.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wcd_date_time |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
wcd_settings |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Woocommerce Customer Delivery Date Time Selection
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.67 ▲0.02 | 1.78 ▲0.01 | 44.80 ▲7.63 |
Dashboard /wp-admin | 2,215 ▲24 | 5.74 ▲0.84 | 96.22 ▼11.49 | 40.14 ▼5.88 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▲0.04 | 41.51 ▲0.86 | 34.77 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,546 ▲32 | 23.13 ▲5.59 | 656.13 ▼2.33 | 50.07 ▼0.57 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.16 ▼0.02 | 96.11 ▼1.22 | 42.52 ▼0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- theysaidso_admin_options
- wcd_date_time
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- wcd_settings
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/woocommerce-customer-delivery-date-time-selection/wcd_date_time_setings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-customer-delivery-date-time-selection/wcd_date_time.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
7 plugin tags: customer delivery date, checkout, order delivery, checkout calendar, woocommerce...
woocommerce-customer-delivery-date-time-selection/wcd_date_time.php 92% from 13 tests
Analyzing the main PHP file in "Woocommerce Customer Delivery Date Time Selection" version 1.1
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("woocommerce-customer-delivery-date-time-selection.php" instead of "wcd_date_time.php")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin352 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 49 | 330 |
JavaScript | 1 | 5 | 1 | 15 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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 0% from 2 tests
Image compression 0% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 2.64MB with 1.86MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) screenshot-4.png | 2,584.42KB | 0.00KB | ▼ 100.00% |
screenshot-3.png | 37.99KB | 15.55KB | ▼ 59.05% |
screenshot-1.png | 34.38KB | 13.41KB | ▼ 61.01% |
screenshot-2.png | 47.56KB | 18.56KB | ▼ 60.98% |