84% bulk-edit-upsells-and-cross-sells-for-woocommerce

Code Review | Bulk Edit Upsells and Cross-Sells for WooCommerce

WordPress plugin Bulk Edit Upsells and Cross-Sells for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: bulk-edit-upsells...
  • Plugin version: 2.0.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: May 30, 2022
  • Latest release: Sep 16, 2023
  • Number of updates: 17
  • Update frequency: every 28.2 days
  • Top authors: saffiretech (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /2,362 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 gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.37ms] Passed 4 tests

Server-side resources used by Bulk Edit Upsells and Cross-Sells for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.81 ▼4.28
Dashboard /wp-admin3.31 ▼0.0444.99 ▼13.84
Posts /wp-admin/edit.php3.36 ▲0.0041.01 ▲1.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.01 ▼16.50
Media Library /wp-admin/upload.php3.23 ▲0.0032.09 ▲1.14

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Bulk Edit Upsells and Cross-Sells for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.821.70 ▼0.0444.26 ▲0.10
Dashboard /wp-admin2,192 ▲155.62 ▼0.0186.35 ▼17.2236.34 ▼6.33
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0837.17 ▼2.8636.11 ▲0.47
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▲0.28652.10 ▲28.8147.90 ▼8.12
Media Library /wp-admin/upload.php1,391 ▼124.21 ▼0.0298.99 ▼1.0544.49 ▲1.60

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-upsells-and-cross-sells-for-woocommerce/includes/beucw-functions.php:61
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-edit-upsells-and-cross-sells-for-woocommerce/includes/beucw-settings.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

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
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

bulk-edit-upsells-and-cross-sells-for-woocommerce/bulk-edit-upsells-and-cross-sells-for-woocommerce.php 92% from 13 tests

The main PHP file in "Bulk Edit Upsells and Cross-Sells for WooCommerce" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,273 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS34439646
PHP383117471
JavaScript3408156

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin