78% complete-bootstrap-4-shortcodes

Code Review | Bootstrap 4 Shortcodes for WordPress

WordPress plugin Bootstrap 4 Shortcodes for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: complete-bootstra...
  • Plugin version: 4.6.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.9.2
  • WordPress version: 6.3.1
  • First release: Aug 24, 2020
  • Latest release: Apr 9, 2023
  • Number of updates: 39
  • Update frequency: every 24.6 days
  • Top authors: uwejacobs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,793 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.66MB] [CPU: ▼1.34ms] Passed 4 tests

A check of server-side resources used by Bootstrap 4 Shortcodes for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.7043.35 ▲3.92
Dashboard /wp-admin4.01 ▲0.7150.76 ▲3.20
Posts /wp-admin/edit.php4.06 ▲0.7150.13 ▼5.92
Add New Post /wp-admin/post-new.php6.50 ▲0.6194.08 ▼2.99
Media Library /wp-admin/upload.php3.87 ▲0.6438.43 ▲0.37

Server storage [IO: ▲3.80MB] [DB: ▲0.06MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Bootstrap 4 Shortcodes for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.21 ▼1.161.67 ▼0.2640.32 ▼8.73
Dashboard /wp-admin2,208 ▲324.85 ▼1.00109.44 ▲10.1938.05 ▼8.73
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0139.25 ▼1.2334.71 ▼1.78
Add New Post /wp-admin/post-new.php11,426 ▲9,89318.42 ▼4.83740.33 ▲71.8938.34 ▼14.40
Media Library /wp-admin/upload.php1,390 ▲54.22 ▲0.0996.53 ▼6.3741.57 ▼1.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/complete-bootstrap-4-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/complete-bootstrap-4-shortcodes/includes/defaults.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/complete-bootstrap-4-shortcodes/includes/actions-filters.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/complete-bootstrap-4-shortcodes/includes/defaults.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: "paypal.me/ujsoftware"
Please take inspiration from this readme.txt

complete-bootstrap-4-shortcodes/bootstrap-shortcodes.php 92% from 13 tests

The main file in "Bootstrap 4 Shortcodes for WordPress" v. 4.6.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("complete-bootstrap-4-shortcodes.php" instead of "bootstrap-shortcodes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin24,526 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,445
HTML212285,851
CSS47155,119
PHP57639422,511
Markdown245551,524
JavaScript67876

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity190.00
▷ Minimum class complexity18.00
▷ Maximum class complexity362.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods114
▷ Static methods76.14%
▷ Public methods11096.49%
▷ Protected methods00.00%
▷ Private methods43.51%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin