89% woo-product-bundle

Code Review | WPC Product Bundles for WooCommerce

WordPress plugin WPC Product Bundles for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: woo-product-bundle
  • Plugin version: 7.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: May 25, 2017
  • Latest release: Nov 22, 2023
  • Number of updates: 302
  • Update frequency: every 7.9 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

202 reviews

Install metrics

20,000+ active /1,530,603 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.58ms] Passed 4 tests

This is a short check of server-side resources used by WPC Product Bundles for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.91 ▼6.64
Dashboard /wp-admin3.32 ▲0.0245.75 ▼5.44
Posts /wp-admin/edit.php3.44 ▲0.0851.99 ▲2.61
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.57 ▼2.64
Media Library /wp-admin/upload.php3.25 ▲0.0235.59 ▲0.41
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2132.55
About /wp-admin/admin.php?page=wpclever3.2131.23

Server storage [IO: ▲1.01MB] [DB: ▲0.02MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

WPC Product Bundles 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,892 ▲13014.71 ▼0.011.97 ▲0.3436.79 ▼7.38
Dashboard /wp-admin2,272 ▲955.60 ▲0.0797.61 ▲0.9596.77 ▲50.81
Posts /wp-admin/edit.php2,181 ▲812.00 ▼0.0139.16 ▼1.3539.56 ▲3.56
Add New Post /wp-admin/post-new.php1,597 ▲7122.79 ▼0.35667.51 ▼0.7269.13 ▲7.76
Media Library /wp-admin/upload.php1,471 ▲714.19 ▼0.02103.55 ▲7.3977.15 ▲36.14
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7412.1334.9563.15
About /wp-admin/admin.php?page=wpclever1,4002.2333.4934.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: Please take inspiration from this readme.txt

woo-product-bundle/wpc-product-bundles.php 92% from 13 tests

"WPC Product Bundles for WooCommerce" version 7.3.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("woo-product-bundle.php" instead of "wpc-product-bundles.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected11,991 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PO File152,2702,7455,441
PHP97351553,831
CSS53541501,682
JavaScript4209651,008
SVG10029

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity114.71
▷ Minimum class complexity1.00
▷ Maximum class complexity578.00
Average method complexity6.41
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods147
▷ Static methods138.84%
▷ Public methods147100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants11
▷ Global constants11100.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