67% ultimate-shortcodes-creator

Code Review | Shortcodes Blocks Creator Ultimate

WordPress plugin Shortcodes Blocks Creator Ultimate scored 67% from 54 tests.

About plugin

  • Plugin page: ultimate-shortcod...
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Mar 7, 2019
  • Latest release: Sep 2, 2021
  • Number of updates: 87
  • Update frequency: every 10.5 days
  • Top authors: cmorillas1 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active / 5,632 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
Install script ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼12.30ms] Passed 4 tests

A check of server-side resources used by Shortcodes Blocks Creator Ultimate
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.49 ▲0.62
Dashboard /wp-admin3.39 ▲0.0947.83 ▼0.42
Posts /wp-admin/edit.php3.51 ▲0.1548.56 ▲0.43
Add New Post /wp-admin/post-new.php4.91 ▼0.9853.83 ▼49.84
Media Library /wp-admin/upload.php3.31 ▲0.0944.19 ▲7.17
Installed Shortcodes /wp-admin/admin.php?page=scu_manage_shortcodes3.3933.55
Backup/Restore /wp-admin/admin.php?page=scu_backup_shortcodes3.3132.80
Add Shortcode /wp-admin/admin.php?page=scu_add_shortcode3.3229.00

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 206 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Shortcodes Blocks Creator Ultimate
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.67 ▼0.551.66 ▼0.1147.91 ▼2.87
Dashboard /wp-admin2,233 ▲454.87 ▼1.00116.29 ▲7.8143.20 ▼3.62
Posts /wp-admin/edit.php2,116 ▲271.99 ▼0.0533.93 ▼4.1733.08 ▼1.40
Add New Post /wp-admin/post-new.php1,556 ▲2323.18 ▼0.10647.65 ▲15.8453.18 ▲5.37
Media Library /wp-admin/upload.php1,418 ▲334.14 ▼0.11114.05 ▲12.9642.33 ▼3.18
Installed Shortcodes /wp-admin/admin.php?page=scu_manage_shortcodes1,4872.2024.4534.30
Backup/Restore /wp-admin/admin.php?page=scu_backup_shortcodes9002.3533.6325.55
Add Shortcode /wp-admin/admin.php?page=scu_add_shortcode9282.2032.3825.36
Not Wanted to Display /wp-admin/admin.php?page=scu_edit_shortcode1,4902.1925.5435.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=scu_add_shortcode
    • > Notice in wp-content/plugins/ultimate-shortcodes-creator/admin/class-add-render.php+72
    Undefined index: tab
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=scu_add_shortcode
    • > POST request to /wp-admin/admin-ajax.php
    • > Notice in wp-content/plugins/ultimate-shortcodes-creator/admin/class-add-ajax.php+199
    Trying to access array offset on value of type null

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 18× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-11/scu-html.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-07/scu-html.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-04/scu-ajax-handler.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-11/scu-ajax-handler.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-02/scu-ajax-handler.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/new/scu-ajax-handler.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-08/scu-html.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/ultimate-shortcodes-creator.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/new/scu-html.php
    • > /wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-05/scu-html.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-05/scu-html.php on line 2
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-04/scu-html.php on line 1
    • > PHP Warning
      readfile(): Filename cannot be empty in wp-content/plugins/ultimate-shortcodes-creator/admin/download.php on line 11
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-09/scu-html.php on line 1
    • > PHP Notice
      Undefined variable: atts in wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-02/scu-html.php on line 2
    • > PHP Notice
      Undefined variable: resources_url in wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-07/scu-html.php on line 2
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-02/scu-html.php on line 2
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/ultimate-shortcodes-creator/templates/tutorial-10/scu-html.php on line 1
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/ultimate-shortcodes-creator/templates/new/scu-html.php on line 7

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=scu_add_shortcode
    • > Javascript (severe) in unknown
    /wp-content/plugins/ultimate-shortcodes-creator//admin/assets/js/scu-add.js?ver=200408-201500 134:25 Uncaught TypeError: Cannot read properties of null (reading 'forEach')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: code, injection, ajax, shortcodes, css...

ultimate-shortcodes-creator/ultimate-shortcodes-creator.php Passed 13 tests

The main PHP file in "Shortcodes Blocks Creator Ultimate" ver. 2.1.3 adds more information about the plugin and also serves as the entry point for this plugin
97 characters long description:
Create gutenberg blocks for custom shortcodes with the option of make ajax calls and inject code.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected6,737 lines of code in 93 files:
LanguageFilesBlank linesComment linesLines of code
PHP405381,1402,900
JavaScript261964391,802
CSS1091641,651
INI12450333
PO File291244
HTML3007

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity14.96
▷ Minimum class complexity1.00
▷ Maximum class complexity75.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods141
▷ Static methods3625.53%
▷ Public methods9466.67%
▷ Protected methods2316.31%
▷ Private methods2417.02%
Functions8
▷ Named functions112.50%
▷ Anonymous functions787.50%
Constants29
▷ Global constants1862.07%
▷ Class constants1137.93%
▷ Public constants11100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/images/ui-icons_555555_256x240.png6.84KB4.18KB▼ 38.84%
admin/assets/css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
templates/tutorial-09/resources/assets/image.png6.46KB2.95KB▼ 54.43%
admin/assets/css/images/ui-icons_ffffff_256x240.png6.17KB4.18KB▼ 32.17%