84% advanced-custom-fields-tag-it

Code Review | Advanced Custom Fields: Tag It Field

WordPress plugin Advanced Custom Fields: Tag It Field scored84%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: 6.3.1
  • 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 /3,166 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.57ms] Passed 4 tests

A check of server-side resources used by Advanced Custom Fields: Tag It Field
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.99 ▼4.02
Dashboard /wp-admin3.31 ▲0.0152.29 ▲1.55
Posts /wp-admin/edit.php3.36 ▲0.0046.01 ▼3.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.93 ▼4.11
Media Library /wp-admin/upload.php3.23 ▲0.0040.43 ▲3.61

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advanced Custom Fields: Tag It Field
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.301.79 ▼0.4243.54 ▲1.22
Dashboard /wp-admin2,198 ▲215.63 ▼0.0395.25 ▲3.4944.11 ▲2.74
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0234.26 ▼3.6337.82 ▲4.07
Add New Post /wp-admin/post-new.php1,526 ▼223.13 ▲0.04705.27 ▲8.4659.77 ▲5.37
Media Library /wp-admin/upload.php1,397 ▼04.23 ▼0.01110.03 ▼7.6746.41 ▼1.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-tag-it/field.php:3
    • > 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

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)
No browser issues were found

Optimizations

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
Please fix the following attributes:
  • Tags: You are using too many tags: 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

Analyzing the main PHP file in "Advanced Custom Fields: Tag It Field" version 2.0.0
The following require your attention:
  • Main file name: The principal 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 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2171157

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
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
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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 images were found in this plugin