100% acf-multi-dates-picker

Code Review | ACF Multi Dates Field

WordPress plugin ACF Multi Dates Field scored 100% from 53 tests.

About plugin

  • Plugin page: acf-multi-dates-p...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.9.0
  • WordPress version: 5.8.1
  • First release: Dec 15, 2017
  • Latest release: May 19, 2018
  • Number of updates: 103
  • Update frequency: every 1.5 days
  • Top authors: devnanguo (100%)

Code review

53 tests

User reviews

2 reviews

Install metrics

900+ active / 3,825 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼431.91ms] Passed 4 tests

Server-side resources used by ACF Multi Dates Field
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.55 ▲13.17
Dashboard /wp-admin3.06 ▲0.0143.65 ▲6.20
Posts /wp-admin/edit.php3.11 ▲0.0141.63 ▼2.34
Add New Post /wp-admin/post-new.php5.43 ▼0.0090.82 ▼1,726.06
Media Library /wp-admin/upload.php3.00 ▼0.0032.34 ▼5.44

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF Multi Dates Field: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,692 ▲18115.92 ▲1.567.82 ▲0.1245.00 ▼3.22
Dashboard /wp-admin2,949 ▲846.01 ▲0.20135.31 ▼18.33108.30 ▼1.24
Posts /wp-admin/edit.php2,706 ▲32.69 ▼0.0166.07 ▲2.9394.99 ▲0.75
Add New Post /wp-admin/post-new.php1,653 ▲17418.76 ▲1.66365.49 ▲1.93108.29 ▼4.37
Media Library /wp-admin/upload.php1,772 ▼04.99 ▼0.01153.36 ▲1.97115.25 ▼1.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
No plugin tags provided

acf-multi-dates-picker/acf-multi-dates-picker.php Passed 13 tests

The entry point to "ACF Multi Dates Field" version 1.1.0 is a PHP file that has certain tags in its header comment area
41 characters long description:
Advanced Custom Fields Multi Dates Picker

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
Success! There were no dangerous files found in this plugin834 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.67
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.23
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.33MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-3.png213.33KB78.50KB▼ 63.20%
screenshots/screenshot-2.png73.99KB28.82KB▼ 61.05%
screenshots/screenshot-1.png41.71KB16.78KB▼ 59.78%
assets/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%