84% sidemenu

Code Review | SideMenu

WordPress plugin SideMenu scored84%from 54 tests.

About plugin

  • Plugin page: sidemenu
  • Plugin version: 1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Oct 18, 2019
  • Latest release: Nov 1, 2023
  • Number of updates: 99
  • Update frequency: every 14.9 days
  • Top authors: domainsupport (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /48,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▼6.25ms] Passed 4 tests

A check of server-side resources used by SideMenu
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3144.42 ▲0.66
Dashboard /wp-admin3.58 ▲0.2850.94 ▼1.68
Posts /wp-admin/edit.php3.70 ▲0.3445.24 ▼7.58
Add New Post /wp-admin/post-new.php6.17 ▲0.2882.41 ▼16.40
Media Library /wp-admin/upload.php3.51 ▲0.2842.62 ▲7.00

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

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

Browser metrics Passed 4 tests

SideMenu: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲10014.39 ▲0.043.07 ▲1.0645.27 ▲1.71
Dashboard /wp-admin2,195 ▲175.62 ▼0.1081.92 ▼22.1539.93 ▼0.30
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0134.53 ▼2.1833.14 ▼0.39
Add New Post /wp-admin/post-new.php1,686 ▲14122.23 ▲3.90651.18 ▲34.9258.23 ▼6.22
Media Library /wp-admin/upload.php1,403 ▲94.22 ▲0.0095.02 ▼4.3840.72 ▼4.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

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)
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/sidemenu/sidemenu.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: side nav, vertical menu, slide menu, side menu

sidemenu/sidemenu.php Passed 13 tests

The principal PHP file in "SideMenu" v. 1.8 is loaded by WordPress automatically on each request
53 characters long description:
Injects a sliding side menu / sidebar into any theme!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,674 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP3561171,159
JavaScript5263369
CSS2230118
JSON10028

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity52.00
▷ Minimum class complexity6.00
▷ Maximum class complexity85.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods45
▷ Static methods2555.56%
▷ Public methods45100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin