84% create-category-in-bulk

Code Review | Bulk Post Category Creator

WordPress plugin Bulk Post Category Creator scored84%from 54 tests.

About plugin

  • Plugin page: create-category-i...
  • Plugin version: 1.6
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2019
  • Latest release: Jul 8, 2023
  • Number of updates: 18
  • Update frequency: every 76.8 days
  • Top authors: kartikparmar (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /11,992 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Bulk Post Category Creator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0438.87 ▼2.26
Dashboard /wp-admin3.35 ▲0.0548.12 ▼5.81
Posts /wp-admin/edit.php3.41 ▲0.0456.29 ▲4.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.78 ▼18.26
Media Library /wp-admin/upload.php3.28 ▲0.0437.40 ▲0.52
Create Bulk Categories /wp-admin/edit.php?page=bulk_wordpress_category_creator3.2637.76

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Post Category Creator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.101.80 ▼0.0745.60 ▲2.90
Dashboard /wp-admin2,196 ▲225.62 ▲0.0486.42 ▼19.7338.08 ▼9.48
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0440.07 ▲3.8335.25 ▼2.40
Add New Post /wp-admin/post-new.php1,529 ▲123.36 ▲0.14676.90 ▼28.7553.79 ▼25.87
Media Library /wp-admin/upload.php1,404 ▲74.25 ▲0.06102.21 ▼3.6245.76 ▼1.28
Create Bulk Categories /wp-admin/edit.php?page=bulk_wordpress_category_creator8892.0631.4628.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
Everything seems fine, however this is by no means 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 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?page=bulk_wordpress_category_creator
    • > Network (severe)
    wp-content/plugins/woocommerce/assets/css/admin.css?ver=1.6 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?page=bulk_wordpress_category_creator
    • > Network (severe)
    wp-content/plugins/woocommerce/assets/js/select2/select2.min.js?ver=1.6 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?page=bulk_wordpress_category_creator
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).select2 is not a function" "TypeError: jQuery(...).select2 is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/create-category-in-bulk/js/bulk-wordpress-category-creator.js?ver=1.6:3:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/edit.php?page=bulk_wordpress_category_creator
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).select2 is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: bulk post categories, post categories bulk, wordpress post category, add post categories, post category creator

create-category-in-bulk/bulk-category-creator-wordpress.php 92% from 13 tests

This is the main PHP file of "Bulk Post Category Creator" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("create-category-in-bulk.php" instead of "bulk-category-creator-wordpress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected242 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15975216
PO File15723
JavaScript1013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods880.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ 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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/screenshot-1.png41.47KB12.07KB▼ 70.90%