78% sidebarautomizer

Code Review | sidebarAutomizer

WordPress plugin sidebarAutomizer scored78%from 54 tests.

About plugin

  • Plugin page: sidebarautomizer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.7
  • WordPress version: 6.3.1
  • First release: Aug 11, 2014
  • Latest release: Dec 8, 2016
  • Number of updates: 19
  • Update frequency: every 44.7 days
  • Top authors: damiroquai (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by sidebarAutomizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.75 ▼12.49
Dashboard /wp-admin3.32 ▼0.0250.50 ▼13.23
Posts /wp-admin/edit.php3.37 ▲0.0248.26 ▲1.33
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.64 ▼19.18
Media Library /wp-admin/upload.php3.25 ▲0.0234.74 ▲0.30
sidebarAutomizer /wp-admin/options-general.php?page=sidebar-automizer-settings3.1932.40

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
sidebarautomizer_option_name
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

sidebarAutomizer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11613.44 ▼0.9311.18 ▲9.4145.02 ▲3.68
Dashboard /wp-admin2,199 ▲225.56 ▼0.0693.59 ▲4.4043.09 ▲4.46
Posts /wp-admin/edit.php2,101 ▲42.02 ▲0.0236.40 ▼1.9932.44 ▼3.57
Add New Post /wp-admin/post-new.php1,529 ▲323.07 ▲0.28669.92 ▲9.2347.39 ▼5.46
Media Library /wp-admin/upload.php1,404 ▲14.23 ▲0.01106.27 ▲5.7744.30 ▲2.41
sidebarAutomizer /wp-admin/options-general.php?page=sidebar-automizer-settings8412.0226.0029.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • sidebarautomizer_option_name
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=sidebar-automizer-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=sidebar-automizer-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/sidebarautomizer/sidebar-automizer.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
5 plugin tags: sidebar, twenty-thirteen, jquery, plugin, twentythirteen

sidebarautomizer/sidebar-automizer.php 85% from 13 tests

The main file in "sidebarAutomizer" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sidebarautomizer.php" instead of "sidebar-automizer.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected236 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13747170
PO File1121352
JavaScript18214

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin