10% blend-shortcode

Code Review | Blend Shortcode

WordPress plugin Blend Shortcode scored10%from 54 tests.

About plugin

  • Plugin page: blend-shortcode
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 18, 2014
  • Latest release: Nov 18, 2014
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: sirokai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /861 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.39 ▼38.95
Dashboard /wp-admin2.09 ▼1.2510.57 ▼47.15
Posts /wp-admin/edit.php2.09 ▼1.266.53 ▼35.74
Add New Post /wp-admin/post-new.php2.09 ▼3.795.69 ▼99.80
Media Library /wp-admin/upload.php2.09 ▼1.146.00 ▼27.82
Blend /wp-admin/options-general.php?page=blend-shortcode2.096.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.73 ▲0.351.59 ▼0.3838.46 ▼5.50
Dashboard /wp-admin2,213 ▲214.86 ▼0.1399.30 ▼12.1040.65 ▲2.14
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0139.15 ▼0.5434.59 ▼1.74
Add New Post /wp-admin/post-new.php1,517 ▼2517.82 ▼0.54633.67 ▲18.1446.05 ▼7.90
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.0795.24 ▼8.3840.45 ▼2.96
Blend /wp-admin/options-general.php?page=blend-shortcode8092.0324.4923.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP13345112

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 code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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