90% bulk-stock-update-for-woocommerce

Code Review | WM Bulk Stock Update for WooCommerce

WordPress plugin WM Bulk Stock Update for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: bulk-stock-update...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2015
  • Latest release: Jan 3, 2016
  • Number of updates: 9
  • Update frequency: every 18.3 days
  • Top authors: webmumbai (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /2,438 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▲0.27ms] Passed 4 tests

Analyzing server-side resources used by WM Bulk Stock Update for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.76 ▲4.47
Dashboard /wp-admin3.32 ▲0.0147.84 ▼0.79
Posts /wp-admin/edit.php3.43 ▲0.0847.50 ▲1.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.54 ▼1.52
Media Library /wp-admin/upload.php3.24 ▲0.0135.81 ▲1.56

Server storage [IO: ▲0.23MB] [DB: ▲0.63MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

WM Bulk Stock Update for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,782 ▲4713.69 ▼0.611.73 ▲0.0553.11 ▲10.53
Dashboard /wp-admin2,209 ▲214.80 ▼1.10103.33 ▲5.4241.18 ▼2.68
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0139.37 ▲0.1535.01 ▲0.38
Add New Post /wp-admin/post-new.php1,542 ▲918.32 ▼4.81664.98 ▲23.8353.08 ▲1.52
Media Library /wp-admin/upload.php1,385 ▼64.24 ▼0.0592.02 ▼5.2840.29 ▼1.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: bulk stock update, bulk stock mannage, one page update stock, update product stock, update prouct quantity...

bulk-stock-update-for-woocommerce/wm-bulk-stock-update-for-woocommerce-init.php 92% from 13 tests

The principal PHP file in "WM Bulk Stock Update for WooCommerce" v. 1.1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bulk-stock-update-for-woocommerce.php" instead of "wm-bulk-stock-update-for-woocommerce-init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,209 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File1287675

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity258.00
▷ Minimum class complexity258.00
▷ Maximum class complexity258.00
Average method complexity10.18
▷ Minimum method complexity1.00
▷ Maximum method complexity81.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods28100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
3 PNG files occupy 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshots/screenshot-2.png40.06KB17.75KB▼ 55.69%
screenshots/screenshot-3.png59.50KB26.72KB▼ 55.10%
screenshots/screenshot-1.png71.31KB27.11KB▼ 61.99%