94% wp-sticky-admin-sidebar

Code Review | Sticky Admin Sidebar

WordPress plugin Sticky Admin Sidebar scored 94% from 54 tests.

About plugin

  • Plugin page: wp-sticky-admin-s...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 5.8.1
  • First release: Oct 1, 2015
  • Latest release: Nov 19, 2015
  • Number of updates: 5
  • Update frequency: every 10.0 days
  • Top authors: JasonGillyon (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active / 2,019 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Sticky Admin Sidebar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0033.27 ▼1.57
Dashboard /wp-admin3.07 ▲0.0141.90 ▼2.05
Posts /wp-admin/edit.php3.12 ▲0.0143.96 ▲0.09
Add New Post /wp-admin/post-new.php5.43 ▼0.0191.59 ▼564.56
Media Library /wp-admin/upload.php3.01 ▲0.0032.71 ▲0.31

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Sticky Admin Sidebar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10716.30 ▲0.7610.15 ▼0.2047.83 ▼0.63
Dashboard /wp-admin2,967 ▲335.95 ▲0.04148.07 ▲3.96107.97 ▼10.27
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0263.89 ▼5.7089.63 ▼7.19
Add New Post /wp-admin/post-new.php1,883 ▲20015.29 ▼3.53358.36 ▼5.56107.64 ▼3.82
Media Library /wp-admin/upload.php1,807 ▼05.03 ▼0.02159.72 ▲15.27123.62 ▲7.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-sticky-admin-sidebar/sticky-admin-sidebar.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
3 plugin tags: sidebar, sticky, admin

wp-sticky-admin-sidebar/sticky-admin-sidebar.php 92% from 13 tests

"Sticky Admin Sidebar" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-sticky-admin-sidebar.php" instead of "sticky-admin-sidebar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin44 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1101535
PHP13159

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code1.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%
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
PNG images were not found in this plugin