94% acf-advanced-taxonomy-selector

Code Review | ACF: Advanced Taxonomy Selector

WordPress plugin ACF: Advanced Taxonomy Selector scored 94% from 54 tests.

About plugin

  • Plugin page: acf-advanced-taxo...
  • Plugin version: 3.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.1
  • WordPress version: 5.9.2
  • First release: Feb 24, 2014
  • Latest release: Feb 16, 2019
  • Number of updates: 12
  • Update frequency: every 151.5 days
  • Top authors: danielpataki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 19,720 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by ACF: Advanced Taxonomy Selector
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.61 ▲5.85
Dashboard /wp-admin3.42 ▲0.0232.84 ▼0.39
Posts /wp-admin/edit.php3.65 ▲0.0235.31 ▼3.92
Add New Post /wp-admin/post-new.php6.89 ▼0.0890.67 ▼1,205.70
Media Library /wp-admin/upload.php3.31 ▲0.0123.11 ▼0.16

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for ACF: Advanced Taxonomy Selector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲3116.23 ▲0.496.00 ▼0.922.33 ▼0.46
Dashboard /wp-admin2,895 ▲376.12 ▼0.05127.96 ▼6.97163.67 ▲1.76
Posts /wp-admin/edit.php2,691 ▼33.25 ▲0.0063.49 ▼2.04138.95 ▼5.70
Add New Post /wp-admin/post-new.php1,661 ▼016.10 ▲0.50396.96 ▼12.80160.85 ▲2.39
Media Library /wp-admin/upload.php1,698 ▲35.48 ▲0.01148.42 ▲12.26186.72 ▼1.13

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
Uninstaller ran successfully

Smoke tests 75% from 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 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
Please fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-advanced-taxonomy-selector/acf-advanced_taxonomy_selector.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-advanced-taxonomy-selector/acf-advanced_taxonomy_selector-v5.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-advanced-taxonomy-selector/acf-advanced_taxonomy_selector-v4.php:23

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 on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #3 (Selecting terms from multiple taxonomies)
The official readme.txt might help

acf-advanced-taxonomy-selector/acf-advanced_taxonomy_selector.php 92% from 13 tests

The main file in "ACF: Advanced Taxonomy Selector" v. 3.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-advanced-taxonomy-selector.php" instead of "acf-advanced_taxonomy_selector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected481 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File1193853

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions7100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin