78% imagebox-module

Code Review | Beaver Builder Imagebox Module

WordPress plugin Beaver Builder Imagebox Module scored78%from 54 tests.

About plugin

  • Plugin page: imagebox-module
  • Plugin version: 1.2.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Nov 8, 2017
  • Latest release: Aug 14, 2021
  • Number of updates: 22
  • Update frequency: every 62.5 days
  • Top authors: flickdevs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,381 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
Installer ran successfully

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

Analyzing server-side resources used by Beaver Builder Imagebox Module
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.27 ▼0.99
Dashboard /wp-admin3.31 ▲0.0147.60 ▼3.55
Posts /wp-admin/edit.php3.36 ▲0.0145.35 ▼6.51
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.56 ▼3.84
Media Library /wp-admin/upload.php3.23 ▲0.0157.91 ▲20.60

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

Analyzing filesystem and database footprints 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
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Beaver Builder Imagebox Module
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.38 ▼0.122.32 ▲0.4747.50 ▲4.22
Dashboard /wp-admin2,207 ▲275.58 ▼0.0893.16 ▼10.7940.62 ▼1.52
Posts /wp-admin/edit.php2,109 ▲61.97 ▼0.0334.88 ▼4.3736.11 ▼0.29
Add New Post /wp-admin/post-new.php1,535 ▲723.35 ▲0.20680.02 ▲67.3857.58 ▲0.95
Media Library /wp-admin/upload.php1,409 ▲94.23 ▲0.05112.22 ▲12.8848.82 ▲1.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/imagebox-module/imagebox/includes/frontend.php
    • > /wp-content/plugins/imagebox-module/imagebox/includes/frontend.css.php
  • 56× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/imagebox-module/imagebox/includes/frontend.css.php on line 41
    • > PHP Notice
      Trying to get property 'link' of non-object in wp-content/plugins/imagebox-module/imagebox/includes/frontend.php on line 2
    • > PHP Notice
      Trying to get property 'front_bg_image_src' of non-object in wp-content/plugins/imagebox-module/imagebox/includes/frontend.php on line 3
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/imagebox-module/imagebox/includes/frontend.css.php on line 6
    • > PHP Notice
      Trying to get property 'btn_font_size' of non-object in wp-content/plugins/imagebox-module/imagebox/includes/frontend.css.php on line 32
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/imagebox-module/imagebox/includes/frontend.css.php on line 46
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/imagebox-module/imagebox/includes/frontend.css.php on line 2
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/imagebox-module/imagebox/includes/frontend.css.php on line 62
    • > PHP Notice
      Undefined variable: id in wp-content/plugins/imagebox-module/imagebox/includes/frontend.css.php on line 51
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/imagebox-module/imagebox/includes/frontend.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
There were no plugin tags found

imagebox-module/imagebox.php 85% from 13 tests

"Beaver Builder Imagebox Module" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("imagebox-module.php" instead of "imagebox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin529 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41932395
CSS240134

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin