84% genesis-mobile-sticky-menu

Code Review | Genesis mobile & sticky menu

WordPress plugin Genesis mobile & sticky menu scored84%from 54 tests.

About plugin

  • Plugin page: genesis-mobile-st...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2015
  • Latest release: Apr 16, 2015
  • Number of updates: 17
  • Update frequency: every 2.5 days
  • Top authors: ronimarinkovic (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /13,059 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Genesis mobile & sticky menu
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.92 ▼3.04
Dashboard /wp-admin3.31 ▼0.0444.82 ▼20.24
Posts /wp-admin/edit.php3.36 ▲0.0046.24 ▲0.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.06 ▼22.46
Media Library /wp-admin/upload.php3.23 ▲0.0034.91 ▲1.31
Mobile menu /wp-admin/admin.php?page=genesis-mobile-sticky-menu3.0123.12

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis mobile & sticky menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.59 ▲0.181.59 ▼0.1237.78 ▼4.63
Dashboard /wp-admin2,195 ▲215.55 ▼0.1384.37 ▼14.5940.05 ▼4.28
Posts /wp-admin/edit.php2,097 ▼31.95 ▼0.0439.44 ▲2.4534.80 ▲1.77
Add New Post /wp-admin/post-new.php1,528 ▼023.03 ▼0.21673.77 ▲72.9960.95 ▲8.36
Media Library /wp-admin/upload.php1,397 ▼64.39 ▲0.1396.99 ▼0.6246.07 ▲2.78
Mobile menu /wp-admin/admin.php?page=genesis-mobile-sticky-menu280.420.093.78

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=genesis-mobile-sticky-menu
    • > Network (severe)
    wp-admin/admin.php?page=genesis-mobile-sticky-menu - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% 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
9 plugin tags: genesis, sticky menu, stick to top, mobile menu, sticky...

genesis-mobile-sticky-menu/plugin.php 92% from 13 tests

The primary PHP file in "Genesis mobile & sticky menu" version 1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("genesis-mobile-sticky-menu.php" instead of "plugin.php")

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
No dangerous file extensions were detected286 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13223207
JavaScript20174
CSS1005

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected