Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲2.24MB] [CPU: ▲8.22ms] Passed 4 tests
Analyzing server-side resources used by ShortcodeHub - MultiPurpose Shortcode Builder
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.76 ▲2.29 | 58.16 ▲21.25 |
Dashboard /wp-admin | 5.58 ▲2.27 | 65.15 ▲9.77 |
Posts /wp-admin/edit.php | 5.63 ▲2.27 | 61.97 ▲10.63 |
Add New Post /wp-admin/post-new.php | 8.12 ▲2.23 | 97.24 ▼8.76 |
Media Library /wp-admin/upload.php | 5.44 ▲2.20 | 54.71 ▲22.37 |
Add New /wp-admin/edit.php?post_type=shortcode&page=shortcode-add-new | 5.42 | 50.54 |
All Shortcodes /wp-admin/edit.php?post_type=shortcode | 5.54 | 49.04 |
Dashboard /wp-admin/edit.php?post_type=shortcode&page=shortcodehub | 5.41 | 45.64 |
Categories /wp-admin/edit-tags.php?taxonomy=shortcode-category&post_type=shortcode | 5.43 | 52.51 |
Server storage [IO: ▲2.84MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 1,136 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
sh_first_activation |
db_upgraded |
can_compress_scripts |
sh-auto-version |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ShortcodeHub - MultiPurpose Shortcode Builder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲198 | 14.25 ▼0.10 | 1.83 ▲0.28 | 39.30 ▼0.72 |
Dashboard /wp-admin | 2,341 ▲161 | 5.70 ▲0.02 | 88.49 ▼1.15 | 86.97 ▲42.02 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.03 ▼0.00 | 33.81 ▼4.37 | 34.28 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.10 ▼0.18 | 676.10 ▲8.59 | 64.23 ▲14.44 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.18 ▼0.01 | 93.56 ▼10.59 | 38.92 ▼7.55 |
Add New /wp-admin/edit.php?post_type=shortcode&page=shortcode-add-new | 1,132 | 2.06 | 26.37 | 34.99 |
All Shortcodes /wp-admin/edit.php?post_type=shortcode | 1,165 | 2.39 | 40.35 | 28.53 |
Dashboard /wp-admin/edit.php?post_type=shortcode&page=shortcodehub | 970 | 2.01 | 23.48 | 50.03 |
Categories /wp-admin/edit-tags.php?taxonomy=shortcode-category&post_type=shortcode | 1,315 | 2.12 | 27.22 | 32.39 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- sh-auto-version
- can_compress_scripts
- sh_first_activation
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Please take a closer look at the following
- 397× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Name' not found in wp-content/plugins/shortcodehub/inc/classes/timber-library/vendor/twig/twig/lib/Twig/Node/Expression/AssignName.php:13
- > PHP Fatal error
Uncaught Error: Class 'Twig_Filter' not found in wp-content/plugins/shortcodehub/inc/classes/timber-library/vendor/twig/twig/lib/Twig/Filter/Function.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TokenParserBrokerInterface' not found in wp-content/plugins/shortcodehub/inc/classes/timber-library/vendor/twig/twig/lib/Twig/TokenParserBroker.php:20
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/shortcodehub/inc/classes/timber-library/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/shortcodehub/inc/classes/types/query/post/timeline/class-sh-shortcode-type-query-timeline.php:46
- > PHP Fatal error
Uncaught Error: Class 'Twig_Filter' not found in wp-content/plugins/shortcodehub/inc/classes/timber-library/vendor/twig/twig/lib/Twig/Filter/Method.php:23
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/shortcodehub/inc/classes/timber-library/vendor/twig/twig/lib/Twig/Node/Expression/Call.php:11
- > PHP Fatal error
require_once(): Failed opening required 'SHORTCODEHUB_DIRinc/classes/types/class-sh-shortcode-type-text-editor.php' (include_path='.:/usr/share/php') in wp-content/plugins/shortcodehub/inc/classes/class-sh-shortcode.php on line 46
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/shortcodehub/inc/classes/timber-library/vendor/composer/installers/src/Composer/Installers/ChefInstaller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/shortcodehub/inc/includes/getting-started.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #6, #7, #8, #9 in shortcodehub/assets to your readme.txt
shortcodehub/shortcodehub.php Passed 13 tests
"ShortcodeHub - MultiPurpose Shortcode Builder" version 1.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
Unleash the Power of Shortcodes with the Ultimate All-in-One Multi-Purpose Shortcode Builder! 🚀
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin48,851 lines of code in 837 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 651 | 7,227 | 14,795 | 31,121 |
JavaScript | 21 | 2,439 | 586 | 8,166 |
CSS | 26 | 411 | 78 | 4,047 |
reStructuredText | 89 | 2,414 | 2,131 | 3,370 |
C | 1 | 172 | 184 | 859 |
JSON | 6 | 0 | 0 | 620 |
Markdown | 3 | 120 | 0 | 299 |
Twig | 22 | 56 | 0 | 162 |
Bourne Shell | 1 | 22 | 6 | 86 |
XML | 3 | 6 | 0 | 71 |
HTML | 11 | 0 | 0 | 17 |
C/C++ Header | 1 | 7 | 13 | 15 |
SVG | 1 | 1 | 0 | 13 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 37 | |
Interfaces | 47 | |
Traits | 0 | |
Classes | 639 | |
▷ Abstract classes | 18 | 2.82% |
▷ Concrete classes | 621 | 97.18% |
▷ Final classes | 4 | 0.64% |
Methods | 2,359 | |
▷ Static methods | 224 | 9.50% |
▷ Public methods | 2,061 | 87.37% |
▷ Protected methods | 258 | 10.94% |
▷ Private methods | 40 | 1.70% |
Functions | 154 | |
▷ Named functions | 106 | 68.83% |
▷ Anonymous functions | 48 | 31.17% |
Constants | 68 | |
▷ Global constants | 8 | 11.76% |
▷ Class constants | 60 | 88.24% |
▷ Public constants | 60 | 100.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
4 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/assets/images/show-shortcode.png | 47.78KB | 20.02KB | ▼ 58.09% |
inc/assets/images/show-hooks.png | 47.44KB | 14.34KB | ▼ 69.77% |
inc/assets/images/select-shortcode-type.png | 59.46KB | 21.19KB | ▼ 64.37% |
inc/assets/images/logo.png | 5.12KB | 2.72KB | ▼ 46.82% |