94% category-tag-tidy

Code Review | Category Tag Tidy

WordPress plugin Category Tag Tidy scored 94% from 54 tests.

About plugin

  • Plugin page: category-tag-tidy
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.9.2
  • First release: Jan 3, 2020
  • Latest release: Mar 10, 2021
  • Number of updates: 7
  • Update frequency: every 61.7 days
  • Top authors: wppluginstech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 411 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼302.50ms] Passed 4 tests

An overview of server-side resources used by Category Tag Tidy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1663.98 ▲5.83
Dashboard /wp-admin3.52 ▲0.1036.67 ▼28.67
Posts /wp-admin/edit.php3.74 ▲0.0943.26 ▲2.03
Add New Post /wp-admin/post-new.php6.98 ▲0.0195.13 ▼1,179.03
Media Library /wp-admin/upload.php3.39 ▲0.0927.49 ▼4.34
Category Tag Tidy /wp-admin/tools.php?page=category-tag-tidy3.3629.58

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Category Tag Tidy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,881 ▲13716.62 ▲0.539.09 ▲1.952.35 ▲0.15
Dashboard /wp-admin2,901 ▲416.11 ▼0.03125.03 ▲0.17184.24 ▲24.63
Posts /wp-admin/edit.php2,700 ▲163.24 ▲0.2063.77 ▼35.21139.33 ▼1.05
Add New Post /wp-admin/post-new.php1,668 ▲715.57 ▼1.36413.56 ▼0.33195.96 ▲15.81
Media Library /wp-admin/upload.php1,708 ▲105.52 ▲0.04139.75 ▼0.67233.17 ▲47.21
Category Tag Tidy /wp-admin/tools.php?page=category-tag-tidy1,0642.4154.45124.02

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/category-tag-tidy/admin/partials/category-tag-tidy-admin-display.php
    • > /wp-content/plugins/category-tag-tidy/public/partials/category-tag-tidy-public-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: unused tags, category, tag, unused categories, clean...

category-tag-tidy/category-tag-tidy.php Passed 13 tests

"Category Tag Tidy" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
91 characters long description:
Allows easy deletion of unused categories and tags - maintains existing category structure.

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
No dangerous file extensions were detected559 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12178524471
PO File1295082
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.29
▷ Minimum class complexity1.00
▷ Maximum class complexity42.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods33
▷ Static methods26.06%
▷ Public methods2884.85%
▷ Protected methods00.00%
▷ Private methods515.15%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin