72% easy-bootstrap-shortcodes

Code Review | Easy Bootstrap Shortcode

WordPress plugin Easy Bootstrap Shortcode scored 72% from 53 tests.

About plugin

  • Plugin page: easy-bootstrap-sh...
  • Plugin version: 4.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 5.8.1
  • First release: Sep 14, 2013
  • Latest release: Feb 19, 2016
  • Number of updates: 148
  • Update frequency: every 6.0 days
  • Top authors: oscitas (100%)

Code review

53 tests

User reviews

48 reviews

Install metrics

20,000+ active / 417,569 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
Install script ran successfully

Server metrics [RAM: ▲0.43MB] [CPU: ▼262.45ms] Passed 4 tests

Analyzing server-side resources used by Easy Bootstrap Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.23 ▲0.5134.90 ▲9.83
Dashboard /wp-admin3.52 ▲0.4645.40 ▲4.57
Posts /wp-admin/edit.php3.57 ▲0.4647.62 ▲3.48
Add New Post /wp-admin/post-new.php5.83 ▲0.4097.99 ▼1,057.09
Media Library /wp-admin/upload.php3.40 ▲0.3935.30 ▼0.75
osCitas Offers /wp-admin/admin.php?page=ebs-pro-demo3.36402.79
EBS Settings /wp-admin/admin.php?page=ebs/ebs-settings.php3.4229.79

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 257 new files
Database: no new tables, 12 new options
New WordPress options
EBS_SHORTCODE_PREFIX
EBS_BOOTSTRAP_JS_CDN_PATH
EBS_SESSION_CLOSE
EBS_BOOTSTRAP_RESPOND_CDN_PATH
EBS_BOOTSTRAP_RESPOND_LOCATION
recovery_mode_email_last_sent
EBS_BOOTSTRAP_JS_LOCATION
EBS_EDITOR_OPT
EBS_CUSTOM_CSS
widget_ebsp-widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Bootstrap Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,430 ▲1,82516.37 ▲0.9514.01 ▲6.2772.11 ▲25.94
Dashboard /wp-admin4,588 ▲1,7426.32 ▲0.44140.17 ▲9.51118.31 ▲15.02
Posts /wp-admin/edit.php4,375 ▲1,6692.97 ▲0.2670.06 ▲2.77107.14 ▲11.24
Add New Post /wp-admin/post-new.php3,333 ▲1,68018.65 ▼0.15384.29 ▲28.36105.40 ▼1.06
Media Library /wp-admin/upload.php3,381 ▲1,6125.23 ▲0.20135.01 ▼17.35122.46 ▲11.19
osCitas Offers /wp-admin/admin.php?page=ebs-pro-demo2,5392.2240.1046.92
EBS Settings /wp-admin/admin.php?page=ebs/ebs-settings.php3,0402.5862.0877.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 4 options in the database
    • recovery_mode_email_last_sent
    • EBS_CUSTOM_CSS
    • EBS_SHORTCODE_PREFIX
    • widget_ebsp-widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=ebs-pro-demo
    • > Error in wp-content/plugins/easy-bootstrap-shortcodes/lib/ebspro-demo.php+13
    Uncaught Error: Cannot use object of type WP_Error as array in /var/www/wordpress/wp-content/plugins/easy-bootstrap-shortcodes/lib/ebspro-demo.php:13Stack trace:#0 /var/www/wordpress/wp-content/plugins/easy-bootstrap-shortcodes/osc_bootstrap_shortcode.php(165): include()#1 /var/www/wordpress/wp-includes/class-wp-hook.php(303): osc_ebs_pro_demo_page()#2 /var/www/wordpress/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()#3 /var/www/wordpress/wp-includes/plugin.php(470): WP_Hook->do_action()#4 /var/www/wordpress/wp-admin/admin.php(259): do_action()#5 {main}thrown

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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-bootstrap-shortcodes/styles/ebs-dstyle.php
  • 32× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ebs_backward_compatibility_callback() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/panel/plugin_shortcode.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ebs_backward_compatibility_callback() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/buttons/plugin_shortcode.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/rule/plugin_shortcode.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ebs_backward_compatibility_callback() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/oscpopover/plugin_shortcode.php:89
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ebs_backward_compatibility_callback() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/image/plugin_shortcode.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ebs_backward_compatibility_callback() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/btngrptool/plugin_shortcode.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ebs_backward_compatibility_callback() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/badge/plugin_shortcode.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ebs_backward_compatibility_callback() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/tooltip/plugin_shortcode.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ebs_backward_compatibility_callback() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/jumbotron/plugin_shortcode.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-bootstrap-shortcodes/shortcode/functions.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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: Please take inspiration from this readme.txt

easy-bootstrap-shortcodes/osc_bootstrap_shortcode.php 85% from 13 tests

The primary PHP file in "Easy Bootstrap Shortcode" version 4.5.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: The principal plugin file should be the same as the plugin slug ("easy-bootstrap-shortcodes.php" instead of "osc_bootstrap_shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin19,686 lines of code in 104 files:
LanguageFilesBlank linesComment linesLines of code
CSS164929410,433
JavaScript528954915,939
PHP344382382,506
SVG200808

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions97
▷ Named functions97100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 1 test

Image compression 0% from 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
73 PNG files occupy 1.04MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
shortcode/slider/icon.png1.16KB0.25KB▼ 78.59%
images/line-title.png0.12KB0.10KB▼ 14.05%
shortcode/oscpopover/icon.png1.03KB0.17KB▼ 83.95%
images/ebspro-highlights.png661.46KB234.96KB▼ 64.48%
shortcode/lead/icon.png0.98KB0.13KB▼ 86.95%