10% simple-range-slider-for-gravityforms

Code Review | Simple Range Slider for Gravityforms

WordPress plugin Simple Range Slider for Gravityforms scored 10% from 54 tests.

About plugin

  • Plugin page: simple-range-slid...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Jan 23, 2017
  • Latest release: Jan 24, 2017
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: maxman1850 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 1,552 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin cannot be installed
    • > Error in wp-content/plugins/simple-range-slider-for-gravityforms/simple-range-slider.php+57
    Uncaught Error: Class 'GF_Field' not found in wp-content/plugins/simple-range-slider-for-gravityforms/simple-range-slider.php:57
    Stack trace:
    #0 wp-admin/includes/plugin.php(2318): include_once()
    #1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.59ms] Passed 4 tests

Analyzing server-side resources used by Simple Range Slider for Gravityforms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.51 ▼5.60
Dashboard /wp-admin3.31 ▲0.0045.41 ▼2.68
Posts /wp-admin/edit.php3.36 ▲0.0048.74 ▲1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.21 ▼14.92
Media Library /wp-admin/upload.php3.23 ▲0.0032.13 ▼3.14

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Simple Range Slider for Gravityforms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.091.74 ▼0.0042.31 ▼2.91
Dashboard /wp-admin2,206 ▲175.81 ▲0.74102.17 ▼18.6939.80 ▼4.47
Posts /wp-admin/edit.php2,089 ▲212.03 ▼0.0239.64 ▲4.0735.40 ▲3.34
Add New Post /wp-admin/post-new.php1,514 ▼2217.70 ▼5.52642.82 ▼28.6462.07 ▼9.65
Media Library /wp-admin/upload.php1,385 ▲64.28 ▲0.1099.56 ▲2.1042.53 ▲1.07

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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 50% from 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-range-slider-for-gravityforms/simple-range-slider.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
6 plugin tags: slider, forms, gravity, gravityforms, range...

simple-range-slider-for-gravityforms/simple-range-slider.php 92% from 13 tests

"Simple Range Slider for Gravityforms" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-range-slider-for-gravityforms.php" instead of "simple-range-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin94 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1301494

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.29
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin