84% theme-blvd-shortcodes

Code Review | Theme Blvd Shortcodes

WordPress plugin Theme Blvd Shortcodes scored84%from 54 tests.

About plugin

  • Plugin page: theme-blvd-shortc...
  • Plugin version: 1.6.8
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 6, 2012
  • Latest release: Dec 14, 2018
  • Number of updates: 125
  • Update frequency: every 18.5 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

3,000+ active /108,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.93ms] Passed 4 tests

Server-side resources used by Theme Blvd Shortcodes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0445.15 ▼3.41
Dashboard /wp-admin3.39 ▲0.0453.74 ▼2.80
Posts /wp-admin/edit.php3.51 ▲0.1052.51 ▼2.24
Add New Post /wp-admin/post-new.php5.97 ▲0.0484.24 ▼19.25
Media Library /wp-admin/upload.php3.31 ▲0.0440.68 ▲2.38

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Theme Blvd Shortcodes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.34 ▼0.281.98 ▲0.2445.07 ▼1.70
Dashboard /wp-admin2,206 ▲325.60 ▲0.0393.82 ▼4.6146.22 ▼1.08
Posts /wp-admin/edit.php2,111 ▲111.99 ▼0.0233.98 ▼6.6834.94 ▼1.08
Add New Post /wp-admin/post-new.php1,537 ▼023.47 ▲5.34675.32 ▲16.8656.05 ▼16.03
Media Library /wp-admin/upload.php1,414 ▲114.21 ▲0.0597.95 ▼6.6145.12 ▼0.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/theme-blvd-shortcodes/tb-shortcodes.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: themeblvd, shortcodes, theme blvd, bootstrap, jason bobich

theme-blvd-shortcodes/tb-shortcodes.php 92% from 13 tests

The main PHP file in "Theme Blvd Shortcodes" ver. 1.6.8 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("theme-blvd-shortcodes.php" instead of "tb-shortcodes.php")

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 detected7,363 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP81,5771,2306,396
CSS23753537
JavaScript219192430

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity24.00
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity4.29
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions44
▷ Named functions44100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/admin/generator/assets/images/custom.png1.90KB1.03KB▼ 45.52%
includes/admin/generator/assets/images/primary.png1.86KB1.02KB▼ 45.03%