Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼310.06ms] Passed 4 tests
Analyzing server-side resources used by Date And Time Range Picker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 54.64 ▲5.00 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.89 ▼1.73 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 41.47 ▲4.28 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 92.48 ▼1,244.50 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.92 ▲1.70 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Date And Time Range Picker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.84 ▼0.07 | 5.85 ▼1.06 | 2.40 ▼0.33 |
Dashboard /wp-admin | 2,888 ▲27 | 6.14 ▲0.07 | 116.51 ▼34.23 | 153.39 ▼22.04 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.24 ▲0.01 | 66.57 ▲2.27 | 140.23 ▼7.33 |
Add New Post /wp-admin/post-new.php | 1,690 ▲4 | 20.85 ▲1.35 | 419.98 ▼16.88 | 165.07 ▲6.64 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.05 | 144.02 ▼5.46 | 182.99 ▼11.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: date, gravityforms, picker, time, range
date-time-range-picker-gravityforms/data-time-range-picker.php 85% from 13 tests
The main PHP script in "Date And Time Range Picker" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("date-time-range-picker-gravityforms.php" instead of "data-time-range-picker.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,440 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 182 | 33 | 763 |
CSS | 1 | 107 | 2 | 465 |
PO File | 1 | 82 | 85 | 211 |
JavaScript | 1 | 0 | 7 | 1 |
PHP code Passed 2 tests
A short review of 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.18 |
Average class complexity | 6.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 60.34KB | 21.42KB | ▼ 64.50% |
assets/screenshot-3.png | 65.77KB | 23.35KB | ▼ 64.49% |
assets/screenshot-1.png | 37.04KB | 13.64KB | ▼ 63.17% |