10% bulk-products-add

Code Review | Bulk Products Add for WooCommerce

WordPress plugin Bulk Products Add for WooCommerce scored 10% from 53 tests.

About plugin

  • Plugin page: bulk-products-add
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 5.8.1
  • First release: Jan 6, 2021
  • Latest release: Jan 6, 2021
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: infinitools (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 121 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/bulk-products-add/itls-woocommerce-products-add-bulk.php+87
    Undefined index: settings_version

Server metrics [RAM: ▼1.89MB] [CPU: ▼1,284.25ms] Passed 4 tests

An overview of server-side resources used by Bulk Products Add for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.984.36 ▼14.35
Dashboard /wp-admin1.76 ▼1.295.27 ▼41.26
Posts /wp-admin/edit.php1.76 ▼1.345.08 ▼38.59
Add New Post /wp-admin/post-new.php1.76 ▼3.674.48 ▼5,031.07
Media Library /wp-admin/upload.php1.76 ▼1.247.04 ▼26.07

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Products Add for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,648 ▲6616.43 ▲0.977.40 ▲0.6444.50 ▼3.75
Dashboard /wp-admin2,923 ▲736.40 ▲0.44142.72 ▼6.84102.70 ▼0.42
Posts /wp-admin/edit.php2,711 ▲52.95 ▲0.2665.18 ▼5.2791.38 ▲1.52
Add New Post /wp-admin/post-new.php2,059 ▲20616.21 ▼2.77358.41 ▲8.87107.64 ▲1.81
Media Library /wp-admin/upload.php1,777 ▲25.28 ▲0.27144.15 ▼2.09112.02 ▲5.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/bulk-products-add/itls-woocommerce-products-add-bulk.php+87
    Undefined index: settings_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/bulk-products-add/admin/tmpl-port.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-products-add/admin/core.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-products-add/admin/scripts.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: woocommerce products, wc products, wp products, bulk adder, woocommerce...

bulk-products-add/itls-woocommerce-products-add-bulk.php 77% from 13 tests

The main file in "Bulk Products Add for WooCommerce" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bulk-products-add.php" instead of "itls-woocommerce-products-add-bulk.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin629 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP814964450
CSS1331155
JavaScript14024

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/logo.png96.52KB29.50KB▼ 69.44%