90% pryc-wp-widget-shortcode

Code Review | PRyC WP: Widget Shortcode

WordPress plugin PRyC WP: Widget Shortcode scored90%from 54 tests.

About plugin

  • Plugin page: pryc-wp-widget-sh...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 28, 2014
  • Latest release: Jun 20, 2023
  • Number of updates: 16
  • Update frequency: every 195.4 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,435 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by PRyC WP: Widget Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.68 ▼4.60
Dashboard /wp-admin3.31 ▲0.0047.35 ▼11.39
Posts /wp-admin/edit.php3.36 ▲0.0050.65 ▲0.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.17 ▼15.33
Media Library /wp-admin/upload.php3.23 ▲0.0034.58 ▲0.05

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

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

Browser metrics Passed 4 tests

A check of browser resources used by PRyC WP: Widget Shortcode
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.374.26 ▲2.6942.39 ▲1.70
Dashboard /wp-admin2,200 ▲125.83 ▲0.01108.98 ▲0.2138.53 ▼3.45
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0741.48 ▲0.2234.78 ▼0.56
Add New Post /wp-admin/post-new.php1,533 ▲1423.06 ▼0.05656.34 ▲7.7753.47 ▼6.99
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.0299.82 ▼9.4643.40 ▼3.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 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
6 plugin tags: wordpress, shortcode, shortcodes, widget, widgets...

pryc-wp-widget-shortcode/pryc-wp-widget-shortcode.php Passed 13 tests

The main PHP file in "PRyC WP: Widget Shortcode" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
32 characters long description:
Add shortcode support to widgets

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
Good job! No executable or dangerous file extensions detected3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16103

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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
There were not PNG files found in your plugin