100% acf-token-input

Code Review | ACF Token Input

WordPress plugin ACF Token Input scored 100% from 54 tests.

About plugin

  • Plugin page: acf-token-input
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 5.9.2
  • First release: Oct 3, 2016
  • Latest release: Aug 7, 2021
  • Number of updates: 15
  • Update frequency: every 118.5 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 955 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.01MB] [CPU: ▼292.69ms] Passed 4 tests

This is a short check of server-side resources used by ACF Token Input
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0266.53 ▲11.03
Dashboard /wp-admin3.42 ▲0.0136.07 ▲2.32
Posts /wp-admin/edit.php3.65 ▲0.0138.28 ▼0.04
Add New Post /wp-admin/post-new.php6.89 ▼0.0797.37 ▼1,162.21
Media Library /wp-admin/upload.php3.30 ▲0.0025.08 ▼10.83

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for ACF Token Input
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,783 ▲2915.89 ▲0.285.91 ▼0.412.18 ▼0.96
Dashboard /wp-admin2,895 ▲376.13 ▼0.02119.51 ▼21.90165.37 ▲4.83
Posts /wp-admin/edit.php2,685 ▼63.24 ▼0.0165.91 ▲3.09143.28 ▲0.56
Add New Post /wp-admin/post-new.php1,661 ▼11216.48 ▼4.66404.99 ▼26.05147.60 ▼14.66
Media Library /wp-admin/upload.php1,701 ▲65.54 ▲0.02147.35 ▲10.63178.41 ▼16.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found


Plugin configuration Passed 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
5 plugin tags: input, acf, repeater, tag, token

acf-token-input/acf-token-input.php Passed 13 tests

The principal PHP file in "ACF Token Input" v. 1.1.0 is loaded by WordPress automatically on each request
104 characters long description:
Bringing the functionality into ACF similar to Facebook whereby you can search and select multiple items

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,104 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods18100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin