78% elex-bulk-edit-products-prices-attributes-for-woocommerce-basic

Code Review | ELEX WooCommerce Advanced Bulk Edit Products, Prices & Attributes

WordPress plugin ELEX WooCommerce Advanced Bulk Edit Products, Prices & Attributes scored78%from 54 tests.

About plugin

  • Plugin page: elex-bulk-edit-pr...
  • Plugin version: 1.4.0
  • PHP compatiblity: 6.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 25, 2019
  • Latest release: Nov 20, 2023
  • Number of updates: 43
  • Update frequency: every 36.8 days
  • Top authors: elextensions (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

5,000+ active /96,110 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
This plugin's installer ran successfully

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

A check of server-side resources used by ELEX WooCommerce Advanced Bulk Edit Products, Prices & Attributes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.16 ▼7.59
Dashboard /wp-admin3.31 ▲0.0046.78 ▼0.64
Posts /wp-admin/edit.php3.36 ▲0.0049.53 ▼2.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.01 ▲2.09
Media Library /wp-admin/upload.php3.23 ▲0.0033.25 ▼1.69

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
elex-bulk-edit-products-prices-attributes-for-woocommerce-basic/elex-bulk-edit-woocommerce-products-basic.php_activation_date
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

ELEX WooCommerce Advanced Bulk Edit Products, Prices & Attributes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.13 ▼0.581.76 ▲0.1536.94 ▼6.64
Dashboard /wp-admin2,195 ▲155.58 ▼0.0291.11 ▼9.2240.76 ▼6.19
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0439.18 ▼0.8135.68 ▼1.36
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.11630.75 ▼65.8051.83 ▼6.56
Media Library /wp-admin/upload.php1,403 ▼04.18 ▲0.01103.21 ▲3.9042.80 ▼0.26

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • elex-bulk-edit-products-prices-attributes-for-woocommerce-basic/elex-bulk-edit-woocommerce-products-basic.php_activation_date
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/elex-bulk-edit-products-prices-attributes-for-woocommerce-basic/review_and_troubleshoot_notify/resources/logo.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-bulk-edit-products-prices-attributes-for-woocommerce-basic/review_and_troubleshoot_notify/resources/review.php:58
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/elex-bulk-edit-products-prices-attributes-for-woocommerce-basic/review_and_troubleshoot_notify/resources/troubleshoot.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: bulk edit attributes, woocommerce bulk edit, woocommerce, bulk edit, bulk edit price

elex-bulk-edit-products-prices-attributes-for-woocommerce-basic/elex-bulk-edit-woocommerce-products-basic.php 85% from 13 tests

The main PHP file in "ELEX WooCommerce Advanced Bulk Edit Products, Prices & Attributes" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("elex-bulk-edit-products-prices-attributes-for-woocommerce-basic.php" instead of "elex-bulk-edit-woocommerce-products-basic.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "2.6.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin21,150 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
CSS3691911,083
JavaScript44431694,479
PHP133262114,424
PO File24426041,164

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity22.00
▷ Minimum class complexity1.00
▷ Maximum class complexity52.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions3692.31%
▷ Anonymous functions37.69%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.88MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/catalog_mode.png85.64KB21.17KB▼ 75.28%
assets/images/ship%20calculator.png102.70KB27.53KB▼ 73.19%
assets/images/prod-logo.png69.40KB15.94KB▼ 77.03%
assets/images/ShipEngine.png79.12KB18.90KB▼ 76.12%
assets/icons/chosen-sprite.png0.63KB0.88KB0.00%