73% lr-responsive-slide-menu

Code Review | LR Responsive Slide Menu

WordPress plugin LR Responsive Slide Menu scored73%from 54 tests.

About plugin

  • Plugin page: lr-responsive-sli...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2018
  • Latest release: Mar 1, 2018
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: Hemant Ahir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /605 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.93MB] [CPU: ▼45.68ms] Passed 4 tests

An overview of server-side resources used by LR Responsive Slide Menu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.50 ▼0.02
Dashboard /wp-admin3.02 ▼0.3325.28 ▼54.00
Posts /wp-admin/edit.php3.02 ▼0.3424.87 ▼38.35
Add New Post /wp-admin/post-new.php3.02 ▼2.8722.65 ▼82.20
Media Library /wp-admin/upload.php3.02 ▼0.2123.83 ▼8.15

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for LR Responsive Slide Menu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12413.30 ▼1.112.28 ▲0.3045.55 ▲5.57
Dashboard /wp-admin2,244 ▲565.03 ▲0.02102.63 ▼21.4039.01 ▼6.07
Posts /wp-admin/edit.php2,129 ▲372.45 ▲0.4442.09 ▼0.1035.22 ▼2.20
Add New Post /wp-admin/post-new.php1,541 ▼117.77 ▼0.65671.13 ▲33.7937.76 ▼15.23
Media Library /wp-admin/upload.php1,426 ▲384.47 ▲0.2797.91 ▼5.1045.08 ▲0.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/lr-responsive-slide-menu/responsiveslidemenu.php+56
    Use of undefined constant responsiveslidemenu_settings - assumed 'responsiveslidemenu_settings' (this will throw an Error in a future version of PHP)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/lr-responsive-slide-menu/responsiveslidemenu.php:10

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Stable tag: No string
  • Donate link: Please fix this invalid url: ""
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (front side menu), #2 (Example settings page)
You can look at the official readme.txt

lr-responsive-slide-menu/responsiveslidemenu.php 92% from 13 tests

Analyzing the main PHP file in "LR Responsive Slide Menu" version 1.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("lr-responsive-slide-menu.php" instead of "responsiveslidemenu.php")

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
Success! There were no dangerous files found in this plugin507 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript26664244
PHP11937178
CSS20085

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.02
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.45MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/menusettings.png44.27KB25.74KB▼ 41.86%
front-menu.png9.71KB4.61KB▼ 52.54%
assets/icon-256-256.png17.85KB7.08KB▼ 60.32%
menusettings.png44.27KB25.74KB▼ 41.86%
screenshot-2.png44.27KB25.74KB▼ 41.86%