Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.86MB] [CPU: ▼15.66ms] Passed 4 tests
This is a short check of server-side resources used by wp date range
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 16.15 ▼17.21 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.58 ▲0.01 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.98 ▲5.50 |
Add New Post /wp-admin/post-new.php | 3.11 ▼2.78 | 45.00 ▼45.74 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.31 ▲0.32 |
Date range settings /wp-admin/options-general.php?page=date_range_setting | 3.28 | 30.58 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wp date range
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.88 ▲0.24 | 1.82 ▼0.19 | 43.82 ▲3.03 |
Dashboard /wp-admin | 2,227 ▲35 | 5.85 ▲0.91 | 105.06 ▲1.62 | 38.29 ▲1.18 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.90 ▲0.89 | 49.10 ▲11.00 | 38.11 ▲4.89 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.33 ▲0.15 | 625.13 ▲8.64 | 61.34 ▲8.44 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.84 ▲0.55 | 112.15 ▲13.47 | 42.24 ▲0.02 |
Date range settings /wp-admin/options-general.php?page=date_range_setting | 1,201 | 2.99 | 36.10 | 27.03 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-date-range/meta-box-panel.php:4
- > PHP Warning
Use of undefined constant DATE_RANGE_FROM - assumed 'DATE_RANGE_FROM' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-date-range/meta-box-panel.php on line 4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-date-range/admin-panel.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: localize, date, datepicker, calendar, range
wp-date-range/wp-date-range.php Passed 13 tests
The main PHP script in "wp date range" version 1.2 is automatically included on every request by WordPress
10 characters long description:
Date range
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,347 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 7 | 271 | 2,503 |
PHP | 3 | 203 | 29 | 507 |
CSS | 2 | 25 | 67 | 297 |
PO File | 1 | 13 | 5 | 40 |
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.31 |
Average class complexity | 42.00 |
▷ Minimum class complexity | 42.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.65KB | 8.66KB | ▼ 58.08% |
css/smoothness/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
css/smoothness/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
css/smoothness/images/ui-icons.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/smoothness/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |