84% inline-shortcodes-for-bootstrap

Code Review | Inline Shortcodes for Bootstrap Plugin

WordPress plugin Inline Shortcodes for Bootstrap Plugin scored84%from 54 tests.

About plugin

  • Plugin page: inline-shortcodes...
  • Plugin version: 1.0beta...
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Jun 2, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: thnkng (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /987 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.09MB] [CPU: ▲1.60ms] Passed 4 tests

An overview of server-side resources used by Inline Shortcodes for Bootstrap Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.90 ▲4.09
Dashboard /wp-admin3.40 ▲0.0654.44 ▼7.39
Posts /wp-admin/edit.php3.49 ▲0.1449.97 ▲3.75
Add New Post /wp-admin/post-new.php7.22 ▲1.33642.56 ▲550.82
Media Library /wp-admin/upload.php3.33 ▲0.1040.69 ▲5.96

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Inline Shortcodes for Bootstrap Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,471 ▲1,72513.55 ▼1.041.77 ▼0.0044.00 ▲0.82
Dashboard /wp-admin3,875 ▲1,6875.32 ▲0.45116.56 ▲4.6139.96 ▼3.67
Posts /wp-admin/edit.php3,761 ▲1,6722.53 ▲0.5036.93 ▼0.5130.35 ▼5.01
Add New Post /wp-admin/post-new.php3,200 ▲1,65823.33 ▲5.24790.43 ▲152.1367.02 ▲6.22
Media Library /wp-admin/upload.php3,055 ▲1,6674.51 ▲0.3298.89 ▼8.1042.70 ▼1.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inline-shortcodes-for-bootstrap/core/tinymce.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/inline-shortcodes-for-bootstrap/front/shortcode.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/inline-shortcodes-for-bootstrap/conf.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/inline-shortcodes-for-bootstrap/conf.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inline-shortcodes-for-bootstrap/front/scripts.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/inline-shortcodes-for-bootstrap/core/scripts.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: bootstrap, shortcode

inline-shortcodes-for-bootstrap/init.php 85% from 13 tests

This is the main PHP file of "Inline Shortcodes for Bootstrap Plugin" version 1.0beta..., providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0beta...")
  • Main file name: The principal plugin file should be the same as the plugin slug ("inline-shortcodes-for-bootstrap.php" instead of "init.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 plugin18,174 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
CSS91071469,534
JavaScript78196123,485
Sass1328241,520
LESS1328341,510
SVG200928
HTML30711695
PHP874200502

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.47
Average class complexity37.00
▷ Minimum class complexity30.00
▷ Maximum class complexity44.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/logo.png6.00KB4.74KB▼ 20.99%