84% simple-slideout-menu

Code Review | Slide-out Menu - Mobile Friendly modern navigation

WordPress plugin Slide-out Menu - Mobile Friendly modern navigation scored84%from 54 tests.

About plugin

  • Plugin page: simple-slideout-menu
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 5, 2022
  • Latest release: Sep 21, 2023
  • Number of updates: 6
  • Update frequency: every 68.7 days
  • Top authors: simplewpplugins (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

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

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.54ms] Passed 4 tests

An overview of server-side resources used by Slide-out Menu - Mobile Friendly modern navigation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1540.95 ▲4.57
Dashboard /wp-admin3.41 ▲0.1149.67 ▲2.41
Posts /wp-admin/edit.php3.52 ▲0.1744.26 ▼5.48
Add New Post /wp-admin/post-new.php5.99 ▲0.1079.82 ▼19.22
Media Library /wp-admin/upload.php3.33 ▲0.1036.98 ▲0.13

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slide-out Menu - Mobile Friendly modern navigation
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲15413.33 ▼1.027.86 ▲6.0937.54 ▼9.67
Dashboard /wp-admin2,198 ▲185.62 ▼0.0280.98 ▼5.4338.42 ▼1.95
Posts /wp-admin/edit.php2,097 ▼62.03 ▲0.0135.31 ▼6.8936.73 ▼2.96
Add New Post /wp-admin/post-new.php1,526 ▼523.76 ▲0.52681.89 ▲75.2757.78 ▲8.18
Media Library /wp-admin/upload.php1,400 ▼04.11 ▼0.09112.67 ▲17.0849.56 ▲7.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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
Even though no errors were found, 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
The following issues need your attention
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/simple-slideout-menu/simple-slideout-menu.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-slideout-menu/templates/slideout.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/simple-slideout-menu/includes/admin/customizer-controls/alpha-color-picker.php:22

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

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

simple-slideout-menu/simple-slideout-menu.php 92% from 13 tests

"Slide-out Menu - Mobile Friendly modern navigation" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.2" instead of "7.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,005 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP1023471607
CSS2463237
JavaScript26064161

PHP code Passed 2 tests

This is a short overview 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.22
Average class complexity4.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 images were found in this plugin