89% thinker-sidebar-shortcode

Code Review | Sidebar Shortcode

WordPress plugin Sidebar Shortcode scored89%from 54 tests.

About plugin

  • Plugin page: thinker-sidebar-s...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 4, 2018
  • Latest release: Dec 8, 2021
  • Number of updates: 10
  • Update frequency: every 137.9 days
  • Top authors: thinkerwebdesign (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /5,404 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.01MB] [CPU: ▼8.45ms] Passed 4 tests

A check of server-side resources used by Sidebar Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.40 ▼6.30
Dashboard /wp-admin3.32 ▲0.0149.36 ▼1.46
Posts /wp-admin/edit.php3.37 ▲0.0152.21 ▼3.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.10 ▼22.38
Media Library /wp-admin/upload.php3.24 ▲0.0137.32 ▲2.17

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Sidebar Shortcode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.094.86 ▲3.0339.29 ▼7.42
Dashboard /wp-admin2,203 ▲155.82 ▲0.94103.97 ▼1.7644.28 ▼2.02
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0540.29 ▼2.4734.85 ▼3.01
Add New Post /wp-admin/post-new.php1,532 ▼123.59 ▲0.34641.02 ▲16.8760.53 ▲14.92
Media Library /wp-admin/upload.php1,391 ▲64.28 ▲0.0898.15 ▼5.9146.18 ▼2.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
  • Requires at least: Version not formatted correctly
You can look at the official readme.txt

thinker-sidebar-shortcode/thinker-sidebar-shortcode.php Passed 13 tests

The main file in "Sidebar Shortcode" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Add sidebars to WP posts and pages via shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin68 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2178768

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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 files were detected