78% multiple-range-slider-for-gravity-form

Code Review | Multiple Range Slider For Gravity Form

WordPress plugin Multiple Range Slider For Gravity Form scored78%from 54 tests.

About plugin

  • Plugin page: multiple-range-sl...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 30, 2022
  • Latest release: Oct 2, 2023
  • Number of updates: 5
  • Update frequency: every 73.4 days
  • Top authors: silverplugins217 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /342 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Multiple Range Slider For Gravity Form
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.69 ▲1.86
Dashboard /wp-admin3.44 ▲0.1356.64 ▲3.01
Posts /wp-admin/edit.php3.55 ▲0.1955.18 ▲3.41
Add New Post /wp-admin/post-new.php6.02 ▲0.1387.77 ▼8.65
Media Library /wp-admin/upload.php3.36 ▲0.1344.94 ▲7.86

Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Just a few items left to fix
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/multiple-range-slider-for-gravity-form/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Multiple Range Slider For Gravity Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲19014.53 ▲0.1414.83 ▲13.0638.71 ▼8.30
Dashboard /wp-admin2,226 ▲235.83 ▲0.02100.32 ▼7.1743.18 ▲2.38
Posts /wp-admin/edit.php2,108 ▲52.00 ▲0.0039.96 ▲1.1838.08 ▼1.89
Add New Post /wp-admin/post-new.php1,548 ▲2223.23 ▲5.53645.81 ▼43.0764.64 ▼2.83
Media Library /wp-admin/upload.php1,408 ▲54.17 ▼0.08115.08 ▼4.3947.49 ▼1.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/multiple-range-slider-for-gravity-form/multiple-rangeslider-gf.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-range-slider-for-gravity-form/main/backend/single_rangeslider_backend.php:111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-range-slider-for-gravity-form/main/resources/multiple-rangeslider-installation-require.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-range-slider-for-gravity-form/main/resources/multiple-rangeslider-load-js-css.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-range-slider-for-gravity-form/main/resources/multiple-rangeslider-language.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-range-slider-for-gravity-form/main/backend/slider_label_backend.php:112
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-range-slider-for-gravity-form/main/backend/multiple_rangeslider_backend.php:111

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

multiple-range-slider-for-gravity-form/multiple-rangeslider-gf.php 92% from 13 tests

The entry point to "Multiple Range Slider For Gravity Form" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("multiple-range-slider-for-gravity-form.php" instead of "multiple-rangeslider-gf.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
Everything looks great! No dangerous files found in this plugin3,540 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
CSS4100841,884
JavaScript7340111992
PHP79257664

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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
There are no PNG files in this plugin