78% bulk-product-price-update-for-woocommerce

Code Review | Bulk Product Price Update for Woocommerce

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

About plugin

  • Plugin page: bulk-product-pric...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.1
  • WordPress version: 6.3.1
  • First release: Nov 11, 2022
  • Latest release: Nov 11, 2022
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: tusharknovator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /210 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.96ms] Passed 4 tests

A check of server-side resources used by Bulk Product Price Update for Woocommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.87 ▼1.76
Dashboard /wp-admin3.32 ▲0.0250.08 ▼6.23
Posts /wp-admin/edit.php3.37 ▲0.0253.13 ▲5.52
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.86 ▼9.67
Media Library /wp-admin/upload.php3.25 ▲0.0235.06 ▼2.19

Server storage [IO: ▲0.20MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Product Price Update for Woocommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲14213.91 ▼0.465.00 ▲2.8244.09 ▼0.79
Dashboard /wp-admin2,251 ▲455.26 ▲0.38112.52 ▲9.1841.35 ▼4.55
Posts /wp-admin/edit.php2,185 ▲852.77 ▲0.7547.68 ▲3.5739.73 ▲0.52
Add New Post /wp-admin/post-new.php1,553 ▼123.43 ▲5.03685.94 ▲63.7656.20 ▲4.66
Media Library /wp-admin/upload.php1,430 ▲364.59 ▲0.3497.44 ▲0.4043.51 ▲2.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bulk-product-price-update-for-woocommerce/public/partials/bulk-price-update-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_woocommerce_currency_symbol() in wp-content/plugins/bulk-product-price-update-for-woocommerce/admin/partials/bulk-price-update-admin-display.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

bulk-product-price-update-for-woocommerce/bulk-price-update.php 85% from 13 tests

"Bulk Product Price Update for Woocommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bulk-product-price-update-for-woocommerce.php" instead of "bulk-price-update.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected484 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12122556334
CSS316888
JavaScript445762

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.86
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected