94% enable-shortcodes-inside-widgetscomments-and-experts

Code Review | Enable Shortcodes inside Widgets,Comments and Experts

WordPress plugin Enable Shortcodes inside Widgets,Comments and Experts scored 94% from 54 tests.

About plugin

  • Plugin page: enable-shortcodes...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.6
  • WordPress version: 5.9.2
  • First release: Apr 16, 2016
  • Latest release: Jan 26, 2021
  • Number of updates: 12
  • Update frequency: every 145.5 days
  • Top authors: amu02aftab (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

600+ active / 3,803 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.93ms] Passed 4 tests

An overview of server-side resources used by Enable Shortcodes inside Widgets,Comments and Experts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.85 ▲2.26
Dashboard /wp-admin3.41 ▲0.0136.47 ▲0.90
Posts /wp-admin/edit.php3.65 ▲0.0137.91 ▼2.02
Add New Post /wp-admin/post-new.php6.88 ▼0.0990.22 ▼1,181.17
Media Library /wp-admin/upload.php3.30 ▲0.0023.85 ▼1.44

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Enable Shortcodes inside Widgets,Comments and Experts: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,764 ▲2215.83 ▲0.655.71 ▼0.822.32 ▲0.36
Dashboard /wp-admin2,892 ▲386.17 ▲0.02118.98 ▼29.14175.10 ▲5.32
Posts /wp-admin/edit.php2,691 ▼03.24 ▲0.0161.29 ▼3.15138.52 ▼13.33
Add New Post /wp-admin/post-new.php1,668 ▼8417.63 ▼4.27419.69 ▼45.72190.77 ▼16.82
Media Library /wp-admin/upload.php1,698 ▼05.51 ▲0.01158.03 ▼33.18262.88 ▲69.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/enable-shortcodes-inside-widgetscomments-and-experts/enable-shortcodes-inside-widgets-comments-experts.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: shortcodes, shortcode in comment, shortcode widget, shortcodes in category description

enable-shortcodes-inside-widgetscomments-and-experts/enable-shortcodes-inside-widgets-comments-experts.php 92% from 13 tests

"Enable Shortcodes inside Widgets,Comments and Experts" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("enable-shortcodes-inside-widgetscomments-and-experts.php" instead of "enable-shortcodes-inside-widgets-comments-experts.php")

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 detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151410

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin