83% easy-product-bundles-for-woocommerce

Code Review | Product Bundle Builder for WooCommerce

WordPress plugin Product Bundle Builder for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: easy-product-bund...
  • Plugin version: 3.8.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 17, 2022
  • Latest release: Nov 20, 2023
  • Number of updates: 25
  • Update frequency: every 15.8 days
  • Top authors: asanaplugins (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

1,000+ active /11,617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.33ms] Passed 4 tests

An overview of server-side resources used by Product Bundle Builder for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.65 ▼7.78
Dashboard /wp-admin3.31 ▲0.0045.15 ▼6.90
Posts /wp-admin/edit.php3.36 ▲0.0047.95 ▲1.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.33 ▼8.13
Media Library /wp-admin/upload.php3.23 ▲0.0034.31 ▲2.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Product Bundle Builder for WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.60 ▲0.261.57 ▼0.4435.89 ▼8.14
Dashboard /wp-admin2,195 ▲155.64 ▼0.0395.34 ▼0.9641.66 ▼4.24
Posts /wp-admin/edit.php2,103 ▼01.96 ▼0.0741.32 ▲2.3236.30 ▼1.03
Add New Post /wp-admin/post-new.php1,526 ▼023.51 ▲0.04679.35 ▲23.2058.68 ▲4.29
Media Library /wp-admin/upload.php1,397 ▼04.28 ▲0.1095.11 ▼8.7441.68 ▼1.78

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AsanaPlugins\\WooCommerce\\ProductBundles\\Registry\\AbstractDependencyType' not found in wp-content/plugins/easy-product-bundles-for-woocommerce/src/Registry/SharedType.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'AsanaPlugins\\WooCommerce\\ProductBundles\\Registry\\AbstractDependencyType' not found in wp-content/plugins/easy-product-bundles-for-woocommerce/src/Registry/FactoryType.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (15 tag instead of maximum 10)
The official readme.txt might help

easy-product-bundles-for-woocommerce/easy-product-bundles.php 77% from 13 tests

The main PHP file in "Product Bundle Builder for WooCommerce" ver. 3.8.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.0")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-product-bundles-for-woocommerce.php" instead of "easy-product-bundles.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin8,896 lines of code in 102 files:
LanguageFilesBlank linesComment linesLines of code
JSON46704,612
PHP389578614,259
CSS60113
JavaScript1102411
SVG1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.73
Average class complexity28.45
▷ Minimum class complexity1.00
▷ Maximum class complexity326.00
Average method complexity4.95
▷ Minimum method complexity1.00
▷ Maximum method complexity45.00
Code structure
Namespaces10
Interfaces1
Traits0
Classes28
▷ Abstract classes27.14%
▷ Concrete classes2692.86%
▷ Final classes13.85%
Methods207
▷ Static methods104.83%
▷ Public methods17383.57%
▷ Protected methods3215.46%
▷ Private methods20.97%
Functions53
▷ Named functions4075.47%
▷ Anonymous functions1324.53%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/menu-icon.png1.12KB1.19KB0.00%