84% bopo-woo-product-bundle-builder

Code Review | Bopo - WooCommerce Product Bundle Builder

WordPress plugin Bopo - WooCommerce Product Bundle Builder scored84%from 54 tests.

About plugin

  • Plugin page: bopo-woo-product-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 23, 2021
  • Latest release: Sep 5, 2023
  • Number of updates: 20
  • Update frequency: every 34.2 days
  • Top authors: vietmike (90%)dragonlord47 (10%)villatheme (10%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,138 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.16MB] [CPU: ▲0.94ms] Passed 4 tests

This is a short check of server-side resources used by Bopo - WooCommerce Product Bundle Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1642.99 ▲0.94
Dashboard /wp-admin3.47 ▲0.1645.25 ▲0.95
Posts /wp-admin/edit.php3.58 ▲0.2248.35 ▲1.52
Add New Post /wp-admin/post-new.php6.05 ▲0.1691.85 ▲1.06
Media Library /wp-admin/upload.php3.39 ▲0.1636.43 ▲0.82

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Bopo - WooCommerce Product Bundle Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8814.47 ▼0.171.88 ▲0.0447.95 ▲7.77
Dashboard /wp-admin2,218 ▲305.84 ▼0.07100.06 ▼4.3940.41 ▼4.38
Posts /wp-admin/edit.php2,098 ▲92.05 ▼0.0636.35 ▼5.1434.72 ▼5.20
Add New Post /wp-admin/post-new.php1,551 ▲1518.30 ▼4.74654.58 ▼35.3365.22 ▲7.19
Media Library /wp-admin/upload.php1,397 ▲154.18 ▼0.0395.97 ▼13.7043.00 ▼9.23

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
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'VI_WOO_BOPO_BUNDLE_DATA' not found in wp-content/plugins/bopo-woo-product-bundle-builder/templates/vertical-bundle.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'VI_WOO_BOPO_BUNDLE_DATA' not found in wp-content/plugins/bopo-woo-product-bundle-builder/templates/horizontal-bundle.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can look at the official readme.txt

bopo-woo-product-bundle-builder/bopo-woo-product-bundle-builder.php 92% from 13 tests

The primary PHP file in "Bopo - WooCommerce Product Bundle Builder" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
No dangerous file extensions were detected12,860 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP136142805,584
JavaScript121,2353415,254
CSS201951501,139
SVG300627
PO File1108143256

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity100.20
▷ Minimum class complexity3.00
▷ Maximum class complexity497.00
Average method complexity7.11
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods161
▷ Static methods2616.15%
▷ Public methods15395.03%
▷ Protected methods63.73%
▷ Private methods21.24%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants13
▷ Global constants13100.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
There are no PNG files in this plugin