10% page-specific-sidebars

Code Review | Simple Page Specific Sidebars

WordPress plugin Simple Page Specific Sidebars scored10%from 54 tests.

About plugin

  • Plugin page: page-specific-sid...
  • Plugin version: 2.14.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4
  • WordPress version: 6.3.1
  • First release: May 23, 2011
  • Latest release: Nov 13, 2012
  • Number of updates: 27
  • Update frequency: every 20.0 days
  • Top authors: dgilfoy (51.85%)ivycat (44.44%)sewmyheadon (11.11%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /14,567 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php+268
    Trying to get property 'ID' of non-object

Server metrics [RAM: ▼1.85MB] [CPU: ▼56.32ms] Passed 4 tests

A check of server-side resources used by Simple Page Specific Sidebars
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.336.30 ▼36.94
Dashboard /wp-admin2.15 ▼1.157.59 ▼47.80
Posts /wp-admin/edit.php2.15 ▼1.206.99 ▼42.45
Add New Post /wp-admin/post-new.php2.15 ▼3.738.25 ▼98.07
Media Library /wp-admin/upload.php2.15 ▼1.077.27 ▼27.95
Page Sidebar Settings /wp-admin/options-general.php?page=page-sidebar-settings2.156.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Simple Page Specific Sidebars
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.34 ▼1.042.16 ▲0.3343.11 ▲2.96
Dashboard /wp-admin2,207 ▲185.80 ▼0.0997.63 ▼18.8340.41 ▼0.89
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0236.53 ▼0.2537.18 ▼0.13
Add New Post /wp-admin/post-new.php1,536 ▲2223.20 ▲5.70662.83 ▼31.8569.06 ▲2.94
Media Library /wp-admin/upload.php1,386 ▼24.17 ▲0.05100.01 ▼7.0246.63 ▼1.20
Page Sidebar Settings /wp-admin/options-general.php?page=page-sidebar-settings1,1052.0725.7951.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php+268
    Trying to get property 'ID' of non-object
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=page-sidebar-settings
    • > Notice in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php+268
    Trying to get property 'ID' of non-object

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/page-specific-sidebars/assets/desc.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/page-specific-sidebars/page-specific-sidebars.php:33
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/page-specific-sidebars/assets/page-sidebar-options-view.php:37
    • > PHP Notice
      Undefined variable: wp_registered_sidebars in wp-content/plugins/page-specific-sidebars/assets/page-sidebar-options-view.php on line 22

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=page-sidebar-settings
    • > Network (severe)
    wp-content/plugins/page-specific-sidebars/screenshot-1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=page-sidebar-settings
    • > Network (severe)
    wp-content/plugins/page-specific-sidebars/screenshot-2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=page-sidebar-settings
    • > Network (severe)
    wp-content/plugins/page-specific-sidebars/screenshot-3.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

page-specific-sidebars/page-specific-sidebars.php Passed 13 tests

The primary PHP file in "Simple Page Specific Sidebars" version 2.14.1 is used by WordPress to initiate all plugin functionality
71 characters long description:
Add a sidebar to any specific page by creating a widget area on demand.

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
Good job! No executable or dangerous file extensions detected611 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34534349
CSS151243
JavaScript10019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity42.00
▷ Minimum class complexity42.00
▷ Maximum class complexity42.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods1280.00%
▷ Protected methods320.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/email.png0.49KB0.29KB▼ 41.87%
assets/feed.png0.71KB0.58KB▼ 18.26%
assets/linkedin.png0.62KB0.53KB▼ 14.15%
assets/facebook.png0.47KB0.29KB▼ 37.73%
assets/twitter.png0.64KB0.61KB▼ 5.02%