84% quick-bulk-taxonomy-term-creator

Code Review | Quick Bulk Term Taxonomy Creator

WordPress plugin Quick Bulk Term Taxonomy Creator scored84%from 54 tests.

About plugin

  • Plugin page: quick-bulk-taxono...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Apr 11, 2016
  • Number of updates: 14
  • Update frequency: every 25.6 days
  • Top authors: tyxla (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

900+ active /6,458 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.08MB] [CPU: ▼5.71ms] Passed 4 tests

An overview of server-side resources used by Quick Bulk Term Taxonomy Creator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.37 ▲1.58
Dashboard /wp-admin3.39 ▲0.0843.53 ▼8.74
Posts /wp-admin/edit.php3.50 ▲0.1447.83 ▲2.11
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.26 ▼12.71
Media Library /wp-admin/upload.php3.31 ▲0.0831.15 ▼2.96
Quick Term Creator /wp-admin/tools.php?page=qbttc3.2733.09

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

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

Browser metrics Passed 4 tests

Quick Bulk Term Taxonomy Creator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.74 ▲0.341.78 ▼0.1045.36 ▲1.52
Dashboard /wp-admin2,213 ▲284.87 ▼0.94107.49 ▲1.2442.06 ▼3.56
Posts /wp-admin/edit.php2,093 ▲12.05 ▲0.0540.51 ▼1.9735.83 ▼0.79
Add New Post /wp-admin/post-new.php1,545 ▲1218.49 ▼4.48599.02 ▼30.3463.21 ▲6.81
Media Library /wp-admin/upload.php1,392 ▲44.35 ▲0.1794.80 ▼7.1641.41 ▼2.37
Quick Term Creator /wp-admin/tools.php?page=qbttc8992.1722.9526.55

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'QBTTC_Field' not found in wp-content/plugins/quick-bulk-taxonomy-term-creator/includes/field-select.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'QBTTC_Field' not found in wp-content/plugins/quick-bulk-taxonomy-term-creator/includes/field-text.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quick-bulk-taxonomy-term-creator/includes/form.php:16
    • > PHP Notice
      Undefined variable: qbttc in wp-content/plugins/quick-bulk-taxonomy-term-creator/templates/form.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'QBTTC_Field' not found in wp-content/plugins/quick-bulk-taxonomy-term-creator/includes/field-textarea.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_form() on null in wp-content/plugins/quick-bulk-taxonomy-term-creator/templates/form.php:3

User-side errors Passed 1 test

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

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
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt is a good inspiration

quick-bulk-taxonomy-term-creator/quick-bulk-taxonomy-term-creator.php Passed 13 tests

The main PHP file in "Quick Bulk Term Taxonomy Creator" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
A handy tool for batch creation of taxonomy terms in your preferred hierarchy.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected422 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP9120430380
Markdown121042

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity4.12
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.61
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods42
▷ Static methods49.52%
▷ Public methods3788.10%
▷ Protected methods511.90%
▷ Private methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin