100% acf-youtube-picker

Code Review | ACF YouTube Picker

WordPress plugin ACF YouTube Picker scored 100% from 54 tests.

About plugin

  • Plugin page: acf-youtube-picker
  • Plugin version: 3.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.5.2
  • WordPress version: 5.9.2
  • First release: May 29, 2015
  • Latest release: Jun 27, 2016
  • Number of updates: 20
  • Update frequency: every 19.9 days
  • Top authors: airesvsg (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

700+ active / 4,604 total downloads


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: ▼291.62ms] Passed 4 tests

Server-side resources used by ACF YouTube Picker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0359.65 ▲0.75
Dashboard /wp-admin3.43 ▲0.0237.53 ▼2.32
Posts /wp-admin/edit.php3.67 ▲0.0259.27 ▲15.25
Add New Post /wp-admin/post-new.php6.91 ▼0.07128.16 ▼1,165.69
Media Library /wp-admin/upload.php3.32 ▲0.0231.65 ▲0.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

ACF YouTube Picker: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.81 ▲0.695.82 ▲0.032.01 ▼0.47
Dashboard /wp-admin2,885 ▲306.11 ▼0.07115.24 ▼33.23161.06 ▼31.41
Posts /wp-admin/edit.php2,673 ▼213.24 ▲0.0085.04 ▲23.10134.84 ▼8.78
Add New Post /wp-admin/post-new.php1,711 ▼4121.66 ▲0.14451.40 ▲4.95184.60 ▼25.28
Media Library /wp-admin/upload.php1,698 ▲15.50 ▼0.03140.15 ▼29.96192.37 ▲8.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
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
No browser issues were found


Plugin configuration 96% from 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
8 plugin tags: custom field, acf, custom, search, picker...

acf-youtube-picker/acf-youtubepicker.php 92% from 13 tests

Analyzing the main PHP file in "ACF YouTube Picker" version 3.1.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("acf-youtube-picker.php" instead of "acf-youtubepicker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,902 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity17.00
▷ Minimum class complexity2.00
▷ Maximum class complexity34.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods736.84%
▷ Public methods1684.21%
▷ Protected methods315.79%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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 are no PNG files in this plugin