10% sidebar-content-from-shortcode

Code Review | Sidebar-Content from Shortcode

WordPress plugin Sidebar-Content from Shortcode scored10%from 54 tests.

About plugin

  • Plugin page: sidebar-content-f...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-3.8
  • WordPress version: 6.3.1
  • First release: Dec 12, 2013
  • Latest release: Jan 23, 2014
  • Number of updates: 7
  • Update frequency: every 6.3 days
  • Top authors: pflonk (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

20+ active /1,769 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/sidebar-content-from-shortcode/sidebar-content-from-shortcode.php+155
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.73ms] Passed 4 tests

A check of server-side resources used by Sidebar-Content from Shortcode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0047.57 ▲6.88
Dashboard /wp-admin3.31 ▼0.0445.79 ▼23.72
Posts /wp-admin/edit.php3.36 ▲0.0050.98 ▼1.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.34 ▼4.72
Media Library /wp-admin/upload.php3.23 ▲0.0028.96 ▼5.41

Server storage [IO: ▲0.01MB] [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
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Sidebar-Content from Shortcode: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▲0.061.75 ▼0.1839.33 ▼6.58
Dashboard /wp-admin2,195 ▲215.52 ▼0.1587.64 ▼7.0840.62 ▼0.43
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0539.81 ▲1.9035.55 ▲2.39
Add New Post /wp-admin/post-new.php1,526 ▼023.24 ▼0.48627.35 ▼66.2953.00 ▼5.20
Media Library /wp-admin/upload.php1,403 ▲64.21 ▲0.0599.00 ▼15.4346.44 ▲0.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/sidebar-content-from-shortcode/sidebar-content-from-shortcode.php on line 155

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === sidebar-content-from-shortcode === )
You can look at the official readme.txt

sidebar-content-from-shortcode/sidebar-content-from-shortcode.php 92% from 13 tests

Analyzing the main PHP file in "Sidebar-Content from Shortcode" version 2.0
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin124 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11714124

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin