84% c4d-woo-bundle

Code Review | C4D WooCommerce Product Bundles

WordPress plugin C4D WooCommerce Product Bundles scored84%from 54 tests.

About plugin

  • Plugin page: c4d-woo-bundle
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2018
  • Latest release: Aug 20, 2019
  • Number of updates: 45
  • Update frequency: every 9.8 days
  • Top authors: coffee4dev (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /4,755 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
This plugin's installer ran successfully

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

An overview of server-side resources used by C4D WooCommerce Product Bundles
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.33 ▼5.26
Dashboard /wp-admin3.31 ▲0.0047.55 ▼3.56
Posts /wp-admin/edit.php3.36 ▲0.0045.20 ▼4.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.43 ▼13.71
Media Library /wp-admin/upload.php3.23 ▲0.0035.54 ▲0.19

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for C4D WooCommerce Product Bundles
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.38 ▼0.011.81 ▲0.0339.04 ▼7.68
Dashboard /wp-admin2,203 ▲125.86 ▼0.07101.86 ▼15.4039.76 ▼5.74
Posts /wp-admin/edit.php2,086 ▼02.05 ▼0.0141.61 ▲5.8735.22 ▼1.48
Add New Post /wp-admin/post-new.php1,533 ▼223.10 ▼0.06653.90 ▼33.5156.61 ▲6.90
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0396.15 ▼2.2741.45 ▼3.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-bundle/includes/datas.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-bundle/includes/products.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-bundle/includes/default.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-bundle/includes/frontend.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/c4d-woo-bundle/includes/tab.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #2, #3, #4, #5, #6, #7, #8, #9 in c4d-woo-bundle/assets to your readme.txt
You can take inspiration from this readme.txt

c4d-woo-bundle/c4d-woo-bundle.php 92% from 13 tests

The main file in "C4D WooCommerce Product Bundles" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 159 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
No dangerous file extensions were detected2,270 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP7170531,790
JavaScript44920318
PO File16985160
CSS2002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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