Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼302.15ms] Passed 4 tests
Analyzing server-side resources used by Range Slider For Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 70.54 ▼9.60 |
Dashboard /wp-admin | 3.41 ▲0.00 | 41.79 ▼0.71 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 43.90 ▼7.61 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 122.56 ▼1,187.38 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 42.62 ▼4.01 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Range Slider For Contact Form 7
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,828 ▲86 | 15.63 ▼0.29 | 8.83 ▲0.99 | 3.94 ▲0.95 |
Dashboard /wp-admin | 2,926 ▲40 | 6.42 ▲0.00 | 188.96 ▼20.10 | 200.13 ▼2.98 |
Posts /wp-admin/edit.php | 2,691 ▲34 | 3.42 ▼0.00 | 102.56 ▲17.69 | 177.24 ▼7.16 |
Add New Post /wp-admin/post-new.php | 1,635 ▼5 | 17.15 ▼3.33 | 652.23 ▲21.50 | 195.11 ▼39.57 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.75 ▲0.01 | 190.10 ▲2.26 | 240.91 ▼9.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/range-slider-for-contact-form-7/cf7-for-rangeslider.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
- Screenshots: These screenshots need descriptions #1, #2, #3 in range-slider-for-contact-form-7/assets to your readme.txt
range-slider-for-contact-form-7/cf7-for-rangeslider.php 85% from 13 tests
This is the main PHP file of "Range Slider For Contact Form 7" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("range-slider-for-contact-form-7.php" instead of "cf7-for-rangeslider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin14,302 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 2,425 | 1,257 | 12,287 |
CSS | 5 | 144 | 91 | 1,649 |
PHP | 2 | 48 | 17 | 366 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/star.png | 39.75KB | 10.35KB | ▼ 73.95% |