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.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.8
  • WordPress version: 5.8.1
  • First release: May 12, 2018
  • Latest release: Aug 21, 2021
  • Number of updates: 40
  • Update frequency: every 31.1 days
  • Top authors: kartikparmar (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 13,386 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: ▼139.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.1235.54 ▲14.48
Dashboard /wp-admin3.06 ▲0.0141.95 ▼2.30
Posts /wp-admin/edit.php3.11 ▲0.0043.52 ▲0.56
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.00 ▼558.17
Media Library /wp-admin/upload.php3.00 ▲0.0031.00 ▲0.12
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius2.7519.63

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_debug_mode
fs_accounts
fs_gdpr
fs_active_plugins

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,679 ▲7315.89 ▼0.319.93 ▲0.0947.07 ▲0.56
Dashboard /wp-admin2,967 ▲365.93 ▼0.14135.59 ▼5.70106.70 ▼2.77
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0065.90 ▼1.5998.66 ▲3.77
Add New Post /wp-admin/post-new.php3,689 ▲2,18915.09 ▼3.48410.02 ▲42.90113.87 ▲7.28
Media Library /wp-admin/upload.php1,807 ▲595.01 ▲0.03140.19 ▼3.20117.66 ▲0.48
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius280.900.0811.47

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_debug_mode
    • fs_active_plugins
    • fs_accounts

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
      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
    • > 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 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 8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/bulk-woocommerce-category-creator/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS 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 7

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, multiple, category, bulk, product

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

The entry point to "Bulk WooCommerce Category Creator" version 2.1 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,662 lines of code in 138 files:
LanguageFilesBlank linesComment linesLines of code
PHP1087,16716,01429,969
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%
images/screenshot-1.png41.47KB12.07KB▼ 70.90%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%