90% acf-token-input

Code Review | ACF Token Input

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

About plugin

  • Plugin page: acf-token-input
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2016
  • Latest release: Nov 2, 2022
  • Number of updates: 16
  • Update frequency: every 139.3 days
  • Top authors: navzme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,199 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by ACF Token Input
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.20 ▼3.02
Dashboard /wp-admin3.32 ▲0.0153.71 ▲8.21
Posts /wp-admin/edit.php3.37 ▲0.0143.63 ▼6.98
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.62 ▲0.15
Media Library /wp-admin/upload.php3.24 ▲0.0135.81 ▼2.01

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ACF Token Input
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.74 ▲0.361.88 ▲0.2658.54 ▲13.59
Dashboard /wp-admin2,206 ▲244.82 ▼1.0999.73 ▼9.2036.33 ▼5.73
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0235.47 ▼3.1530.69 ▼3.40
Add New Post /wp-admin/post-new.php1,533 ▲823.14 ▲0.01600.44 ▼15.3854.87 ▲2.02
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0497.73 ▼9.7841.68 ▼5.72

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: acf, tag, repeater, input, token

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

The entry point to "ACF Token Input" version 1.1.0 is a PHP file that has certain tags in its header comment area
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 considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,104 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1126106628
PHP4246600268
CSS2312208

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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