78% lowermedia-sticky-js-menus

Code Review | LowerMedia Sticky.js Menus

WordPress plugin LowerMedia Sticky.js Menus scored 78% from 54 tests.

About plugin

  • Plugin page: lowermedia-sticky...
  • Plugin version: 3.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jul 8, 2013
  • Latest release: Jan 30, 2015
  • Number of updates: 21
  • Update frequency: every 27.2 days
  • Top authors: hawkeye126 (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

300+ active / 21,666 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.24ms] Passed 4 tests

A check of server-side resources used by LowerMedia Sticky.js Menus
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.53 ▲0.48
Dashboard /wp-admin3.35 ▲0.0548.24 ▲4.25
Posts /wp-admin/edit.php3.46 ▲0.1143.26 ▼0.83
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.99 ▼8.12
Media Library /wp-admin/upload.php3.27 ▲0.0433.49 ▼4.49
Sticky.js Menus /wp-admin/options-general.php?page=lm-stickyjs-settings3.2129.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for LowerMedia Sticky.js Menus
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,095 ▲33813.70 ▼0.7012.15 ▲9.8644.04 ▼11.47
Dashboard /wp-admin2,210 ▲184.85 ▼0.05113.81 ▲1.1543.96 ▲2.25
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0233.20 ▼2.2734.24 ▼1.58
Add New Post /wp-admin/post-new.php1,540 ▲2023.16 ▲0.06648.78 ▼34.4651.22 ▼10.77
Media Library /wp-admin/upload.php1,395 ▲74.26 ▲0.05103.39 ▼0.1845.53 ▼1.35
Sticky.js Menus /wp-admin/options-general.php?page=lm-stickyjs-settings8152.0627.7428.91

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • lmstickyjs_option_name
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=lm-stickyjs-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=lm-stickyjs-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/lowermedia-sticky-js-menus/lowermedia-sticky-js-menus.php

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 96% from 29 tests

readme.txt Passed 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
7 plugin tags: stickyjs, jquery, menu, multisite, navigation...

lowermedia-sticky-js-menus/lowermedia-sticky-js-menus.php 92% from 13 tests

The primary PHP file in "LowerMedia Sticky.js Menus" version 3.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 467 characters long)

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
Good job! No executable or dangerous file extensions detected190 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16160189
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.50
▷ Minimum class complexity3.00
▷ Maximum class complexity10.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods635.29%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
No PNG files were detected