89% cool-sticky-menu

Code Review | Sticky Menu

WordPress plugin Sticky Menu scored 89% from 54 tests.

About plugin

  • Plugin page: cool-sticky-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 5.8.1
  • First release: May 13, 2016
  • Latest release: May 10, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: farvehandleren (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,706 total downloads


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
Install script ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼179.85ms] Passed 4 tests

This is a short check of server-side resources used by Sticky Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0038.00 ▼1.13
Dashboard /wp-admin2.74 ▼0.3222.83 ▼27.68
Posts /wp-admin/edit.php2.74 ▼0.3724.62 ▼18.56
Add New Post /wp-admin/post-new.php2.74 ▼2.7015.94 ▼659.78
Media Library /wp-admin/upload.php2.74 ▼0.2623.84 ▼13.37

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Sticky Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲12815.90 ▲0.379.12 ▼2.3149.23 ▼1.76
Dashboard /wp-admin2,982 ▲465.89 ▼0.10141.57 ▼18.55129.62 ▲9.00
Posts /wp-admin/edit.php2,773 ▲342.72 ▲0.0062.76 ▼11.24103.13 ▲16.01
Add New Post /wp-admin/post-new.php1,696 ▲11518.70 ▲1.07397.72 ▼34.29104.28 ▼25.22
Media Library /wp-admin/upload.php1,841 ▲345.03 ▼0.02144.60 ▼25.02146.35 ▲18.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: sticky widget, sticky sidebar, sidebar, sticky, widget...

cool-sticky-menu/main.php 85% from 13 tests

Analyzing the main PHP file in "Sticky Menu" version 1.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cool-sticky-menu.php" instead of "main.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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 functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) img/sticky-icon.png1.81KB0.00KB▼ 100.00%