88% bootstrap-3-shortcodes

Code Review | Bootstrap Shortcodes for WordPress

WordPress plugin Bootstrap Shortcodes for WordPress scored 88% from 54 tests.

About plugin

  • Plugin page: bootstrap-3-short...
  • Plugin version: 3.3.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.9.4
  • WordPress version: 5.9.2
  • First release: Jan 17, 2014
  • Latest release: Apr 4, 2018
  • Number of updates: 79
  • Update frequency: every 19.5 days
  • Top authors: FoolsRun (100%)

Code review

54 tests

User reviews

27 reviews

Install metrics

30,000+ active / 383,100 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.40MB] [CPU: ▼303.72ms] Passed 4 tests

A check of server-side resources used by Bootstrap Shortcodes for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.3857.43 ▲7.16
Dashboard /wp-admin3.92 ▲0.5138.02 ▼0.12
Posts /wp-admin/edit.php4.11 ▲0.4740.41 ▲1.76
Add New Post /wp-admin/post-new.php7.20 ▲0.2399.72 ▼1,214.82
Media Library /wp-admin/upload.php3.80 ▲0.5026.20 ▼1.71

Server storage [IO: ▲0.82MB] [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: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bootstrap Shortcodes for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /13,958 ▲10,20516.65 ▲0.837.17 ▲1.052.19 ▼0.64
Dashboard /wp-admin13,087 ▲10,2337.07 ▲0.92158.05 ▲15.14159.60 ▼20.45
Posts /wp-admin/edit.php12,886 ▲10,1923.86 ▲0.6284.53 ▲21.00142.59 ▼4.82
Add New Post /wp-admin/post-new.php7,912 ▲6,25116.90 ▼0.18421.45 ▼23.62160.80 ▲3.58
Media Library /wp-admin/upload.php11,892 ▲10,1916.28 ▲0.80153.58 ▲12.57190.74 ▲1.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bootstrap-3-shortcodes/includes/bootstrap-shortcodes-help.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bootstrap-3-shortcodes/includes/defaults.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bootstrap-3-shortcodes/includes/actions-filters.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bootstrap-3-shortcodes/includes/defaults.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: bootstrap, grid, responsive, shortcodes, shortcode

bootstrap-3-shortcodes/bootstrap-shortcodes.php 92% from 13 tests

This is the main PHP file of "Bootstrap Shortcodes for WordPress" version 3.3.12, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bootstrap-3-shortcodes.php" instead of "bootstrap-shortcodes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin18,609 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
CSS8193612,292
HTML1302,484
PHP54725831,528
JavaScript55101931,291
Markdown21800735
SVG200241
JSON20038

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity272.00
▷ Minimum class complexity272.00
▷ Maximum class complexity272.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods61
▷ Static methods00.00%
▷ Public methods61100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
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
There are no PNG files in this plugin