84% emo-bulk-update-prices-for-woocommerce

Code Review | Emo Bulk Update Prices for WooCommerce

WordPress plugin Emo Bulk Update Prices for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: emo-bulk-update-p...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Apr 27, 2023
  • Latest release: Apr 27, 2023
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: ebi3102 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /91 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.00MB] [CPU: ▼9.19ms] Passed 4 tests

Analyzing server-side resources used by Emo Bulk Update Prices for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.08 ▲1.91
Dashboard /wp-admin3.32 ▼0.0345.51 ▼13.19
Posts /wp-admin/edit.php3.37 ▲0.0142.27 ▼8.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.76 ▼17.07
Media Library /wp-admin/upload.php3.24 ▲0.0133.44 ▲1.54

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Emo Bulk Update Prices for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.19 ▼1.591.93 ▲0.1242.68 ▲2.29
Dashboard /wp-admin2,214 ▲325.83 ▲0.94109.58 ▼3.7039.57 ▼0.21
Posts /wp-admin/edit.php2,094 ▲22.14 ▲0.1034.42 ▼3.9036.63 ▲1.66
Add New Post /wp-admin/post-new.php1,555 ▲1318.60 ▲0.57643.42 ▼14.8566.10 ▲14.32
Media Library /wp-admin/upload.php1,399 ▲84.22 ▲0.0298.47 ▼1.6041.82 ▼3.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'EMO_BUPW\\EMO_BUPW_Form_Error' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/EMO_BUPW_Form_File_Error.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/templates/group-discount.php:1
    • > PHP Fatal error
      Uncaught Error: Interface 'EMO_BUPW\\Repository\\WOO_Product\\EMO_BUPW_Product_Interface' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Repository/WOO_Product/EMO_BUPW_Variation.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'EMO_BUPW\\Repository\\File_Handlers\\EMO_BUPW_File_Handler' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Repository/File_Handlers/EMO_BUPW_Csv_Handler.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'EMO_BUPW\\Form_Handlers\\EMO_BUPW_Form_Submit' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Form_Handlers/EMO_BUPW_Form_Products_Price_List.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'EMO_BUPW\\Repository\\EMO_BUPW_DB' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Repository/EMO_BUPW_DB_Get_All_Products_ID.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/templates/group-price-update.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'EMO_BUPW\\Repository\\WOO_Product\\EMO_BUPW_Product_Interface' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Repository/WOO_Product/EMO_BUPW_Product.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'EMO_BUPW\\Form_Handlers\\EMO_BUPW_Form_Field_Setter' not found in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/Form_Handlers/EMO_BUPW_Form_Update_Price.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emo-bulk-update-prices-for-woocommerce/includes/functions/functions-admin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: woocommerce, woocommerce add-on, bulk update prices, update price

emo-bulk-update-prices-for-woocommerce/emo-bulk-update-prices-for-woocommerce.php Passed 13 tests

The principal PHP file in "Emo Bulk Update Prices for WooCommerce" v. 1.2.0 is loaded by WordPress automatically on each request
140 characters long description:
A powerful system in bulk update WooCommerce products prices that additionally, is able to set discount in bulk way on WooCommerce products.

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
Success! There were no dangerous files found in this plugin2,078 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PHP453927732,063
CSS12010
JSON1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity6.32
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces5
Traits1
Classes25
▷ Abstract classes14.00%
▷ Concrete classes2496.00%
▷ Final classes00.00%
Methods123
▷ Static methods3326.83%
▷ Public methods10282.93%
▷ Protected methods21.63%
▷ Private methods1915.45%
Functions17
▷ Named functions1694.12%
▷ Anonymous functions15.88%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo-icon.png1.87KB0.89KB▼ 52.58%