89% bulk-price-converter-for-woocommerce

Code Review | Price Update: Bulk Pricing Editor for WooCommerce

WordPress plugin Price Update: Bulk Pricing Editor for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: bulk-price-conver...
  • Plugin version: 1.9.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Sep 24, 2023
  • Number of updates: 61
  • Update frequency: every 45.6 days
  • Top authors: algoritmika (47.54%)omardabbas (47.54%)wpcodefactory (8.2%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active /21,029 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
Installer ran successfully

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

This is a short check of server-side resources used by Price Update: Bulk Pricing Editor for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.67 ▼6.96
Dashboard /wp-admin3.32 ▲0.0250.09 ▼3.80
Posts /wp-admin/edit.php3.37 ▲0.0250.45 ▲4.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.06 ▼16.63
Media Library /wp-admin/upload.php3.25 ▲0.0238.54 ▼1.16

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Price Update: Bulk Pricing Editor for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.201.85 ▲0.1944.54 ▲4.41
Dashboard /wp-admin2,195 ▲185.63 ▼0.0593.34 ▲2.7243.77 ▲6.95
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0142.90 ▲6.0336.05 ▼1.88
Add New Post /wp-admin/post-new.php1,526 ▼923.33 ▲5.19684.64 ▲13.4463.30 ▼9.91
Media Library /wp-admin/upload.php1,397 ▼64.24 ▲0.11101.11 ▲4.9244.35 ▲1.30

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Main Page with General Settings), #2 (Bulk Price Converter Tool)
The official readme.txt might help

bulk-price-converter-for-woocommerce/bulk-price-converter-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "Price Update: Bulk Pricing Editor for WooCommerce" version 1.9.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)

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
No dangerous file extensions were detected656 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP681300654
INI1002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity18.83
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity4.15
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods34
▷ Static methods12.94%
▷ Public methods34100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin