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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.49 ▲0.62 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.83 ▼0.42 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 48.56 ▲0.43 |
Add New Post /wp-admin/post-new.php | 4.91 ▼0.98 | 53.83 ▼49.84 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 44.19 ▲7.17 |
Installed Shortcodes /wp-admin/admin.php?page=scu_manage_shortcodes | 3.39 | 33.55 |
Backup/Restore /wp-admin/admin.php?page=scu_backup_shortcodes | 3.31 | 32.80 |
Add Shortcode /wp-admin/admin.php?page=scu_add_shortcode | 3.32 | 29.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.67 ▼0.55 | 1.66 ▼0.11 | 47.91 ▼2.87 |
Dashboard /wp-admin | 2,233 ▲45 | 4.87 ▼1.00 | 116.29 ▲7.81 | 43.20 ▼3.62 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.99 ▼0.05 | 33.93 ▼4.17 | 33.08 ▼1.40 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.18 ▼0.10 | 647.65 ▲15.84 | 53.18 ▲5.37 |
Media Library /wp-admin/upload.php | 1,418 ▲33 | 4.14 ▼0.11 | 114.05 ▲12.96 | 42.33 ▼3.18 |
Installed Shortcodes /wp-admin/admin.php?page=scu_manage_shortcodes | 1,487 | 2.20 | 24.45 | 34.30 |
Backup/Restore /wp-admin/admin.php?page=scu_backup_shortcodes | 900 | 2.35 | 33.63 | 25.55 |
Add Shortcode /wp-admin/admin.php?page=scu_add_shortcode | 928 | 2.20 | 32.38 | 25.36 |
Not Wanted to Display /wp-admin/admin.php?page=scu_edit_shortcode | 1,490 | 2.19 | 25.54 | 35.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
- > PHP Notice
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 538 | 1,140 | 2,900 |
JavaScript | 26 | 196 | 439 | 1,802 |
CSS | 10 | 91 | 64 | 1,651 |
INI | 12 | 45 | 0 | 333 |
PO File | 2 | 9 | 12 | 44 |
HTML | 3 | 0 | 0 | 7 |
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 code | 0.28 |
Average class complexity | 14.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 24 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 141 | |
▷ Static methods | 36 | 25.53% |
▷ Public methods | 94 | 66.67% |
▷ Protected methods | 23 | 16.31% |
▷ Private methods | 24 | 17.02% |
Functions | 8 | |
▷ Named functions | 1 | 12.50% |
▷ Anonymous functions | 7 | 87.50% |
Constants | 29 | |
▷ Global constants | 18 | 62.07% |
▷ Class constants | 11 | 37.93% |
▷ Public constants | 11 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/css/images/ui-icons_555555_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |
admin/assets/css/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
templates/tutorial-09/resources/assets/image.png | 6.46KB | 2.95KB | ▼ 54.43% |
admin/assets/css/images/ui-icons_ffffff_256x240.png | 6.17KB | 4.18KB | ▼ 32.17% |