94% advanced-custom-fields-tag-it

Code Review | Advanced Custom Fields: Tag It Field

WordPress plugin Advanced Custom Fields: Tag It Field scored 94% from 54 tests.

About plugin

  • Plugin page: advanced-custom-f...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 5.9.2
  • First release: Aug 27, 2015
  • Latest release: Jul 3, 2016
  • Number of updates: 6
  • Update frequency: every 51.8 days
  • Top authors: iambriansreed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,648 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Advanced Custom Fields: Tag It Field
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.78 ▲4.19
Dashboard /wp-admin3.41 ▲0.0132.33 ▼1.14
Posts /wp-admin/edit.php3.65 ▲0.0135.99 ▼0.88
Add New Post /wp-admin/post-new.php6.89 ▼0.0894.71 ▼1,143.83
Media Library /wp-admin/upload.php3.30 ▼0.0022.57 ▼7.38

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Custom Fields: Tag It Field
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,785 ▲5915.88 ▲0.136.14 ▲0.632.09 ▼0.22
Dashboard /wp-admin2,895 ▲346.14 ▼0.03117.58 ▼10.75155.54 ▼5.40
Posts /wp-admin/edit.php2,694 ▲63.23 ▼0.0162.26 ▼1.59138.19 ▲0.80
Add New Post /wp-admin/post-new.php1,661 ▼9117.25 ▼3.65389.79 ▼37.21152.82 ▼3.33
Media Library /wp-admin/upload.php1,698 ▼35.51 ▲0.07143.75 ▼0.31188.32 ▼4.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
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 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-custom-fields-tag-it/acf-tag-it.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-tag-it/field.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please delete some tags, you are using 21 tag instead of maximum 10
Please take inspiration from this readme.txt

advanced-custom-fields-tag-it/acf-tag-it.php 92% from 13 tests

This is the main PHP file of "Advanced Custom Fields: Tag It Field" version 2.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("advanced-custom-fields-tag-it.php" instead of "acf-tag-it.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin57 lines of code in 2 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
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin