78% bb-bootstrap-cards

Code Review | Cards for Beaver Builder

WordPress plugin Cards for Beaver Builder scored78%from 54 tests.

About plugin

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /31,460 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
Install script ran successfully

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

An overview of server-side resources used by Cards for Beaver Builder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.04 ▼1.56
Dashboard /wp-admin3.31 ▲0.0156.65 ▲3.20
Posts /wp-admin/edit.php3.36 ▲0.0150.13 ▲0.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.17 ▼16.95
Media Library /wp-admin/upload.php3.23 ▲0.0139.18 ▲2.98

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Cards for Beaver Builder: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.35 ▼0.022.09 ▲0.2338.14 ▼7.35
Dashboard /wp-admin2,204 ▲305.66 ▲0.0399.25 ▲9.6741.04 ▼0.18
Posts /wp-admin/edit.php2,109 ▲62.03 ▲0.0939.98 ▲0.1237.78 ▼0.04
Add New Post /wp-admin/post-new.php1,535 ▼423.31 ▲5.20666.59 ▼26.7153.79 ▼14.06
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0495.61 ▼12.0341.97 ▼3.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php
  • 57× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 49
    • > PHP Notice
      Trying to get property 'desc_margin_top' of non-object in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 128
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 126
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 127
    • > PHP Notice
      Trying to get property 'desc_margin_bottom' of non-object in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 128
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 139
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards.php.php:14
    • > PHP Notice
      Trying to get property 'link_letter_spacing' of non-object in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 74
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 111
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/bb-bootstrap-cards/bb-bootstrap-cards-module/includes/frontend.css.php on line 70

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: cards for beaver builder, beaver builder, drag and drop cards, bb bootstrap, cards...

bb-bootstrap-cards/bb-bootstrap-cards.php.php 92% from 13 tests

The principal PHP file in "Cards for Beaver Builder" v. 1.1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bb-bootstrap-cards.php" instead of "bb-bootstrap-cards.php.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,133 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP41481471,057
CSS114076

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity17.50
▷ Minimum class complexity4.00
▷ Maximum class complexity31.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1173.33%
▷ Protected methods426.67%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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