90% woo-combo-offers

Code Review | Combo Offers WooCommerce

WordPress plugin Combo Offers WooCommerce scored 90% from 54 tests.

About plugin

  • Plugin page: woo-combo-offers
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: May 12, 2018
  • Latest release: Sep 12, 2023
  • Number of updates: 56
  • Update frequency: every 34.8 days
  • Top authors: vidishp (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

2,000+ active / 40,077 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▲1.00ms] Passed 4 tests

This is a short check of server-side resources used by Combo Offers WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.80 ▲0.3442.66 ▲6.63
Dashboard /wp-admin3.64 ▲0.3356.21 ▲2.62
Posts /wp-admin/edit.php3.75 ▲0.4055.23 ▲10.30
Add New Post /wp-admin/post-new.php6.22 ▲0.33104.75 ▼10.49
Media Library /wp-admin/upload.php3.56 ▲0.3343.67 ▲5.25

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Combo Offers WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.17 ▼1.221.58 ▼0.6946.45 ▲4.48
Dashboard /wp-admin2,214 ▲265.86 ▼0.04125.01 ▲20.1949.08 ▲0.13
Posts /wp-admin/edit.php2,100 ▲112.00 ▼0.0043.16 ▲3.0542.59 ▲6.76
Add New Post /wp-admin/post-new.php1,541 ▲2221.27 ▲0.31882.64 ▲150.7461.35 ▲8.15
Media Library /wp-admin/upload.php1,396 ▲114.20 ▲0.05114.89 ▼28.4757.51 ▼11.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: bundles, woocommerce, combo offer, product bundle, product...

woo-combo-offers/woo-combo-offers.php 92% from 13 tests

The primary PHP file in "Combo Offers WooCommerce" version 3.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0")

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 detected3,717 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP1243681,745
CSS4236142916
JavaScript4185231887
PO File24916169

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity215.00
▷ Minimum class complexity81.00
▷ Maximum class complexity349.00
Average method complexity6.22
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods82
▷ Static methods00.00%
▷ Public methods82100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin