94% acf-dynamic-choices

Code Review | ACF Dynamic Choices

WordPress plugin ACF Dynamic Choices scored 94% from 54 tests.

About plugin

  • Plugin page: acf-dynamic-choices
  • Plugin version: .5...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 5.9.2
  • First release: Jul 16, 2014
  • Latest release: Jul 16, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: grexican (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,310 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

A check of server-side resources used by ACF Dynamic Choices
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0255.30 ▲3.67
Dashboard /wp-admin3.42 ▲0.0131.86 ▼1.64
Posts /wp-admin/edit.php3.65 ▲0.0135.81 ▼1.66
Add New Post /wp-admin/post-new.php6.89 ▼0.0891.13 ▼1,187.45
Media Library /wp-admin/upload.php3.30 ▲0.0124.75 ▼1.50

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ACF Dynamic Choices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.92 ▲0.296.45 ▲0.522.59 ▼0.20
Dashboard /wp-admin2,892 ▲345.98 ▼0.16119.83 ▼15.77161.46 ▼3.22
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0062.87 ▼2.59142.73 ▼1.92
Add New Post /wp-admin/post-new.php1,711 ▲2120.77 ▲0.07433.27 ▼111.77161.54 ▼2.66
Media Library /wp-admin/upload.php1,698 ▲45.54 ▲0.00143.51 ▼14.90192.65 ▲0.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/acf-dynamic-choices/acf-dynamic-choices.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: acf, query, dynamic, sql

acf-dynamic-choices/acf-dynamic-choices.php 92% from 13 tests

This is the main PHP file of "ACF Dynamic Choices" version .5..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of ".5...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected54 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.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
No PNG files were detected