74% side-menu-lite

Code Review | Side Menu Lite - add sticky fixed buttons

WordPress plugin Side Menu Lite - add sticky fixed buttons scored74%from 54 tests.

About plugin

  • Plugin page: side-menu-lite
  • Plugin version: 4.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.4
  • WordPress version: 6.3.1
  • First release: Feb 2, 2019
  • Latest release: Oct 31, 2023
  • Number of updates: 49
  • Update frequency: every 35.4 days
  • Top authors: Wpcalc (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

5,000+ active /61,930 total downloads

Benchmarks

Plugin footprint 65% 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.14MB] [CPU: ▼5.83ms] Passed 4 tests

Analyzing server-side resources used by Side Menu Lite - add sticky fixed buttons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1436.82 ▼5.49
Dashboard /wp-admin3.45 ▲0.1444.82 ▼4.05
Posts /wp-admin/edit.php3.56 ▲0.2049.28 ▼4.62
Add New Post /wp-admin/post-new.php6.03 ▲0.1494.10 ▼9.17
Media Library /wp-admin/upload.php3.37 ▲0.1435.95 ▼1.14
Welcome /wp-admin/admin.php?page=wow-company3.3430.32
Side Menu Lite /wp-admin/admin.php?page=side-menu-lite3.4635.33

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: 1 new table, 6 new options
New tables
wp_wow_side_menu_pro
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Side Menu Lite - add sticky fixed buttons: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9414.25 ▼0.281.69 ▲0.0740.36 ▼1.69
Dashboard /wp-admin2,264 ▲875.63 ▼0.0298.79 ▲0.2441.84 ▼2.04
Posts /wp-admin/edit.php2,169 ▲692.03 ▲0.0042.53 ▲4.4935.55 ▲1.52
Add New Post /wp-admin/post-new.php1,550 ▲2222.97 ▼0.15670.35 ▲10.1160.91 ▲10.32
Media Library /wp-admin/upload.php1,466 ▲664.18 ▲0.01103.96 ▲4.0442.74 ▼1.16
Welcome /wp-admin/admin.php?page=wow-company9221.9926.0942.86
Side Menu Lite /wp-admin/admin.php?page=side-menu-lite1,1142.2343.2848.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 1 table in the database
    • wp_wow_side_menu_pro
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: icons_new in wp-content/plugins/side-menu-lite/admin/settings/options/clone.php on line 17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/side-menu-lite/admin/settings/options/menu.php:119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/side-menu-lite/admin/settings/options/main.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/side-menu-lite/admin/settings/options/clone.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (This is an example of a side menu), #2 (Admin panel), #3 (Admin panel)
The official readme.txt might help

side-menu-lite/side-menu-lite.php 92% from 13 tests

The primary PHP file in "Side Menu Lite - add sticky fixed buttons" version 4.1.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected14,518 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
CSS102,8481117,750
PHP325306014,810
Sass1418711,192
JavaScript5132267747
SVG10019

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.40
▷ Minimum class complexity4.00
▷ Maximum class complexity55.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes240.00%
Methods53
▷ Static methods35.66%
▷ Public methods4584.91%
▷ Protected methods11.89%
▷ Private methods713.21%
Functions1
▷ Named functions1100.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
5 PNG files occupy 0.27MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/about/image/icon.png121.88KB28.08KB▼ 76.96%
screenshot-1.png7.60KB3.01KB▼ 60.34%
admin/assets/img/side-menu-logo.png5.60KB2.88KB▼ 48.61%
screenshot-2.png74.15KB28.39KB▼ 61.71%
screenshot-3.png66.30KB24.69KB▼ 62.76%