78% gg-monarch-sidebar-minimized-on-mobile

Code Review | Monarch Sidebar Minimized on Mobile

WordPress plugin Monarch Sidebar Minimized on Mobile scored78%from 54 tests.

About plugin

  • Plugin page: gg-monarch-sideba...
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Oct 18, 2019
  • Latest release: May 8, 2022
  • Number of updates: 32
  • Update frequency: every 29.2 days
  • Top authors: tomasgroulik (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /6,953 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.22ms] Passed 4 tests

Server-side resources used by Monarch Sidebar Minimized on Mobile
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.51 ▲0.39
Dashboard /wp-admin3.39 ▲0.0944.50 ▼7.37
Posts /wp-admin/edit.php3.50 ▲0.1551.27 ▲6.92
Add New Post /wp-admin/post-new.php5.97 ▲0.0980.35 ▼16.87
Media Library /wp-admin/upload.php3.31 ▲0.0935.52 ▲2.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Monarch Sidebar Minimized on Mobile
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.144.73 ▲3.0946.53 ▲6.69
Dashboard /wp-admin2,206 ▲155.79 ▲0.8999.48 ▼5.1438.71 ▼4.64
Posts /wp-admin/edit.php2,092 ▼02.00 ▲0.0039.62 ▼1.1435.44 ▼8.86
Add New Post /wp-admin/post-new.php1,519 ▼2323.17 ▲4.96592.06 ▼20.6854.61 ▼7.89
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0294.31 ▼13.0243.38 ▼0.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • dp_msmom_basic_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/gg-monarch-sidebar-minimized-on-mobile/public/partials/gg-monarch-sidebar-minimized-on-mobile-public-display.php
    • > /wp-content/plugins/gg-monarch-sidebar-minimized-on-mobile/admin/partials/gg-monarch-sidebar-minimized-on-mobile-admin-display.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'MSMoMDP\\Std\\Html\\Attr' not found in wp-content/plugins/gg-monarch-sidebar-minimized-on-mobile/vendor/deeppresentation/php-std/build/Components/Dropdown.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gg-monarch-sidebar-minimized-on-mobile/admin/gg-monarch-sidebar-minimized-on-mobile-route.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'MSMoMDP\\Std\\Core\\GoogleGeo' not found in wp-content/plugins/gg-monarch-sidebar-minimized-on-mobile/vendor/deeppresentation/wordpress-std/build/GoogleGeo.php:6

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: monarch, sidebar, mobile, social, elegantthemes

gg-monarch-sidebar-minimized-on-mobile/gg-monarch-sidebar-minimized-on-mobile.php 92% from 13 tests

The entry point to "Monarch Sidebar Minimized on Mobile" version 1.2.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 209 characters long)

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
Everything looks great! No dangerous files found in this plugin5,928 lines of code in 70 files:
LanguageFilesBlank linesComment linesLines of code
PHP598611,4085,669
JSON300251
JavaScript601016
CSS24342

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity23.28
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity3.59
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes47
▷ Abstract classes00.00%
▷ Concrete classes47100.00%
▷ Final classes12.13%
Methods405
▷ Static methods17543.21%
▷ Public methods35387.16%
▷ Protected methods153.70%
▷ Private methods379.14%
Functions12
▷ Named functions758.33%
▷ Anonymous functions541.67%
Constants43
▷ Global constants43100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin