72% bulk-woocommerce-category-creator

Code Review | Bulk WooCommerce Category Creator

WordPress plugin Bulk WooCommerce Category Creator scored 72% from 54 tests.

About plugin

  • Plugin page: bulk-woocommerce-...
  • Plugin version: 2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.9
  • WordPress version: 5.8.1
  • First release: May 12, 2018
  • Latest release: Jan 28, 2022
  • Number of updates: 43
  • Update frequency: every 32.6 days
  • Top authors: kartikparmar (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 15,760 total downloads

Benchmarks

Plugin footprint 83% from 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼161.95ms] Passed 4 tests

Analyzing server-side resources used by Bulk WooCommerce Category Creator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0033.34 ▼4.19
Dashboard /wp-admin3.06 ▼0.0037.18 ▼12.40
Posts /wp-admin/edit.php3.11 ▲0.0046.50 ▼9.03
Add New Post /wp-admin/post-new.php5.42 ▼0.0199.48 ▼622.19
Media Library /wp-admin/upload.php3.01 ▲0.0039.10 ▼1.39
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius2.7522.97

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 181 new files
Database: no new tables, 4 new options
New WordPress options
fs_active_plugins
fs_gdpr
fs_debug_mode
fs_accounts

Browser metrics Passed 4 tests

A check of browser resources used by Bulk WooCommerce Category Creator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7514.65 ▼0.5610.51 ▼1.45106.79 ▲2.88
Dashboard /wp-admin2,929 ▲376.15 ▼0.04149.96 ▼43.13204.90 ▼29.44
Posts /wp-admin/edit.php2,737 ▼33.23 ▼0.0086.49 ▼31.97186.91 ▼59.63
Add New Post /wp-admin/post-new.php3,587 ▲2,00618.75 ▲0.77975.77 ▲204.14250.22 ▼49.27
Media Library /wp-admin/upload.php1,746 ▼05.52 ▲0.04210.05 ▼36.63277.50 ▼29.25
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius280.940.0529.11

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 4 options
    • fs_gdpr
    • fs_accounts
    • fs_active_plugins
    • fs_debug_mode

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/ajax-loader.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/account/partials/addon.php:9
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/account/partials/addon.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/partials/network-activation.php:6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/account/partials/addon.php on line 6
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/account/partials/addon.php on line 8

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% 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: create, category, product, bulk, multiple

bulk-woocommerce-category-creator/bulk-wc-category-creator.php 77% from 13 tests

The entry point to "Bulk WooCommerce Category Creator" version 2.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.0.0")
  • Main file name: Name the main plugin file the same as the plugin slug ("bulk-woocommerce-category-creator.php" instead of "bulk-wc-category-creator.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin45,663 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PHP1087,16716,01429,970
PO File136,9658,46215,263
JavaScript43460197
Markdown1610192
JSON10027
CSS110014

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity84.32
▷ Minimum class complexity1.00
▷ Maximum class complexity2,772.00
Average method complexity4.52
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes47
▷ Abstract classes24.26%
▷ Concrete classes4595.74%
▷ Final classes00.00%
Methods1,143
▷ Static methods19116.71%
▷ Public methods80370.25%
▷ Protected methods151.31%
▷ Private methods32528.43%
Functions94
▷ Named functions94100.00%
▷ Anonymous functions00.00%
Constants121
▷ Global constants9679.34%
▷ Class constants2520.66%
▷ Public constants25100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
images/screenshot-1.png41.47KB12.07KB▼ 70.90%