84% mslsmenu

Code Review | MslsMenu

WordPress plugin MslsMenu scored84%from 54 tests.

About plugin

  • Plugin page: mslsmenu
  • Plugin version: 2.3.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1-6.3
  • WordPress version: 6.3.1
  • First release: Sep 18, 2014
  • Latest release: Aug 9, 2023
  • Number of updates: 36
  • Update frequency: every 90.2 days
  • Top authors: realloc (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /23,404 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.00MB] [CPU: ▼3.11ms] Passed 4 tests

Server-side resources used by MslsMenu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.17 ▲1.32
Dashboard /wp-admin3.31 ▲0.0054.61 ▲5.60
Posts /wp-admin/edit.php3.36 ▲0.0043.36 ▼6.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.59 ▼8.07
Media Library /wp-admin/upload.php3.23 ▲0.0033.55 ▲0.62

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for MslsMenu
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.20 ▼1.451.57 ▼0.4438.47 ▼6.36
Dashboard /wp-admin2,209 ▲215.85 ▼0.12106.45 ▼10.2439.53 ▼5.57
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0636.27 ▲0.2832.52 ▼0.90
Add New Post /wp-admin/post-new.php1,514 ▼917.72 ▼5.18683.99 ▲29.2155.92 ▲4.49
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0099.63 ▼7.6642.82 ▼3.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • 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)
Even though no errors were found, this is by no means 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mslsmenu/languages/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

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: switcher, international, localization, multisite, i18n...

mslsmenu/MslsMenu.php 92% from 13 tests

The main PHP script in "MslsMenu" version 2.3.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mslsmenu.php" instead of "MslsMenu.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin359 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File7124265263
PHP2428596

PHP code Passed 2 tests

This is a short overview 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.22
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods111.11%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There were not PNG files found in your plugin