84% conditional-logic-for-beaver-builder-and-woo-memberships

Code Review | Conditional Logic for Beaver Builder and Woo Memberships

WordPress plugin Conditional Logic for Beaver Builder and Woo Memberships scored84%from 54 tests.

About plugin

  • Plugin page: conditional-logic...
  • Plugin version: 1.3
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Oct 20, 2021
  • Latest release: Oct 26, 2022
  • Number of updates: 7
  • Update frequency: every 60.9 days
  • Top authors: petergerard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /700 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.01MB] [CPU: ▼6.27ms] Passed 4 tests

This is a short check of server-side resources used by Conditional Logic for Beaver Builder and Woo Memberships
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.60 ▲4.17
Dashboard /wp-admin3.31 ▲0.0144.97 ▼0.99
Posts /wp-admin/edit.php3.36 ▲0.0145.89 ▼3.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.53 ▼20.17
Media Library /wp-admin/upload.php3.24 ▲0.0134.32 ▼0.52

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Conditional Logic for Beaver Builder and Woo Memberships
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.021.77 ▲0.1447.25 ▲7.66
Dashboard /wp-admin2,195 ▲145.54 ▼0.1180.99 ▼15.8039.71 ▼1.39
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0633.62 ▼3.2333.90 ▼0.65
Add New Post /wp-admin/post-new.php1,526 ▼022.85 ▼0.12598.97 ▼108.6854.07 ▲2.55
Media Library /wp-admin/upload.php1,403 ▲34.30 ▲0.1096.05 ▼8.2642.73 ▼4.54

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/conditional-logic-for-beaver-builder-and-woo-memberships/includes/rules.php
    • > /wp-content/plugins/conditional-logic-for-beaver-builder-and-woo-memberships/bb-logic-digital-member.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: beaver builder, woocommerce memberships, conditional logic

conditional-logic-for-beaver-builder-and-woo-memberships/bb-logic-digital-member.php 92% from 13 tests

The main PHP file in "Conditional Logic for Beaver Builder and Woo Memberships" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("conditional-logic-for-beaver-builder-and-woo-memberships.php" instead of "bb-logic-digital-member.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected141 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2121275
JavaScript12166

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants2
▷ Global constants2100.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