Benchmarks
Plugin footprint 65% 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.55MB] [CPU: ▼1.11ms] Passed 4 tests
A check of server-side resources used by Conditional Logic for Woo Product Add-ons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.60 | 37.07 ▼3.03 |
Dashboard /wp-admin | 3.92 ▲0.61 | 51.36 ▲4.26 |
Posts /wp-admin/edit.php | 3.97 ▲0.61 | 54.00 ▲6.05 |
Add New Post /wp-admin/post-new.php | 6.44 ▲0.55 | 89.95 ▼11.53 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 37.29 ▲5.85 |
Contact Us /wp-admin/admin.php?page=clfwpao-contact-us | 3.71 | 37.14 |
Conditional Logic for Woo Product Add-Ons /wp-admin/admin.php?page=conditional-logic-for-woocommerce-product-add-ons | 3.91 | 41.49 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 4.03 | 34.39 |
Freemius Account /wp-admin/admin.php?page=clfwpao-account | 4.35 | 40.71 |
Server storage [IO: ▲3.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 219 new files
Database: no new tables, 10 new options
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_theysaidso_widget |
fs_active_plugins |
db_upgraded |
fs_accounts |
widget_recent-comments |
theysaidso_admin_options |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Conditional Logic for Woo Product Add-ons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲51 | 14.32 ▲0.11 | 1.69 ▼0.18 | 31.79 ▼12.18 |
Dashboard /wp-admin | 2,218 ▲38 | 5.63 ▲0.10 | 92.97 ▲2.87 | 45.71 ▲3.73 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.13 ▲0.11 | 42.26 ▲5.59 | 38.83 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,537 ▲10 | 23.08 ▲0.10 | 616.95 ▲13.98 | 55.73 ▼4.98 |
Media Library /wp-admin/upload.php | 1,414 ▲11 | 4.18 ▼0.00 | 96.44 ▼2.76 | 45.09 ▲3.41 |
Contact Us /wp-admin/admin.php?page=clfwpao-contact-us | 1,562 | 3.05 | 51.71 | 88.37 |
Conditional Logic for Woo Product Add-Ons /wp-admin/admin.php?page=conditional-logic-for-woocommerce-product-add-ons | 979 | 1.65 | 25.62 | 58.75 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,067 | 1.69 | 26.50 | 27.86 |
Freemius Account /wp-admin/admin.php?page=clfwpao-account | 701 | 1.12 | 6.31 | 21.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/conditional-logic-for-woo-product-add-ons/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 10 options in the database
- fs_debug_mode
- theysaidso_admin_options
- fs_accounts
- can_compress_scripts
- recovery_mode_email_last_sent
- db_upgraded
- widget_theysaidso_widget
- fs_active_plugins
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=clfwpao-account
- > Error in wp-content/plugins/conditional-logic-for-woo-product-add-ons/freemius/templates/account.php+47
Uncaught Error: Call to a member function get_name() on bool in wp-content/plugins/conditional-logic-for-woo-product-add-ons/freemius/templates/account.php:47
Stack trace:
#0 wp-content/plugins/conditional-logic-for-woo-product-add-ons/freemius/includes/fs-core-functions.php(57): require()
#1 wp-content/plugins/conditional-logic-for-woo-product-add-ons/freemius/includes/class-freemius.php(23459): fs_get_template()
#2 wp-content/plugins/conditional-logic-for-woo-product-add-ons/license.php(57): Freemius->_account_page_render()
#3 wp-includes/class-wp-hook.php(310): {closure}()
#4 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#5 wp-includes/plugin.php(517): WP_Hook->do_action()
#6 wp-admin/admin.php(259): do_action()
#7 {main}
thrown
SRP 50% from 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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait 'MeowCrew\\AddonsConditions\\Core\\ServiceContainerTrait' not found in wp-content/plugins/conditional-logic-for-woo-product-add-ons/src/AddonsConditionsPlugin.php on line 16
- > PHP Fatal error
Trait 'MeowCrew\\AddonsConditions\\Core\\ServiceContainerTrait' not found in wp-content/plugins/conditional-logic-for-woo-product-add-ons/src/Frontend/AddToCartManager.php on line 10
- > PHP Fatal error
Trait 'MeowCrew\\AddonsConditions\\Core\\ServiceContainerTrait' not found in wp-content/plugins/conditional-logic-for-woo-product-add-ons/src/Admin/Admin.php on line 14
- > PHP Fatal error
Trait 'MeowCrew\\AddonsConditions\\Core\\ServiceContainerTrait' not found in wp-content/plugins/conditional-logic-for-woo-product-add-ons/src/Frontend/Frontend.php on line 10
- > PHP Fatal error
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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: product add-ons, woocommerce product fields, woocommerce, woocommerce product options, woocommerce product addons
conditional-logic-for-woo-product-add-ons/conditional-logic-for-product-addons.php 77% from 13 tests
The main PHP file in "Conditional Logic for Woo Product Add-ons" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("conditional-logic-for-woo-product-add-ons.php" instead of "conditional-logic-for-product-addons.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin35,964 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 8,569 | 18,087 | 35,151 |
JavaScript | 5 | 190 | 67 | 643 |
PO File | 1 | 39 | 43 | 102 |
CSS | 14 | 11 | 6 | 63 |
JSON | 1 | 0 | 0 | 5 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 71.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,374 | |
▷ Static methods | 237 | 17.25% |
▷ Public methods | 966 | 70.31% |
▷ Protected methods | 20 | 1.46% |
▷ Private methods | 388 | 28.24% |
Functions | 111 | |
▷ Named functions | 101 | 90.99% |
▷ Anonymous functions | 10 | 9.01% |
Constants | 150 | |
▷ Global constants | 98 | 65.33% |
▷ Class constants | 52 | 34.67% |
▷ Public constants | 52 | 100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/conditional-logic-for-woocommerce-product-add-ons.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |