89% duplicate-term

Code Review | Duplicate Taxonomy Term

WordPress plugin Duplicate Taxonomy Term scored89%from 54 tests.

About plugin

  • Plugin page: duplicate-term
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2020
  • Latest release: Apr 9, 2023
  • Number of updates: 14
  • Update frequency: every 59.9 days
  • Top authors: sebastian.pisula (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /4,702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Duplicate Taxonomy Term
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.17 ▼7.08
Dashboard /wp-admin3.33 ▲0.0349.27 ▼4.81
Posts /wp-admin/edit.php3.38 ▲0.0255.44 ▲1.45
Add New Post /wp-admin/post-new.php5.91 ▲0.02103.00 ▲8.22
Media Library /wp-admin/upload.php3.25 ▲0.0236.89 ▼0.69

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Duplicate Taxonomy Term: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▼0.032.07 ▲0.0443.00 ▼1.63
Dashboard /wp-admin2,198 ▲185.70 ▲0.0084.38 ▼8.0039.76 ▼5.44
Posts /wp-admin/edit.php2,103 ▲32.03 ▲0.0038.16 ▲3.0134.36 ▼1.71
Add New Post /wp-admin/post-new.php1,557 ▲2318.37 ▼4.82611.89 ▼34.8257.53 ▼1.79
Media Library /wp-admin/upload.php1,397 ▼64.22 ▼0.00100.55 ▼2.7944.42 ▲1.37

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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)
Good news, no errors were detected

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention: You can take inspiration from this readme.txt

duplicate-term/duplicate-term.php 92% from 13 tests

The main PHP file in "Duplicate Taxonomy Term" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.6" instead of "3.1")

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
Good job! No executable or dangerous file extensions detected78 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2275478

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
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
There were not PNG files found in your plugin