Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/blend-shortcode/blend-shortcode.php+94
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.93MB] [CPU: ▼55.41ms] Passed 4 tests
Server-side resources used by Blend Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.39 ▼38.95 |
Dashboard /wp-admin | 2.09 ▼1.25 | 10.57 ▼47.15 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 6.53 ▼35.74 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 5.69 ▼99.80 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.00 ▼27.82 |
Blend /wp-admin/options-general.php?page=blend-shortcode | 2.09 | 6.08 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Blend Shortcode: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.73 ▲0.35 | 1.59 ▼0.38 | 38.46 ▼5.50 |
Dashboard /wp-admin | 2,213 ▲21 | 4.86 ▼0.13 | 99.30 ▼12.10 | 40.65 ▲2.14 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.01 | 39.15 ▼0.54 | 34.59 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,517 ▼25 | 17.82 ▼0.54 | 633.67 ▲18.14 | 46.05 ▼7.90 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.25 ▲0.07 | 95.24 ▼8.38 | 40.45 ▼2.96 |
Blend /wp-admin/options-general.php?page=blend-shortcode | 809 | 2.03 | 24.49 | 23.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/blend-shortcode/blend-shortcode.php+94
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=blend-shortcode
- > Deprecated in wp-content/plugins/blend-shortcode/blend-shortcode.php+94
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/blend-shortcode/blend-shortcode.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: blend, shortcode, music, audio
blend-shortcode/blend-shortcode.php Passed 13 tests
The principal PHP file in "Blend Shortcode" v. 1.0.0 is loaded by WordPress automatically on each request
128 characters long description:
Converts Blend WordPress shortcodes to a Blend widget. Example: [blend]https://blend.io/project/54611406124aec59070070c4[/blend]
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
Everything looks great! No dangerous files found in this plugin112 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 45 | 112 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected