Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼136.89ms] Passed 4 tests
Analyzing server-side resources used by Date and Time Picker Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 37.54 ▲2.25 |
Dashboard /wp-admin | 3.07 ▲0.01 | 49.16 ▲12.22 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 50.18 ▲5.64 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 89.43 ▼559.07 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.85 ▲3.62 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 63 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Date and Time Picker Field
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲97 | 15.86 ▼0.16 | 10.78 ▲0.26 | 43.65 ▼4.10 |
Dashboard /wp-admin | 2,967 ▲36 | 5.91 ▼0.08 | 150.29 ▼4.00 | 105.10 ▼10.72 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.00 | 64.58 ▼1.71 | 83.06 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,683 ▲11 | 18.79 ▲0.16 | 391.27 ▲13.49 | 108.77 ▼7.03 |
Media Library /wp-admin/upload.php | 1,807 ▼15 | 5.02 ▼0.02 | 178.97 ▲22.41 | 116.33 ▲0.82 |
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 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-field-date-time-picker/date-time-picker-v4.php:4
- > PHP Fatal error
Uncaught Error: Class 'acf_Field' not found in wp-content/plugins/acf-field-date-time-picker/date-time-picker-v3.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/acf-field-date-time-picker/acf-date-time-picker.php:29
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: timepicker, custom field, acf, datepicker
acf-field-date-time-picker/acf-date-time-picker.php 92% from 13 tests
The main PHP file in "Date and Time Picker Field" ver. 2.1.5 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("acf-field-date-time-picker.php" instead of "acf-date-time-picker.php")
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
There were no executable files found in this plugin3,703 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 41 | 232 | 428 | 2,500 |
PHP | 3 | 113 | 249 | 702 |
CSS | 3 | 40 | 66 | 401 |
PO File | 1 | 34 | 39 | 100 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 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 | 1 | |
▷ Global constants | 1 | 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
13 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
css/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
css/images/ui-icons_888888_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |