Benchmarks
Plugin footprint 65% 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.42MB] [CPU: ▼7.75ms] 75% from 4 tests
This is a short check of server-side resources used by Snippet Shortcodes
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,433.42ms on /wp-admin/admin.php?page=sh-cd-shortcode-variables-license)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.44 | 38.01 ▼5.52 |
Dashboard /wp-admin | 3.76 ▲0.41 | 51.68 ▼15.37 |
Posts /wp-admin/edit.php | 3.82 ▲0.45 | 50.71 ▲0.60 |
Add New Post /wp-admin/post-new.php | 6.30 ▲0.41 | 91.82 ▼10.69 |
Media Library /wp-admin/upload.php | 3.63 ▲0.39 | 40.96 ▲7.77 |
Upgrade to Premium /wp-admin/admin.php?page=sh-cd-shortcode-variables-license | 3.67 | 2,433.42 |
Your shortcodes /wp-admin/admin.php?page=sh-cd-shortcode-variables-your-shortcodes | 3.59 | 38.35 |
Premade shortcodes /wp-admin/admin.php?page=sh-cd-shortcode-variables-sub-premade | 3.60 | 34.30 |
/wp-admin/admin.php?page=sh-cd-shortcode-variables-main-menu | 3.59 | 34.48 |
Help /wp-admin/admin.php?page=sh-cd-help | 3.59 | 32.66 |
Settings /wp-admin/admin.php?page=sh-cd-settings | 3.59 | 32.28 |
Import shortcodes /wp-admin/admin.php?page=sh-cd-import | 3.61 | 37.20 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 50 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_SH_CD_SHORTCODES |
wp_SH_CD_SHORTCODES_MULTISITE |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
sh-cd-hash |
sh-cd-version-number-2021 |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Snippet Shortcodes: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲87 | 14.72 ▲0.37 | 1.52 ▼0.27 | 38.04 ▼8.28 |
Dashboard /wp-admin | 2,254 ▲73 | 5.61 ▼0.11 | 96.88 ▼8.52 | 43.35 ▲4.47 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.00 ▲0.05 | 40.13 ▼5.15 | 37.53 ▼0.28 |
Add New Post /wp-admin/post-new.php | 1,575 ▲49 | 23.45 ▲0.52 | 691.91 ▲106.19 | 62.05 ▲5.24 |
Media Library /wp-admin/upload.php | 1,459 ▲65 | 4.27 ▲0.01 | 97.72 ▼5.95 | 40.92 ▼2.53 |
Upgrade to Premium /wp-admin/admin.php?page=sh-cd-shortcode-variables-license | 1,164 | 2.06 | 25.85 | 44.06 |
Your shortcodes /wp-admin/admin.php?page=sh-cd-shortcode-variables-your-shortcodes | 956 | 2.04 | 26.62 | 25.13 |
Premade shortcodes /wp-admin/admin.php?page=sh-cd-shortcode-variables-sub-premade | 1,348 | 2.05 | 26.24 | 46.94 |
/wp-admin/admin.php?page=sh-cd-shortcode-variables-main-menu | 956 | 2.07 | 25.99 | 25.43 |
Help /wp-admin/admin.php?page=sh-cd-help | 945 | 2.14 | 26.73 | 24.95 |
Settings /wp-admin/admin.php?page=sh-cd-settings | 923 | 2.03 | 26.90 | 29.31 |
Import shortcodes /wp-admin/admin.php?page=sh-cd-import | 1,104 | 3.02 | 47.42 | 25.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure failed, leaving 2 tables in the database
- wp_SH_CD_SHORTCODES_MULTISITE
- wp_SH_CD_SHORTCODES
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- sh-cd-hash
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- sh-cd-version-number-2021
- widget_theysaidso_widget
- theysaidso_admin_options
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/shortcode-variables/includes/pages/page.edit.php
- > /wp-content/plugins/shortcode-variables/includes/hooks.php
- > /wp-content/plugins/shortcode-variables/includes/pages/page.settings.php
- > /wp-content/plugins/shortcode-variables/includes/pages/page.help.php
- > /wp-content/plugins/shortcode-variables/includes/pages/page.premade.php
- > /wp-content/plugins/shortcode-variables/includes/shortcode.presets.premium.php
- > /wp-content/plugins/shortcode-variables/includes/shortcode.user.php
- > /wp-content/plugins/shortcode-variables/includes/db.php
- > /wp-content/plugins/shortcode-variables/includes/shortcode.presets.core.php
- > /wp-content/plugins/shortcode-variables/includes/shortcode.presets.free.php
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
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: html, reuse, shortcode, embed, text...
shortcode-variables/shortcode-variables.php 92% from 13 tests
The principal PHP file in "Snippet Shortcodes" v. 4.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 197 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,202 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 871 | 710 | 2,075 |
XML | 4 | 0 | 0 | 502 |
Markdown | 11 | 97 | 0 | 221 |
JavaScript | 2 | 80 | 75 | 200 |
HTML | 1 | 20 | 3 | 138 |
CSS | 1 | 0 | 0 | 57 |
YAML | 2 | 0 | 0 | 9 |
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.38 |
Average class complexity | 3.69 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 20.00% |
▷ Protected methods | 27 | 77.14% |
▷ Private methods | 1 | 2.86% |
Functions | 100 | |
▷ Named functions | 99 | 99.00% |
▷ Anonymous functions | 1 | 1.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.24MB with 0.15MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/pages/assets/images/yeken-logo.png | 8.83KB | 4.42KB | ▼ 49.97% |
docs/assets/images/product-logo.png | 13.30KB | 5.15KB | ▼ 61.28% |
docs/assets/images/add-edit.png | 117.83KB | 34.28KB | ▼ 70.90% |
docs/assets/images/list.png | 107.38KB | 33.33KB | ▼ 68.96% |