Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼304.56ms] Passed 4 tests
Server-side resources used by gravity-forms-remove-required-and-add-optional-string-to-increase-form-submits
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 56.57 ▲1.07 |
Dashboard /wp-admin | 3.43 ▲0.02 | 36.12 ▼2.59 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 76.16 ▲32.64 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 98.43 ▼1,210.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 27.38 ▼5.78 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for gravity-forms-remove-required-and-add-optional-string-to-increase-form-submits
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,749 ▼6 | 15.36 ▼0.43 | 6.35 ▼0.06 | 2.43 ▼1.07 |
Dashboard /wp-admin | 2,881 ▲23 | 6.12 ▼0.03 | 120.65 ▼13.74 | 155.10 ▼7.72 |
Posts /wp-admin/edit.php | 2,685 ▼6 | 3.24 ▼0.00 | 67.05 ▲0.49 | 146.72 ▲4.59 |
Add New Post /wp-admin/post-new.php | 1,698 ▼19 | 22.55 ▲1.49 | 427.70 ▼7.85 | 161.47 ▼21.81 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▼0.02 | 135.14 ▼5.22 | 186.38 ▼46.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
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
Even though no errors were found, 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gravity-forms-remove-required-and-add-optional-string-to-increase-form-submits/gfreq.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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 need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== gravity-forms-remove-required-and-add-optional-string-to-increase-form-submits ===
)
gravity-forms-remove-required-and-add-optional-string-to-increase-form-submits/gfreq.php 85% from 13 tests
The main file in "gravity-forms-remove-required-and-add-optional-string-to-increase-form-submits" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("gravity-forms-remove-required-and-add-optional-string-to-increase-form-submits.php" instead of "gfreq.php")
- Plugin Name: Keep the plugin name shorter than 70 characters (currently 79 characters long)
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
There were no executable files found in this plugin452 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 93 | 178 | 335 |
CSS | 1 | 21 | 3 | 110 |
JavaScript | 1 | 5 | 0 | 6 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 93.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.45% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected