84% range-slider-contact-form-7-plus

Code Review | Range Slider contact Form 7

WordPress plugin Range Slider contact Form 7 scored84%from 54 tests.

About plugin

  • Plugin page: range-slider-cont...
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 6, 2022
  • Latest release: Jun 26, 2022
  • Number of updates: 7
  • Update frequency: every 11.7 days
  • Top authors: easytechy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,862 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.00MB] [CPU: ▼16.64ms] Passed 4 tests

Analyzing server-side resources used by Range Slider contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.88 ▼3.31
Dashboard /wp-admin3.31 ▲0.0050.54 ▼2.54
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▼4.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.90 ▼56.23
Media Library /wp-admin/upload.php3.23 ▲0.0038.69 ▲1.32

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Range Slider contact Form 7
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.39 ▼0.351.97 ▲0.0841.77 ▼2.95
Dashboard /wp-admin2,198 ▲215.64 ▲0.1086.06 ▼39.3138.52 ▼14.80
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0134.47 ▼1.5933.41 ▲0.69
Add New Post /wp-admin/post-new.php1,526 ▼023.03 ▼0.13685.76 ▲15.6355.19 ▲8.92
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.04112.17 ▼7.2647.02 ▼0.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/range-slider-contact-form-7-plus/rangeslider-contact-form-7.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: contact form range slider, contact form 7, range slider, range slider for contact form 7

range-slider-contact-form-7-plus/rangeslider-contact-form-7.php 92% from 13 tests

Analyzing the main PHP file in "Range Slider contact Form 7" version 1.0
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("range-slider-contact-form-7-plus.php" instead of "rangeslider-contact-form-7.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
No dangerous file extensions were detected1,506 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS234491,165
PHP210116258
JavaScript2521183

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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