84% duplicate-taxonomy-terms-and-acf-fields

Code Review | Duplicate taxonomy terms and ACF fields

WordPress plugin Duplicate taxonomy terms and ACF fields scored84%from 54 tests.

About plugin

  • Plugin page: duplicate-taxonom...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.2
  • WordPress version: 6.3.1
  • First release: Aug 25, 2017
  • Latest release: Apr 28, 2019
  • Number of updates: 6
  • Update frequency: every 101.8 days
  • Top authors: gorostas (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /4,384 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 gracefully, with no errors

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

This is a short check of server-side resources used by Duplicate taxonomy terms and ACF fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.22 ▼2.84
Dashboard /wp-admin3.31 ▲0.0147.44 ▼3.98
Posts /wp-admin/edit.php3.36 ▲0.0048.17 ▼1.48
Add New Post /wp-admin/post-new.php5.89 ▲0.00102.80 ▲0.60
Media Library /wp-admin/upload.php3.23 ▲0.0035.59 ▼0.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Duplicate taxonomy terms and ACF fields
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.72 ▲0.361.61 ▼0.5642.19 ▲3.20
Dashboard /wp-admin2,195 ▲185.64 ▲0.1093.92 ▼5.2843.71 ▲1.67
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0140.13 ▲1.2834.48 ▼2.14
Add New Post /wp-admin/post-new.php1,526 ▼422.97 ▼0.34653.76 ▲8.1558.08 ▼1.81
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.03100.90 ▼4.4544.40 ▲2.58

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/duplicate-taxonomy-terms-and-acf-fields/duplicate-taxonomy-terms-and-acf-fields.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: duplicate, copy, acf-duplicate, terms, acf...

duplicate-taxonomy-terms-and-acf-fields/duplicate-taxonomy-terms-and-acf-fields.php 92% from 13 tests

The principal PHP file in "Duplicate taxonomy terms and ACF fields" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191961

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.65
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin