Benchmarks
Plugin footprint Passed 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.17MB] [CPU: ▼152.54ms] Passed 4 tests
Analyzing server-side resources used by Woo Orders date range filter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.17 | 36.05 ▲15.30 |
Dashboard /wp-admin | 2.90 ▼0.16 | 28.35 ▼17.86 |
Posts /wp-admin/edit.php | 3.02 ▼0.09 | 32.57 ▼12.51 |
Add New Post /wp-admin/post-new.php | 5.03 ▼0.40 | 76.24 ▼563.10 |
Media Library /wp-admin/upload.php | 2.99 ▼0.03 | 23.32 ▼16.68 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Woo Orders date range filter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲42 | 15.80 ▲0.23 | 12.85 ▲1.93 | 46.93 ▲1.13 |
Dashboard /wp-admin | 2,970 ▲36 | 5.88 ▼0.05 | 131.34 ▼8.66 | 118.57 ▲0.33 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 67.63 ▲5.42 | 87.42 ▼4.99 |
Add New Post /wp-admin/post-new.php | 1,672 ▼0 | 18.88 ▲0.08 | 378.72 ▼1.09 | 115.13 ▲2.79 |
Media Library /wp-admin/upload.php | 1,804 ▼6 | 5.02 ▼0.03 | 160.23 ▲4.93 | 116.77 ▲1.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-orders-date-range-filter/woo-orders-date-range-filter.php:231
- > 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)
Everything seems fine, but this is not an exhaustive test
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
1 plugin tags: woocommerce
woo-orders-date-range-filter/woo-orders-date-range-filter.php 92% from 13 tests
The main PHP script in "Woo Orders date range filter" version 2.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- 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 an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected2,129 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 34 | 47 | 1,095 |
PHP | 2 | 262 | 1,063 | 1,033 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 140 | |
▷ Static methods | 24 | 17.14% |
▷ Public methods | 138 | 98.57% |
▷ Protected methods | 2 | 1.43% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 3 | 16.67% |
▷ Class constants | 15 | 83.33% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/datepicker-icons-gray.png | 8.33KB | 4.17KB | ▼ 49.88% |
images/datepicker-icons.png | 6.15KB | 4.17KB | ▼ 32.13% |