84% bulk-term-generator

Code Review | Bulk Term Generator - Import multiple tags, categories, and taxonomies easily

WordPress plugin Bulk Term Generator - Import multiple tags, categories, and taxonomies easily scored84%from 54 tests.

About plugin

  • Plugin page: bulk-term-generator
  • Plugin version: 1.3.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.2
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: Nov 23, 2023
  • Number of updates: 40
  • Update frequency: every 77.7 days
  • Top authors: NCAllen (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

400+ active /8,493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Bulk Term Generator - Import multiple tags, categories, and taxonomies easily
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.30 ▼2.89
Dashboard /wp-admin3.37 ▲0.0745.94 ▼3.64
Posts /wp-admin/edit.php3.49 ▲0.1347.09 ▼4.12
Add New Post /wp-admin/post-new.php5.97 ▲0.0989.88 ▲1.73
Media Library /wp-admin/upload.php3.30 ▲0.0738.06 ▲2.56
Bulk Term Generator /wp-admin/tools.php?page=bulk_term_generator_options3.3331.39

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Term Generator - Import multiple tags, categories, and taxonomies easily
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.44 ▼0.261.71 ▼0.0738.83 ▼4.14
Dashboard /wp-admin2,202 ▲255.67 ▲0.0994.42 ▼3.4942.38 ▼2.78
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0538.53 ▼2.4436.00 ▼0.34
Add New Post /wp-admin/post-new.php1,529 ▲323.23 ▲0.15653.28 ▼48.4362.58 ▼6.08
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.03110.07 ▲0.1343.88 ▼3.00
Bulk Term Generator /wp-admin/tools.php?page=bulk_term_generator_options8581.9928.2531.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bulk-term-generator/views/admin/templates/generate-terms-page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bulk-term-generator/views/admin/templates/settings-page-default.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

bulk-term-generator/bulk-term-generator.php 92% from 13 tests

"Bulk Term Generator - Import multiple tags, categories, and taxonomies easily" version 1.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Plugin Name: A shorter plugin name is better (currently 77 characters long instead of max. 70)

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 detected2,240 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP13197423683
SVG100565
JavaScript111755433
PO File28894292
CSS2623242
HTML201125

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.14
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3073.17%
▷ Protected methods00.00%
▷ Private methods1126.83%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
views/admin/css/images/delete.png1.21KB0.35KB▼ 70.63%
views/admin/css/images/edit.png1.35KB0.43KB▼ 68.14%