78% vc-flipbox

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

WordPress plugin Flipbox Addon for WPBakery Page Builder (formerly Visual Composer) scored78%from 54 tests.

About plugin

  • Plugin page: vc-flipbox
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Jan 27, 2018
  • Latest release: Jul 26, 2021
  • Number of updates: 21
  • Update frequency: every 60.8 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /11,418 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.00MB] [CPU: ▼3.30ms] Passed 4 tests

Analyzing server-side resources used by Flipbox Addon for WPBakery Page Builder (formerly Visual Composer)
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.63 ▲2.97
Dashboard /wp-admin3.31 ▲0.0042.88 ▼4.84
Posts /wp-admin/edit.php3.36 ▲0.0041.01 ▼6.63
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.98 ▼3.51
Media Library /wp-admin/upload.php3.23 ▲0.0037.26 ▲1.77

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Flipbox Addon for WPBakery Page Builder (formerly Visual Composer)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.81 ▲0.531.74 ▲0.1644.55 ▲1.15
Dashboard /wp-admin2,209 ▲235.85 ▼0.03100.74 ▼12.2441.06 ▼3.33
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0340.67 ▼0.4732.29 ▼6.65
Add New Post /wp-admin/post-new.php1,514 ▼2817.66 ▼0.58674.20 ▲42.3046.07 ▼10.64
Media Library /wp-admin/upload.php1,388 ▼04.34 ▲0.12111.23 ▲12.3047.83 ▲2.10

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/vc-flipbox/inc/helper.php
    • > /wp-content/plugins/vc-flipbox/vc-flipbox.php
  • 5× 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/vc-flipbox/shortcodes/flip-box-advanced/flip-box-advanced.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/vc-flipbox/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_add_shortcode_param() in wp-content/plugins/vc-flipbox/admin/params/slider/slider-params.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/vc-flipbox/shortcodes/flip-box-two/flip-box-two.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function vc_map() in wp-content/plugins/vc-flipbox/shortcodes/flip-box/flip-box.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: visual composer shortcode, visual composer plugin, tooltip, image hotspot

vc-flipbox/vc-flipbox.php 92% from 13 tests

The primary PHP file in "Flipbox Addon for WPBakery Page Builder (formerly Visual Composer)" version 1.1.8 is used by WordPress to initiate all plugin functionality
It is important 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin3,147 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP82031722,445
CSS4295660
JavaScript314642

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.43
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%
Functions13
▷ Named functions13100.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/flipbox_icon.png1.67KB1.01KB▼ 39.52%