90% acf-multiple-taxonomy

Code Review | ACF: Multiple Taxonomy

WordPress plugin ACF: Multiple Taxonomy scored90%from 54 tests.

About plugin

  • Plugin page: acf-multiple-taxo...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2021
  • Latest release: Feb 5, 2023
  • Number of updates: 21
  • Update frequency: every 35.6 days
  • Top authors: gameryo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,105 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by ACF: Multiple Taxonomy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.04 ▲2.49
Dashboard /wp-admin3.32 ▲0.0148.18 ▼2.04
Posts /wp-admin/edit.php3.37 ▲0.0146.61 ▲0.09
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.12 ▼12.37
Media Library /wp-admin/upload.php3.24 ▲0.0137.88 ▲5.45

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for ACF: Multiple Taxonomy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.101.65 ▼0.3445.06 ▲0.47
Dashboard /wp-admin2,206 ▲184.80 ▼0.25108.65 ▼4.1637.86 ▼5.63
Posts /wp-admin/edit.php2,089 ▲212.05 ▼0.0138.87 ▲3.0436.85 ▲4.35
Add New Post /wp-admin/post-new.php1,534 ▲123.10 ▼0.05694.63 ▲18.6157.28 ▼3.72
Media Library /wp-admin/upload.php1,388 ▼34.18 ▲0.00110.39 ▲6.3447.00 ▲1.36

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
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: You can take inspiration from this readme.txt

acf-multiple-taxonomy/acf-multiple-taxonomy.php Passed 13 tests

The principal PHP file in "ACF: Multiple Taxonomy" v. 1.0.6 is loaded by WordPress automatically on each request
105 characters long description:
A simple plugin to add a Multiple Taxonomy field. It allows you to select term(s) from multiple taxonomy.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin479 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP2278293339
PO File1242466
Markdown620049
JavaScript1203325

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity27.50
▷ Minimum class complexity2.00
▷ Maximum class complexity53.00
Average method complexity4.79
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.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

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