100% acf-date-time-picker

Code Review | Date & Time Picker for Advanced Custom Fields

WordPress plugin Date & Time Picker for Advanced Custom Fields scored 100% from 54 tests.

About plugin

  • Plugin page: acf-date-time-picker
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.1
  • WordPress version: 5.9.2
  • First release: Apr 2, 2016
  • Latest release: May 3, 2016
  • Number of updates: 16
  • Update frequency: every 4.7 days
  • Top authors: toszcze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 6,132 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼292.12ms] Passed 4 tests

An overview of server-side resources used by Date & Time Picker for Advanced Custom Fields
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0260.60 ▲4.47
Dashboard /wp-admin3.42 ▲0.0136.09 ▲0.62
Posts /wp-admin/edit.php3.65 ▲0.0145.17 ▲3.12
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.82 ▼1,176.67
Media Library /wp-admin/upload.php3.30 ▲0.0132.90 ▲5.61

Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Date & Time Picker for Advanced Custom Fields
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.30 ▼0.295.79 ▼0.312.79 ▲0.30
Dashboard /wp-admin2,895 ▲346.11 ▼0.12124.50 ▼10.81159.59 ▼54.56
Posts /wp-admin/edit.php2,688 ▼63.22 ▼0.0162.50 ▼1.51135.81 ▼7.97
Add New Post /wp-admin/post-new.php1,698 ▲1821.48 ▲2.54466.07 ▲55.64293.70 ▲132.04
Media Library /wp-admin/upload.php1,695 ▲15.61 ▲0.08191.75 ▲2.29262.13 ▲79.31

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 uses markdown syntax to describe your plugin to the world
5 plugin tags: timepicker, advanced custom fields, datepicker, custom field, acf

acf-date-time-picker/acf-date_time_picker.php 92% from 13 tests

Analyzing the main PHP file in "Date & Time Picker for Advanced Custom Fields" version 1.1.4
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("acf-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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected2,460 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42233251,879
PHP468236380
PO File25660161
CSS36540

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity2.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin