77% feature-box-addon-for-wpbakery-page-builder

Code Review | Feature Box Addon for WPBakery Page Builder (formerly Visual Composer)

WordPress plugin Feature Box Addon for WPBakery Page Builder (formerly Visual Composer) scored77%from 54 tests.

About plugin

  • Plugin page: feature-box-addon...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Nov 29, 2018
  • Latest release: Jul 26, 2021
  • Number of updates: 16
  • Update frequency: every 60.6 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,490 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
Install script ran successfully

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

An overview of server-side resources used by Feature Box Addon for WPBakery Page Builder (formerly Visual Composer)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0031.21 ▼9.07
Dashboard /wp-admin3.31 ▼0.0446.50 ▼19.79
Posts /wp-admin/edit.php3.36 ▲0.0050.74 ▼0.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.36 ▼1.94
Media Library /wp-admin/upload.php3.23 ▲0.0033.89 ▼1.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Feature Box Addon for WPBakery Page Builder (formerly Visual Composer): an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲5413.41 ▼0.971.94 ▼0.2041.43 ▼1.18
Dashboard /wp-admin2,209 ▲245.88 ▼0.16109.16 ▼4.4040.42 ▲2.40
Posts /wp-admin/edit.php2,089 ▼32.01 ▲0.0338.63 ▼1.2634.14 ▼5.10
Add New Post /wp-admin/post-new.php1,542 ▲2318.24 ▼5.02581.28 ▼99.8850.66 ▼3.79
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0895.93 ▼13.8541.85 ▼4.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/feature-box-addon-for-wpbakery-page-builder/feature-box-addon-vc.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/feature-box-addon-for-wpbakery-page-builder/modules/style-three.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/feature-box-addon-for-wpbakery-page-builder/modules/style-one.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/feature-box-addon-for-wpbakery-page-builder/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/feature-box-addon-for-wpbakery-page-builder/modules/style-two.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/feature-box-addon-for-wpbakery-page-builder/modules/style-four.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/feature-box-addon-for-wpbakery-page-builder/modules/style-five.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/feature-box-addon-for-wpbakery-page-builder/admin/params/slider/slider-params.php:6

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (screenshot one.), #2 (screenshot three.)
  • Tags: You are using too many tags: 14 tag instead of maximum 10
You can look at the official readme.txt

feature-box-addon-for-wpbakery-page-builder/feature-box-addon-vc.php 85% from 13 tests

The main PHP file in "Feature Box Addon for WPBakery Page Builder (formerly Visual Composer)" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("feature-box-addon-for-wpbakery-page-builder.php" instead of "feature-box-addon-vc.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected9,901 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript59151,0263,398
SVG1002,671
PHP10123582,282
CSS485291,550

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity8.50
▷ Minimum method complexity5.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/tavc-icon.png0.61KB0.46KB▼ 24.20%