77% wp-visual-slidebox-builder

Code Review | Visual Slide Box Builder

WordPress plugin Visual Slide Box Builder scored 77% from 54 tests.

About plugin

  • Plugin page: wp-visual-slidebo...
  • Plugin version: 3.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9
  • WordPress version: 5.9.2
  • First release: Jan 15, 2014
  • Latest release: Jun 10, 2018
  • Number of updates: 167
  • Update frequency: every 9.6 days
  • Top authors: ecorvo (100%)

Code review

54 tests

User reviews

104 reviews

Install metrics

2,000+ active / 129,282 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼305.80ms] Passed 4 tests

Analyzing server-side resources used by Visual Slide Box Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0354.73 ▼8.15
Dashboard /wp-admin3.48 ▲0.0839.66 ▲5.07
Posts /wp-admin/edit.php3.72 ▲0.0842.96 ▲3.98
Add New Post /wp-admin/post-new.php6.92 ▼0.0591.80 ▼1,220.98
Media Library /wp-admin/upload.php3.36 ▲0.0626.49 ▲1.97

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 189 new files
Database: 2 new tables, no new options
New tables
wp_vsbb_v2_lic
wp_vsbb_v2

Browser metrics Passed 4 tests

Checking browser requirements for Visual Slide Box Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,306 ▲56219.51 ▲3.7314.76 ▲9.0218.11 ▲15.89
Dashboard /wp-admin3,251 ▲3908.72 ▲2.54165.57 ▲25.97220.98 ▼8.47
Posts /wp-admin/edit.php3,071 ▲3806.20 ▲2.84121.60 ▲59.18145.16 ▼32.70
Add New Post /wp-admin/post-new.php1,784 ▲12318.68 ▲2.64372.89 ▼58.56166.17 ▲2.14
Media Library /wp-admin/upload.php1,853 ▲1557.18 ▲1.63116.39 ▼25.55201.11 ▼59.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_vsbb_v2
    • wp_vsbb_v2_lic

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 11× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/wp-visual-slidebox-builder/settings-page.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/partials/themes/grid/preview.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/modal/index.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/partials/themes/standard/preview.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/image_caption/index.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/partials/themes/image_caption/preview.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/partials/themes/folding/preview.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/grid/index.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/partials/themes/modal/preview.php
    • > /wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/standard/index.php
  • 168× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: saved_obj in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/folding/index.php on line 12
    • > PHP Notice
      Trying to get property 'category' of non-object in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/image_caption/index.php on line 254
    • > PHP Notice
      Trying to get property 'outEffect' of non-object in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/standard/index.php on line 15
    • > PHP Notice
      Undefined variable: saved_obj in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/folding/index.php on line 23
    • > PHP Notice
      Undefined variable: saved_obj in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/standard/index.php on line 39
    • > PHP Notice
      Undefined variable: saved_obj in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/image_caption/index.php on line 29
    • > PHP Notice
      Trying to get property 'value' of non-object in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/folding/index.php on line 65
    • > PHP Notice
      Trying to get property 'responsiveClass' of non-object in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/folding/index.php on line 6
    • > PHP Notice
      Undefined variable: saved_obj in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/image_caption/index.php on line 253
    • > PHP Notice
      Undefined variable: saved_obj in wp-content/plugins/wp-visual-slidebox-builder/public/renderer/themes/image_caption/index.php on line 91

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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 to be fixed:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #3, #4, #5, #6 in wp-visual-slidebox-builder/assets to your readme.txt
You can look at the official readme.txt

wp-visual-slidebox-builder/vsbb-plugin.php 92% from 13 tests

The entry point to "Visual Slide Box Builder" version 3.2.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-visual-slidebox-builder.php" instead of "vsbb-plugin.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
Good job! No executable or dangerous file extensions detected59,674 lines of code in 160 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript605,54222,07234,298
CSS371,40026116,390
Sass23349362,952
SVG1002,671
HTML2054661,412
PHP1284711,176
XML500484
LESS1190223
TypeScript1313568

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 1.07MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/f6.png48.92KB12.16KB▼ 75.14%
public/images/f3.png67.26KB19.24KB▼ 71.39%
public/images/vsbb_image3.png105.32KB51.82KB▼ 50.80%
public/images/vsbb_image2.png236.84KB76.34KB▼ 67.77%
public/images/f1.png336.53KB92.98KB▼ 72.37%