94% bulk-variations-for-woocommerce

Code Review | Bulk Variations for WooCommerce

WordPress plugin Bulk Variations for WooCommerce scored 94% from 54 tests.

About plugin

  • Plugin page: bulk-variations-f...
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 5.8.1
  • First release: Mar 17, 2020
  • Latest release: Mar 26, 2021
  • Number of updates: 9
  • Update frequency: every 41.6 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,049 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼149.07ms] Passed 4 tests

An overview of server-side resources used by Bulk Variations for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1536.40 ▲12.93
Dashboard /wp-admin3.09 ▲0.0437.46 ▼14.32
Posts /wp-admin/edit.php3.14 ▲0.0445.40 ▼4.80
Add New Post /wp-admin/post-new.php5.46 ▲0.0395.99 ▼573.15
Media Library /wp-admin/upload.php3.04 ▲0.0336.92 ▼4.01
Bulk Variations /wp-admin/admin.php?page=wcbv3.0028.49

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Variations for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲11015.93 ▲0.4010.08 ▲0.7253.58 ▲3.16
Dashboard /wp-admin2,967 ▲335.93 ▼0.05148.94 ▼22.33111.37 ▼6.31
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0064.94 ▼4.84104.44 ▲14.44
Add New Post /wp-admin/post-new.php1,498 ▼18518.77 ▲0.31379.51 ▼28.35114.11 ▼12.84
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.03160.95 ▲1.91126.60 ▼10.34
Bulk Variations /wp-admin/admin.php?page=wcbv1,1832.0963.10107.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-variations-for-woocommerce/bulk-variations-for-woocommerce.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: variation, woocommerce, attribute, bulk

bulk-variations-for-woocommerce/bulk-variations-for-woocommerce.php 92% from 13 tests

The main PHP script in "Bulk Variations for WooCommerce" version 1.1.4 is automatically included on every request by WordPress
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.4" instead of "4.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin176 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16241169
JavaScript1237

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin