78% woo-bulk-price-update

Code Review | Bulk Price Update for Woocommerce

WordPress plugin Bulk Price Update for Woocommerce scored78%from 54 tests.

About plugin

  • Plugin page: woo-bulk-price-up...
  • Plugin version: 2.2.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 30, 2019
  • Latest release: Jan 21, 2023
  • Number of updates: 29
  • Update frequency: every 47.2 days
  • Top authors: technocrackers (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

3,000+ active /22,761 total downloads

Benchmarks

Plugin footprint 83% from 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.14MB] [CPU: ▼7.76ms] Passed 4 tests

Server-side resources used by Bulk Price Update for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1240.65 ▼1.26
Dashboard /wp-admin3.46 ▲0.1541.93 ▼8.08
Posts /wp-admin/edit.php3.49 ▲0.1443.94 ▲0.23
Add New Post /wp-admin/post-new.php6.13 ▲0.2573.73 ▼21.91
Media Library /wp-admin/upload.php3.40 ▲0.1733.28 ▲1.47
Change Price WC /wp-admin/edit.php?post_type=product&page=bulk-price-update-woocommerce3.1124.25

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Bulk Price Update for Woocommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.11 ▼0.421.70 ▼0.1344.92 ▲1.11
Dashboard /wp-admin2,195 ▲185.56 ▼0.0394.61 ▼8.8642.12 ▼1.67
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0234.35 ▼1.2934.53 ▼1.64
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.67682.92 ▲18.4154.72 ▲3.61
Media Library /wp-admin/upload.php1,394 ▼34.32 ▲0.11101.75 ▼1.1044.58 ▲1.97
Change Price WC /wp-admin/edit.php?post_type=product&page=bulk-price-update-woocommerce280.420.083.44

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-bulk-price-update/woo-bulk-price-update.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=product&page=bulk-price-update-woocommerce
    • > Network (severe)
    wp-admin/edit.php?post_type=product&page=bulk-price-update-woocommerce - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
The official readme.txt might help

woo-bulk-price-update/woo-bulk-price-update.php Passed 13 tests

The main PHP file in "Bulk Price Update for Woocommerce" ver. 2.2.2 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
WooCommerce percentage pricing by Category allows you to Change WooCommerce products Price By Category.

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 plugin2,272 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3142901,131
PHP218678
CSS4321463

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity37.00
▷ Minimum class complexity10.00
▷ Maximum class complexity64.00
Average method complexity6.54
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.12MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/chosen-sprite.png0.53KB0.88KB0.00%
img/premium.png127.09KB33.38KB▼ 73.73%