77% bs-shortcode-ultimate

Code Review | Bootstrap Shortcodes Ultimate

WordPress plugin Bootstrap Shortcodes Ultimate scored77%from 54 tests.

About plugin

  • Plugin page: bs-shortcode-ulti...
  • Plugin version: 4.3.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 11, 2018
  • Latest release: Jul 14, 2021
  • Number of updates: 19
  • Update frequency: every 67.4 days
  • Top authors: mdshuvo (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /15,400 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
Installer ran successfully

Server metrics [RAM: ▼0.13MB] [CPU: ▼17.22ms] Passed 4 tests

An overview of server-side resources used by Bootstrap Shortcodes Ultimate
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.15 ▼0.89
Dashboard /wp-admin3.25 ▼0.0932.78 ▼32.19
Posts /wp-admin/edit.php3.32 ▼0.0434.68 ▼12.82
Add New Post /wp-admin/post-new.php5.49 ▼0.4074.29 ▼19.89
Media Library /wp-admin/upload.php3.26 ▲0.0332.60 ▼3.97

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Bootstrap Shortcodes Ultimate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,976 ▲23013.81 ▼0.848.70 ▲6.8247.44 ▲4.46
Dashboard /wp-admin2,277 ▲925.91 ▲0.04103.07 ▼17.7471.64 ▲24.03
Posts /wp-admin/edit.php2,157 ▲712.06 ▲0.0335.26 ▼0.2333.78 ▼1.11
Add New Post /wp-admin/post-new.php1,724 ▲20522.42 ▼0.78758.79 ▲135.3858.28 ▲12.33
Media Library /wp-admin/upload.php1,450 ▲624.24 ▲0.0299.25 ▲0.7281.62 ▲38.56

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bs-shortcode-ultimate/bootstrap-shortcode-ultimate.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bs-shortcode-ultimate/inc/shortcodes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bs-shortcode-ultimate/inc/class-admin-notice.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

bs-shortcode-ultimate/bootstrap-shortcode-ultimate.php 77% from 13 tests

"Bootstrap Shortcodes Ultimate" version 4.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("bs-shortcode-ultimate.php" instead of "bootstrap-shortcode-ultimate.php")
  • Domain Path: The domain path points to an invalid folder, "/lang" does not exist
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected21,253 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS61,4674112,964
JavaScript42,0221,7127,935
PHP354109352
Markdown1002

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity19.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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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