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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼9.77ms] Passed 4 tests
An overview of server-side resources used by Date Range Filter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.71 ▼6.18 |
Dashboard /wp-admin | 3.54 ▲0.24 | 30.14 ▼16.88 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 41.08 ▼2.34 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.68 ▼13.69 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.32 ▲8.23 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
dashboard_widget_options |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Date Range Filter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲274 | 13.65 ▲0.48 | 1.64 ▼3.11 | 29.99 ▼18.59 |
Dashboard /wp-admin | 2,415 ▲227 | 4.87 ▼0.15 | 110.37 ▼3.36 | 46.29 ▲4.40 |
Posts /wp-admin/edit.php | 2,203 ▲114 | 2.30 ▲0.15 | 41.19 ▲4.41 | 30.72 ▼5.80 |
Add New Post /wp-admin/post-new.php | 1,534 ▲4 | 23.45 ▲5.23 | 663.97 ▲45.31 | 51.96 ▲3.87 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.25 ▲0.07 | 94.60 ▼5.98 | 39.87 ▼5.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- dashboard_widget_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/date-range-filter/includes/dashboard/widget.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/date-range-filter/date-range-filter.php:565
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/date-range-filter/includes/dashboard/config.php:4
- > PHP Notice
Undefined variable: output in wp-content/plugins/date-range-filter/includes/dashboard/widget.php on line 5
- > PHP Warning
Declaration of Carbon\\Carbon::setTime($hour, $minute, $second = 0) should be compatible with DateTime::setTime($hour, $minute, $second = NULL, $microseconds = NULL) in wp-content/plugins/date-range-filter/includes/vendor/Carbon.php on line 653
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/date-range-filter/includes/dashboard/widget.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: dashboard, filter, date, widget, admin...
date-range-filter/date-range-filter.php Passed 13 tests
The entry point to "Date Range Filter" version 0.0.11 is a PHP file that has certain tags in its header comment area
75 characters long description:
Easily filter the admin list of post and custom post type with a date range
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected2,447 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 379 | 1,193 | 1,610 |
CSS | 4 | 83 | 40 | 352 |
Bourne Again Shell | 2 | 45 | 25 | 193 |
JavaScript | 2 | 26 | 6 | 136 |
Markdown | 3 | 50 | 0 | 107 |
YAML | 2 | 6 | 0 | 43 |
XML | 1 | 3 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 59.67 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 150 | |
▷ Static methods | 31 | 20.67% |
▷ Public methods | 148 | 98.67% |
▷ Protected methods | 2 | 1.33% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 19 | |
▷ Global constants | 3 | 15.79% |
▷ Class constants | 16 | 84.21% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
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.png | 6.15KB | 4.17KB | ▼ 32.13% |
images/datepicker-icons-gray.png | 8.33KB | 4.17KB | ▼ 49.88% |