89% wp-shortcodes-in-widgets

Code Review | WP Shortcodes in Widgets

WordPress plugin WP Shortcodes in Widgets scored89%from 54 tests.

About plugin

  • Plugin page: wp-shortcodes-in-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.7
  • WordPress version: 6.3.1
  • First release: Jul 21, 2016
  • Latest release: Nov 2, 2016
  • Number of updates: 18
  • Update frequency: every 11.2 days
  • Top authors: lowest (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,381 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼1.04ms] Passed 4 tests

This is a short check of server-side resources used by WP Shortcodes in Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.52 ▼2.08
Dashboard /wp-admin3.31 ▲0.0150.07 ▼0.16
Posts /wp-admin/edit.php3.36 ▲0.0048.80 ▼1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.00101.06 ▲1.79
Media Library /wp-admin/upload.php3.23 ▲0.0037.78 ▼0.63

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, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Shortcodes in Widgets
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.151.98 ▲0.2439.60 ▲0.52
Dashboard /wp-admin2,195 ▲185.57 ▼0.1087.52 ▼6.3841.95 ▼2.51
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0239.19 ▲3.6136.75 ▼0.00
Add New Post /wp-admin/post-new.php1,526 ▼223.20 ▲0.01602.26 ▼81.9751.32 ▼3.66
Media Library /wp-admin/upload.php1,400 ▼04.28 ▼0.0797.95 ▲1.9241.68 ▼2.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
7 plugin tags: widgets, shortcode in widget, shortcode, shortcodes, widget...

wp-shortcodes-in-widgets/wp-shortcodes-in-widgets.php 77% from 13 tests

Analyzing the main PHP file in "WP Shortcodes in Widgets" version 1.0.3
You should first fix the following items:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13266

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 files were detected