90% product-bundles-variation-bundles

Code Review | Product Bundles - Variation Bundles

WordPress plugin Product Bundles - Variation Bundles scored90%from 54 tests.

About plugin

  • Plugin page: product-bundles-v...
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: Aug 16, 2023
  • Number of updates: 16
  • Update frequency: every 73.5 days
  • Top authors: franticpsyx (43.75%)SomewhereWarm (37.5%)jasonkytros (31.25%)

Code review

54 tests

User reviews

6 reviews

Install metrics

600+ active /7,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.02ms] Passed 4 tests

This is a short check of server-side resources used by Product Bundles - Variation Bundles
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.1345.33 ▼0.17
Dashboard /wp-admin3.73 ▲0.1051.13 ▼18.40
Posts /wp-admin/edit.php3.78 ▲0.1055.00 ▲0.36
Add New Post /wp-admin/post-new.php6.25 ▲0.1093.98 ▼5.85
Media Library /wp-admin/upload.php3.59 ▲0.1041.03 ▲6.85

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Product Bundles - Variation Bundles
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.23 ▼0.001.70 ▼0.1942.41 ▼1.66
Dashboard /wp-admin2,209 ▲295.66 ▲0.0195.17 ▲3.8443.46 ▲3.44
Posts /wp-admin/edit.php2,111 ▲112.00 ▼0.0538.92 ▼2.9838.97 ▲1.59
Add New Post /wp-admin/post-new.php1,537 ▼817.54 ▼5.70671.43 ▲25.9156.60 ▼1.81
Media Library /wp-admin/upload.php1,411 ▲144.25 ▼0.1599.58 ▲0.3645.98 ▲3.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: map, product, woocommerce, bundles, variation

product-bundles-variation-bundles/product-bundles-variation-bundles.php 92% from 13 tests

The main PHP file in "Product Bundles - Variation Bundles" ver. 1.1.4 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected483 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1186369483

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity89.00
▷ Minimum class complexity89.00
▷ Maximum class complexity89.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods40
▷ Static methods40100.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected