83% woo-bulk-editor

Code Review | BEAR - Bulk Editor and Products Manager Professional for WooCommerce by Pluginus.Net

WordPress plugin BEAR - Bulk Editor and Products Manager Professional for WooCommerce by Pluginus.Net scored83%from 54 tests.

About plugin

  • Plugin page: woo-bulk-editor
  • Plugin version: 1.1.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.9-6.3
  • WordPress version: 6.3.1
  • First release: May 7, 2018
  • Latest release: Sep 22, 2023
  • Number of updates: 186
  • Update frequency: every 10.6 days
  • Top authors: RealMag777 (100%)

Code review

54 tests

User reviews

183 reviews

Install metrics

30,000+ active /509,156 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.72MB] [CPU: ▼6.99ms] Passed 4 tests

A check of server-side resources used by BEAR - Bulk Editor and Products Manager Professional for WooCommerce by Pluginus.Net
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.23 ▲0.7743.83 ▲2.75
Dashboard /wp-admin4.07 ▲0.7258.99 ▼5.04
Posts /wp-admin/edit.php4.12 ▲0.7648.66 ▼13.40
Add New Post /wp-admin/post-new.php6.58 ▲0.7095.87 ▼12.25
Media Library /wp-admin/upload.php3.93 ▲0.7043.57 ▲8.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 194 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for BEAR - Bulk Editor and Products Manager Professional for WooCommerce by Pluginus.Net
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.67 ▼0.745.04 ▲3.3847.64 ▲2.57
Dashboard /wp-admin2,224 ▲335.88 ▲1.00109.16 ▼2.6043.28 ▼4.35
Posts /wp-admin/edit.php2,100 ▲32.02 ▲0.0137.48 ▼1.1530.46 ▼5.75
Add New Post /wp-admin/post-new.php1,546 ▲1423.26 ▲0.20654.52 ▼5.9760.31 ▼29.29
Media Library /wp-admin/upload.php1,400 ▲64.22 ▲0.00102.84 ▲0.3148.65 ▲7.96

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 14× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/woo-bulk-editor/ext/history/views/panel.php
    • > /wp-content/plugins/woo-bulk-editor/lib/storage.php
    • > /wp-content/plugins/woo-bulk-editor/views/parts/top_panel.php
    • > /wp-content/plugins/woo-bulk-editor/ext/info/views/panel.php
    • > /wp-content/plugins/woo-bulk-editor/views/parts/advanced-table.php
    • > /wp-content/plugins/woo-bulk-editor/ext/export/views/panel.php
    • > /wp-content/plugins/woo-bulk-editor/ext/calculator/views/panel.php
    • > /wp-content/plugins/woo-bulk-editor/ext/filters/views/panel.php
    • > /wp-content/plugins/woo-bulk-editor/ext/bulkoperations/views/panel.php
    • > /wp-content/plugins/woo-bulk-editor/ext/history/views/list.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% 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 to be fixed:
  • Screenshots: Add descriptions for screenshots #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #22, #23, #24, #25, #26, #27, #28, #29, #3, #30, #31, #4, #5, #6, #7, #8, #9 in woo-bulk-editor/assets to your readme.txt
The official readme.txt might help

woo-bulk-editor/index.php 77% from 13 tests

The main PHP script in "BEAR - Bulk Editor and Products Manager Professional for WooCommerce by Pluginus.Net" version 1.1.4 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-bulk-editor.php" instead of "index.php")
  • Description: The description should be shorter than 140 characters (currently 161 characters long)
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 4.9")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin49,851 lines of code in 146 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript425,7959,43922,857
PHP542,75992912,576
CSS438782717,908
PO File31,8132,1284,582
SVG1001,839
Markdown231088
JSON1001

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
It is recommended to fix the following
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 132)
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity78.52
▷ Minimum class complexity1.00
▷ Maximum class complexity294.00
Average method complexity6.72
▷ Minimum method complexity1.00
▷ Maximum method complexity132.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes21
▷ Abstract classes14.76%
▷ Concrete classes2095.24%
▷ Final classes1575.00%
Methods244
▷ Static methods3112.70%
▷ Public methods21788.93%
▷ Protected methods31.23%
▷ Private methods249.84%
Functions42
▷ Named functions1330.95%
▷ Anonymous functions2969.05%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
27 compressed PNG files occupy 0.53MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/js/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/images/info-2.png2.34KB1.74KB▼ 25.48%
assets/images/sort_desc_disabled.png0.14KB0.25KB0.00%
assets/images/bear_banner.png46.74KB46.76KB0.00%
assets/js/chosen/chosen-sprite.png0.53KB0.88KB0.00%