94% admin-sticky-sidebar

Code Review | Admin Sticky Sidebar

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

About plugin

  • Plugin page: admin-sticky-sidebar
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.1
  • WordPress version: 5.9.2
  • First release: Jan 5, 2022
  • Latest release: Feb 24, 2022
  • Number of updates: 8
  • Update frequency: every 9.5 days
  • Top authors: followalter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 134 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼295.68ms] 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.53 ▲0.0153.96 ▲1.17
Dashboard /wp-admin3.41 ▲0.0131.82 ▼2.75
Posts /wp-admin/edit.php3.65 ▲0.0136.30 ▼2.23
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.37 ▼1,176.81
Media Library /wp-admin/upload.php3.30 ▲0.0024.21 ▼0.92

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, no new options

Browser metrics Passed 4 tests

Admin Sticky Sidebar: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲916.17 ▲0.485.46 ▼1.072.38 ▼0.33
Dashboard /wp-admin2,895 ▲376.09 ▼0.05116.39 ▼15.37157.00 ▼5.87
Posts /wp-admin/edit.php2,694 ▼03.24 ▲0.0064.41 ▼0.46140.40 ▼0.90
Add New Post /wp-admin/post-new.php1,661 ▼11216.20 ▼5.48403.53 ▼56.34158.27 ▲1.93
Media Library /wp-admin/upload.php1,701 ▲35.54 ▲0.06136.01 ▼4.58183.91 ▼4.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 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 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 fix the following
  • 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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
The official readme.txt is a good inspiration

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

This is the main PHP file of "Admin Sticky Sidebar" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected77 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin