90% responsive-sidr-menu

Code Review | Sidr Responsive Menu

WordPress plugin Sidr Responsive Menu scored 90% from 54 tests.

About plugin

  • Plugin page: responsive-sidr-menu
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.1
  • WordPress version: 6.3.1
  • First release: May 8, 2020
  • Latest release: May 10, 2020
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: railmedia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.44ms] Passed 4 tests

Analyzing server-side resources used by Sidr Responsive Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.46 ▼1.46
Dashboard /wp-admin3.38 ▲0.0846.07 ▼0.91
Posts /wp-admin/edit.php3.50 ▲0.1444.77 ▼2.10
Add New Post /wp-admin/post-new.php5.96 ▲0.0886.49 ▼9.27
Media Library /wp-admin/upload.php3.31 ▲0.0836.15 ▲3.60
Responsive Sidr Menu /wp-admin/options-general.php?page=responsive-sidr-menu3.2732.06

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Sidr Responsive Menu
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲13913.59 ▼0.717.29 ▲5.4038.68 ▼10.66
Dashboard /wp-admin2,212 ▲275.84 ▲0.9499.54 ▼9.3737.05 ▼3.38
Posts /wp-admin/edit.php2,095 ▲62.06 ▲0.0533.67 ▼6.0134.30 ▲0.28
Add New Post /wp-admin/post-new.php1,519 ▲217.53 ▼0.03641.24 ▼22.2463.00 ▲12.35
Media Library /wp-admin/upload.php1,394 ▲94.20 ▲0.0296.65 ▼5.1742.44 ▼1.61
Responsive Sidr Menu /wp-admin/options-general.php?page=responsive-sidr-menu9382.0524.4129.38

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: mobile, device, menu, tablet, responsive

responsive-sidr-menu/responsive-sidr-menu.php Passed 13 tests

"Sidr Responsive Menu" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
112 characters long description:
Adds a responsive menu which can be toggled from inside the website theme. The menu is based on Sidr by Berriart

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,528 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript311331546
CSS7167521
PHP1210410461

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity6.22
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods31
▷ Static methods26.45%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG files were detected