84% admin-sticky-sidebar

Code Review | Admin Sticky Sidebar

WordPress plugin Admin Sticky Sidebar scored84%from 54 tests.

About plugin

  • Plugin page: admin-sticky-sidebar
  • Plugin version: 1.6.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2022
  • Latest release: Nov 30, 2023
  • Number of updates: 19
  • Update frequency: every 37.9 days
  • Top authors: followalter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Admin Sticky Sidebar
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.82 ▼3.09
Dashboard /wp-admin3.31 ▲0.0146.64 ▼10.65
Posts /wp-admin/edit.php3.36 ▲0.0047.63 ▲1.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.11 ▼2.73
Media Library /wp-admin/upload.php3.23 ▲0.0034.08 ▲0.56

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin Sticky Sidebar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3214.68 ▲0.321.69 ▼0.0341.20 ▼5.19
Dashboard /wp-admin2,202 ▲325.62 ▼0.0293.67 ▼15.4642.19 ▼3.65
Posts /wp-admin/edit.php2,107 ▲41.98 ▼0.0040.28 ▼3.2233.68 ▲1.59
Add New Post /wp-admin/post-new.php1,530 ▲423.26 ▲0.18589.29 ▼14.2955.72 ▲0.81
Media Library /wp-admin/upload.php1,404 ▲74.16 ▼0.0399.80 ▼2.0540.97 ▼2.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-sticky-sidebar/admin-sticky-sidebar.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can take inspiration from this readme.txt

admin-sticky-sidebar/admin-sticky-sidebar.php Passed 13 tests

The principal PHP file in "Admin Sticky Sidebar" v. 1.6.1 is loaded by WordPress automatically on each request
116 characters long description:
Makes the sidebar follow you when you scroll and remembers scroll position on update. For more info, see the readme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected98 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1171844
CSS115143
PHP141211

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.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%
Functions2
▷ Named functions2100.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