90% acf-youtube-picker

Code Review | ACF YouTube Picker

WordPress plugin ACF YouTube Picker scored90%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: 6.3.1
  • 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

5 reviews

Install metrics

500+ active /5,470 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.98ms] Passed 4 tests

Analyzing server-side resources used by ACF YouTube Picker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.22 ▼1.36
Dashboard /wp-admin3.33 ▲0.0247.57 ▼4.82
Posts /wp-admin/edit.php3.38 ▲0.0249.22 ▼4.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.07 ▼5.18
Media Library /wp-admin/upload.php3.25 ▲0.0237.50 ▼1.90

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for ACF YouTube Picker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2914.64 ▲0.061.61 ▼0.4140.36 ▼2.30
Dashboard /wp-admin2,206 ▲185.92 ▲0.05111.35 ▼19.2240.04 ▼6.01
Posts /wp-admin/edit.php2,089 ▼61.98 ▼0.0238.10 ▼13.1731.34 ▼6.60
Add New Post /wp-admin/post-new.php1,514 ▼517.62 ▼5.54647.60 ▲15.1964.82 ▼35.14
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.07108.04 ▼13.0242.57 ▼2.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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

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, but this is not an exhaustive test


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

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

The main PHP file in "ACF YouTube Picker" ver. 3.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file 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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,902 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin