84% wp-sticky-menu

Code Review | WP Sticky Menu

WordPress plugin WP Sticky Menu scored84%from 54 tests.

About plugin

  • Plugin page: wp-sticky-menu
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 9, 2015
  • Latest release: Sep 15, 2016
  • Number of updates: 4
  • Update frequency: every 87.0 days
  • Top authors: newbiesup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /19,494 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.60ms] Passed 4 tests

Server-side resources used by WP Sticky Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1142.90 ▲0.94
Dashboard /wp-admin3.39 ▲0.0851.20 ▼1.18
Posts /wp-admin/edit.php3.50 ▲0.1445.29 ▼6.00
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.60 ▼8.16
Media Library /wp-admin/upload.php3.31 ▲0.0840.20 ▲7.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Sticky Menu
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.43 ▼0.8511.52 ▲9.8651.98 ▲9.46
Dashboard /wp-admin2,198 ▲215.62 ▲0.0191.71 ▲0.3141.76 ▼0.82
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0035.88 ▼2.0634.46 ▼4.20
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.26649.27 ▼36.5453.62 ▼7.93
Media Library /wp-admin/upload.php1,394 ▼34.24 ▲0.0899.17 ▼4.8943.58 ▼3.85

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

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-sticky-menu/public/partials/wp-sticky-menu-public-display.php
    • > /wp-content/plugins/wp-sticky-menu/admin/partials/wp-sticky-menu-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin settings in Customizer), #2 (How this plugin works in Twenty Thirteen with Default settings)
You can take inspiration from this readme.txt

wp-sticky-menu/wp-sticky-menu.php Passed 13 tests

This is the main PHP file of "WP Sticky Menu" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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
Success! There were no dangerous files found in this plugin1,580 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG100685
PHP12135538365
CSS287320
JavaScript33630146
PO File1222464

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.52
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2177.78%
▷ Protected methods00.00%
▷ Private methods622.22%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 compressed PNG files occupy 0.08MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png52.71KB56.54KB0.00%
screenshot-1.png27.78KB28.76KB0.00%