84% slicknav-mobile-menu

Code Review | SlickNav Mobile Menu

WordPress plugin SlickNav Mobile Menu scored84%from 54 tests.

About plugin

  • Plugin page: slicknav-mobile-menu
  • Plugin version: 1.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 7, 2015
  • Latest release: Aug 26, 2023
  • Number of updates: 100
  • Update frequency: every 30.6 days
  • Top authors: neilgee (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

5,000+ active /96,610 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼1.48ms] Passed 4 tests

This is a short check of server-side resources used by SlickNav Mobile Menu
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.12 ▲2.38
Dashboard /wp-admin3.33 ▲0.0350.26 ▼2.66
Posts /wp-admin/edit.php3.38 ▲0.0349.14 ▲2.16
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.25 ▼1.24
Media Library /wp-admin/upload.php3.26 ▲0.0333.09 ▼4.18
SlickNav Menu /wp-admin/options-general.php?page=wpslicknav-menu3.2938.35

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for SlickNav Mobile Menu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.40 ▲0.021.74 ▼0.1144.82 ▲2.46
Dashboard /wp-admin2,219 ▲196.02 ▲0.12102.53 ▼6.6137.88 ▼4.61
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.1435.45 ▼7.0333.49 ▼9.76
Add New Post /wp-admin/post-new.php1,557 ▲2618.17 ▼4.97643.53 ▼61.8954.68 ▲1.73
Media Library /wp-admin/upload.php1,407 ▲44.25 ▲0.0498.51 ▼5.7146.35 ▼0.22
SlickNav Menu /wp-admin/options-general.php?page=wpslicknav-menu3,0035.02130.1657.31

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/slicknav-mobile-menu/inc/options-page-wrapper.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slicknav-mobile-menu/inc/inlinecss.php:250

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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 to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === slicknav-mobile-menu === )
The official readme.txt is a good inspiration

slicknav-mobile-menu/slicknav-mobile-menu.php Passed 13 tests

The main PHP file in "SlickNav Mobile Menu" ver. 1.9.2 adds more information about the plugin and also serves as the entry point for this plugin
51 characters long description:
Using SlickNav Responsive Mobile Menus in WordPress

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
There were no executable files found in this plugin1,901 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP3234268981
JavaScript811298563
CSS21510181
PO File1108175176

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
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
Namespaces1
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%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin