84% bb-extra-conditional-logic

Code Review | Extra Conditional Logic for Beaver Builder

WordPress plugin Extra Conditional Logic for Beaver Builder scored 84% from 54 tests.

About plugin

  • Plugin page: bb-extra-conditio...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Mar 9, 2020
  • Latest release: Mar 10, 2020
  • Number of updates: 16
  • Update frequency: every 0.2 days
  • Top authors: SethStevenson (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 546 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.42ms] Passed 4 tests

A check of server-side resources used by Extra Conditional Logic for Beaver Builder
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.47 ▼2.30
Dashboard /wp-admin3.31 ▲0.0146.65 ▲0.42
Posts /wp-admin/edit.php3.36 ▲0.0145.81 ▲1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.32 ▼13.08
Media Library /wp-admin/upload.php3.23 ▲0.0136.37 ▲3.94

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Extra Conditional Logic for Beaver Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.47 ▲0.161.97 ▲0.0844.17 ▼1.78
Dashboard /wp-admin2,210 ▲194.87 ▼0.02103.05 ▼10.4141.61 ▼4.84
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0340.57 ▲3.2837.69 ▲0.45
Add New Post /wp-admin/post-new.php1,538 ▼423.40 ▲5.06670.45 ▲23.7170.62 ▲24.12
Media Library /wp-admin/upload.php1,389 ▲14.17 ▼0.06109.79 ▲14.5847.50 ▲2.67

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 36× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'MaxMind\\WebService\\Http\\Request' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/maxmind/web-service-common/src/WebService/Http/CurlRequest.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/src/Model/ConnectionType.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/src/Model/AnonymousIp.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/src/Exception/AuthenticationException.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Record\\Country' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/src/Record/RepresentedCountry.php:16
    • > PHP Fatal error
      require(): Failed opening required 'wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/examples/benchmark.php on line 3
    • > PHP Fatal error
      Uncaught Error: Interface 'GeoIp2\\ProviderInterface' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/src/Database/Reader.php:34
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/src/Record/Location.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Model\\Country' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/src/Model/City.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/bb-extra-conditional-logic/vendor/geoip2/geoip2/src/Model/Asn.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: conditional logic, beaver builder, bb

bb-extra-conditional-logic/extra-conditional-logic-for-bb.php 92% from 13 tests

The main PHP script in "Extra Conditional Logic for Beaver Builder" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bb-extra-conditional-logic.php" instead of "extra-conditional-logic-for-bb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin4,220 lines of code in 81 files:
LanguageFilesBlank linesComment linesLines of code
PHP645361,5842,444
Markdown72570627
C19718589
JSON500384
JavaScript13398
Bourne Shell119038
m418032
C/C++ Header14128

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity5.78
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces13
Interfaces2
Traits0
Classes52
▷ Abstract classes35.77%
▷ Concrete classes4994.23%
▷ Final classes00.00%
Methods149
▷ Static methods138.72%
▷ Public methods10268.46%
▷ Protected methods10.67%
▷ Private methods4630.87%
Functions10
▷ Named functions440.00%
▷ Anonymous functions660.00%
Constants22
▷ Global constants418.18%
▷ Class constants1881.82%
▷ Public constants18100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected