78% bridge-addons

Code Review | Bridge Addons for Beaver Builder

WordPress plugin Bridge Addons for Beaver Builder scored 78% from 54 tests.

About plugin

  • Plugin page: bridge-addons
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.0
  • WordPress version: 6.3.1
  • First release: Mar 29, 2018
  • Latest release: Dec 8, 2018
  • Number of updates: 11
  • Update frequency: every 23.1 days
  • Top authors: Dejan85 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,206 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Bridge Addons for Beaver Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.69 ▼6.37
Dashboard /wp-admin3.31 ▲0.0144.03 ▼3.49
Posts /wp-admin/edit.php3.36 ▲0.0147.60 ▲3.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.66 ▲1.15
Media Library /wp-admin/upload.php3.23 ▲0.0130.21 ▼4.57

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Bridge Addons for Beaver Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.231.85 ▼0.4847.45 ▲1.36
Dashboard /wp-admin2,206 ▲155.85 ▲0.72106.22 ▼4.2440.94 ▼6.74
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0238.63 ▲0.3437.67 ▲4.56
Add New Post /wp-admin/post-new.php1,517 ▼2517.77 ▼0.35598.39 ▼4.5763.96 ▲14.59
Media Library /wp-admin/upload.php1,391 ▼04.18 ▲0.0099.90 ▲0.7142.10 ▼2.58

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 15× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/bridge-addons/modules/bridge-image/includes/frontend.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-icon-list/includes/frontend.css.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-heading/includes/frontend.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-pricing-table/includes/frontend.css.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-testimonial-slider/includes/frontend.css.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-testimonial-slider/includes/frontend.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-testimonial/includes/frontend.css.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-image/includes/frontend.css.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-info-box/includes/frontend.css.php
    • > /wp-content/plugins/bridge-addons/modules/bridge-icon-list/includes/frontend.php
  • 415× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bridge-addons/modules/bridge-team-member/includes/frontend.css.php on line 5
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/bridge-addons/modules/bridge-icon-list/includes/frontend.css.php on line 26
    • > PHP Notice
      Trying to get property 'hover_speed' of non-object in wp-content/plugins/bridge-addons/modules/bridge-info-box/includes/frontend.css.php on line 9
    • > PHP Fatal error
      Uncaught Error: Class 'FLBuilderModule' not found in wp-content/plugins/bridge-addons/modules/bridge-heading/bridge-heading.php:3
    • > PHP Notice
      Trying to get property 'hover_text_color' of non-object in wp-content/plugins/bridge-addons/modules/bridge-info-box/includes/frontend.css.php on line 66
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/bridge-addons/modules/bridge-testimonial/includes/frontend.css.php on line 1
    • > PHP Notice
      Undefined variable: size in wp-content/plugins/bridge-addons/modules/bridge-button/includes/frontend.css.php on line 33
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bridge-addons/modules/bridge-testimonial/includes/frontend.css.php on line 19
    • > PHP Notice
      Trying to get property 'font_family' of non-object in wp-content/plugins/bridge-addons/modules/bridge-heading/includes/frontend.css.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/bridge-addons/modules/bridge-heading/includes/frontend.css.php on line 23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in bridge-addons/assets to your readme.txt
The official readme.txt is a good inspiration

bridge-addons/bb-bridge.php 85% from 13 tests

The main PHP script in "Bridge Addons for Beaver Builder" version 1.2.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • 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
  • Main file name: Name the main plugin file the same as the plugin slug ("bridge-addons.php" instead of "bb-bridge.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,496 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP34189213,066
CSS10610358
JavaScript119172

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.35
Average class complexity1.09
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.08
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
modules/bridge-testimonial/includes/five-stars.png17.03KB1.74KB▼ 89.80%