90% wpcat2tag-importer

Code Review | Categories to Tags Converter

WordPress plugin Categories to Tags Converter scored90%from 54 tests.

About plugin

  • Plugin page: wpcat2tag-importer
  • Plugin version: 0.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2010
  • Latest release: May 10, 2023
  • Number of updates: 20
  • Update frequency: every 236.9 days
  • Top authors: nacin (30%)duck_ (25%)ryan (25%)githubsync (15%)Otto42 (10%)

Code review

54 tests

User reviews

16 reviews

Install metrics

70,000+ active /1,439,850 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Categories to Tags Converter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.84 ▲2.25
Dashboard /wp-admin3.39 ▲0.0445.28 ▼15.52
Posts /wp-admin/edit.php3.44 ▲0.0843.12 ▼0.19
Add New Post /wp-admin/post-new.php5.97 ▲0.0883.77 ▼19.58
Media Library /wp-admin/upload.php3.31 ▲0.0836.31 ▲3.15

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Categories to Tags Converter: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.001.76 ▲0.2741.52 ▲3.73
Dashboard /wp-admin2,189 ▲95.56 ▼0.1086.01 ▼0.9639.24 ▲1.71
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0335.17 ▼0.9132.19 ▲1.44
Add New Post /wp-admin/post-new.php1,526 ▼923.29 ▲5.21606.93 ▼29.3257.26 ▼35.12
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.08100.15 ▼1.0443.09 ▲0.10

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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
Even though everything seems fine, this is not an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

wpcat2tag-importer/wpcat2tag-importer.php Passed 13 tests

"Categories to Tags Converter" version 0.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Convert existing categories to tags or tags to categories, selectively.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected365 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19136365

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity5.56
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin