84% stick-with-me-menu

Code Review | Stick With Me Menu

WordPress plugin Stick With Me Menu scored84%from 54 tests.

About plugin

  • Plugin page: stick-with-me-menu
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 3, 2016
  • Latest release: Mar 3, 2016
  • Number of updates: 4
  • Update frequency: every 3.5 days
  • Top authors: Jayden Major (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,121 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼7.09ms] Passed 4 tests

Server-side resources used by Stick With Me Menu
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.68 ▼3.87
Dashboard /wp-admin3.31 ▼0.0442.04 ▼20.90
Posts /wp-admin/edit.php3.36 ▲0.0047.38 ▲4.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.02 ▼3.40
Media Library /wp-admin/upload.php3.23 ▲0.0033.55 ▼0.18

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Stick With Me Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.24 ▼1.151.66 ▼0.4043.07 ▼1.08
Dashboard /wp-admin2,208 ▲205.91 ▲1.05106.57 ▼8.1538.42 ▼9.46
Posts /wp-admin/edit.php2,091 ▲22.03 ▲0.0339.18 ▲1.3734.07 ▲0.56
Add New Post /wp-admin/post-new.php1,530 ▲1120.97 ▼2.39695.47 ▲40.5748.97 ▼16.48
Media Library /wp-admin/upload.php1,384 ▼44.15 ▼0.0599.83 ▲5.1044.18 ▲0.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stick-with-me-menu/stick-with-me-menu.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No plugin tags provided

stick-with-me-menu/stick-with-me-menu.php Passed 13 tests

The principal PHP file in "Stick With Me Menu" v. 1.0 is loaded by WordPress automatically on each request
117 characters long description:
This plugin makes the add pages section of the wordpress menu editor stay on screeen no matter how long your menu is.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin16 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP301610
CSS1006

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems 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%
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
No PNG files were detected