84% shortcodes-in-widgets

Code Review | Shortcodes In Widgets

WordPress plugin Shortcodes In Widgets scored84%from 54 tests.

About plugin

  • Plugin page: shortcodes-in-wid...
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 17, 2016
  • Latest release: Jan 5, 2021
  • Number of updates: 9
  • Update frequency: every 184.8 days
  • Top authors: pawaryogesh1989 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /4,565 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.45ms] Passed 4 tests

Analyzing server-side resources used by Shortcodes In Widgets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.31 ▼1.16
Dashboard /wp-admin3.31 ▲0.0145.45 ▼4.45
Posts /wp-admin/edit.php3.36 ▲0.0047.45 ▼1.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.32 ▲1.75
Media Library /wp-admin/upload.php3.23 ▲0.0036.63 ▲3.40

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Shortcodes In Widgets: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.151.69 ▲0.0246.02 ▲1.60
Dashboard /wp-admin2,206 ▲154.84 ▼1.20106.24 ▼10.4940.48 ▼7.29
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0141.34 ▲3.1035.90 ▲1.16
Add New Post /wp-admin/post-new.php1,514 ▼2017.54 ▼5.69681.37 ▲36.5753.22 ▲0.54
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.0195.23 ▼0.0043.90 ▲2.81

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/shortcodes-in-widgets/shortcodes-in-widgets.php

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

shortcodes-in-widgets/shortcodes-in-widgets.php 92% from 13 tests

The main PHP file in "Shortcodes In Widgets" ver. 3.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101718

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin