90% woosidebars

Code Review | WooSidebars

WordPress plugin WooSidebars scored 90% from 54 tests.

About plugin

  • Plugin page: woosidebars
  • Plugin version: 1.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2012
  • Latest release: Mar 11, 2022
  • Number of updates: 25
  • Update frequency: every 143.4 days
  • Top authors: mattyza (92%)wpmuguru (8%)jeffikus (8%)

Code review

54 tests

User reviews

47 reviews

Install metrics

200,000+ active / 2,800,890 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.23MB] [CPU: ▲0.04ms] Passed 4 tests

An overview of server-side resources used by WooSidebars
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2443.99 ▼1.00
Dashboard /wp-admin3.53 ▲0.2354.28 ▲3.49
Posts /wp-admin/edit.php3.65 ▲0.3057.36 ▲10.92
Add New Post /wp-admin/post-new.php6.12 ▲0.2390.55 ▼3.72
Media Library /wp-admin/upload.php3.46 ▲0.2343.49 ▲1.39
Widget Areas /wp-admin/edit.php?post_type=sidebar3.5450.02

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options
woosidebars-version
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WooSidebars: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲2913.24 ▼1.491.70 ▼0.1440.13 ▼3.37
Dashboard /wp-admin2,207 ▼25.79 ▼0.05104.90 ▲0.9539.68 ▲0.59
Posts /wp-admin/edit.php2,111 ▲222.00 ▼0.0539.15 ▲3.5234.54 ▲1.74
Add New Post /wp-admin/post-new.php1,542 ▲923.09 ▼0.14709.25 ▲22.3252.51 ▼5.42
Media Library /wp-admin/upload.php1,389 ▲14.18 ▼0.03104.23 ▼0.3944.40 ▼2.14
Widget Areas /wp-admin/edit.php?post_type=sidebar1,0481.9530.6527.83

Uninstaller [IO: ✅] [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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • woosidebars-version
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: sidebars, widget-areas, widgets

woosidebars/woosidebars.php Passed 13 tests

Analyzing the main PHP file in "WooSidebars" version 1.4.6
96 characters long description:
Replace widget areas in your theme for specific pages, archives and other sections of WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin1,119 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP53334191,040
CSS26231
Markdown112027
JavaScript14121

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity79.00
▷ Minimum class complexity28.00
▷ Maximum class complexity115.00
Average method complexity5.98
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods47
▷ Static methods00.00%
▷ Public methods4289.36%
▷ Protected methods00.00%
▷ Private methods510.64%
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

All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/success.png0.27KB0.39KB0.00%
assets/images/icon-settings.png0.35KB0.37KB0.00%
assets/images/success-off.png0.29KB0.32KB0.00%