90% merge-duplicate-terms

Code Review | Merge duplicate terms

WordPress plugin Merge duplicate terms scored90%from 54 tests.

About plugin

  • Plugin page: merge-duplicate-t...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4.1
  • WordPress version: 6.3.1
  • First release: Jan 13, 2016
  • Latest release: Jan 18, 2016
  • Number of updates: 11
  • Update frequency: every 0.5 days
  • Top authors: zabatonni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,763 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.72ms] Passed 4 tests

This is a short check of server-side resources used by Merge duplicate terms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.51 ▼8.41
Dashboard /wp-admin3.35 ▲0.0442.86 ▼2.70
Posts /wp-admin/edit.php3.40 ▲0.0446.06 ▼0.71
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.79 ▲2.23
Media Library /wp-admin/upload.php3.27 ▲0.0435.23 ▲0.95
Merge terms /wp-admin/tools.php?page=zaba-merge-terms3.2429.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Merge duplicate terms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.381.58 ▼0.4242.99 ▼0.78
Dashboard /wp-admin2,207 ▲194.89 ▲0.00110.22 ▲0.5043.27 ▲0.20
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0439.79 ▲0.3537.57 ▲1.37
Add New Post /wp-admin/post-new.php1,540 ▲1223.27 ▲0.06676.24 ▲12.4460.83 ▲10.54
Media Library /wp-admin/upload.php1,392 ▲104.19 ▼0.0193.07 ▼9.7941.76 ▼0.92
Merge terms /wp-admin/tools.php?page=zaba-merge-terms8222.0129.8535.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: duplicate, tags, taxonomy, categories, terms...

merge-duplicate-terms/merge-duplicate-terms.php Passed 13 tests

"Merge duplicate terms" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
63 characters long description:
Plugin for easy merging duplicate terms (tags, categories, ...)

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
There were no executable files found in this plugin211 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12419211

PHP code Passed 2 tests

A short 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.65
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods550.00%
▷ Protected methods00.00%
▷ Private methods550.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin