84% twitters-bootstrap-shortcodes-ultimate

Code Review | Twitter's Bootstrap Shortcodes Ultimate Add-on

WordPress plugin Twitter's Bootstrap Shortcodes Ultimate Add-on scored84%from 54 tests.

About plugin

  • Plugin page: twitters-bootstra...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.9
  • WordPress version: 6.3.1
  • First release: Nov 3, 2013
  • Latest release: Jan 6, 2014
  • Number of updates: 15
  • Update frequency: every 4.3 days
  • Top authors: bassjobsen (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

600+ active /13,341 total downloads


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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Twitter's Bootstrap Shortcodes Ultimate Add-on
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.16 ▼6.27
Dashboard /wp-admin3.32 ▲0.0153.37 ▲1.08
Posts /wp-admin/edit.php3.37 ▲0.0149.80 ▼10.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.79 ▼12.96
Media Library /wp-admin/upload.php3.24 ▲0.0151.58 ▲14.18

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Twitter's Bootstrap Shortcodes Ultimate Add-on: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▼0.171.68 ▼0.0943.53 ▲0.97
Dashboard /wp-admin2,195 ▲275.57 ▼0.0391.51 ▼3.3242.56 ▲1.30
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0343.33 ▲0.5337.29 ▲1.21
Add New Post /wp-admin/post-new.php1,526 ▼223.06 ▲0.19683.29 ▼3.3457.88 ▲1.16
Media Library /wp-admin/upload.php1,400 ▲64.20 ▲0.03111.50 ▲10.4747.13 ▲3.85

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/twitters-bootstrap-shortcodes-ultimate/inc/jbst.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twitters-bootstrap-shortcodes-ultimate/inc/jbst-shortcodes.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/twitters-bootstrap-shortcodes-ultimate/twitters-bootstrap-shortcodes-ultimate.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Twitter's Bootstrap Shortcodes Ultimate)
The official readme.txt is a good inspiration

twitters-bootstrap-shortcodes-ultimate/twitters-bootstrap-shortcodes-ultimate.php Passed 13 tests

The main PHP file in "Twitter's Bootstrap Shortcodes Ultimate Add-on" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
Add short codes for Twitter's Bootstrap 3 css and components to your site addon for Shortcodes Ultimate

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,223 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File17390155

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods228.57%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions24100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.32KB9.97KB▼ 60.61%