Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.32ms] Passed 4 tests
A check of server-side resources used by Gravity Forms: Multiple Form Instances
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.64 ▼3.08 |
Dashboard /wp-admin | 3.33 ▲0.02 | 52.30 ▲0.28 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.61 ▼0.92 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.26 ▼5.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.14 ▲4.04 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms: Multiple Form Instances
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.12 | 1.90 ▲0.13 | 44.16 ▼0.39 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.05 | 85.41 ▼9.79 | 38.88 ▼9.51 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.02 | 42.15 ▲3.61 | 39.67 ▲4.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼6 | 17.52 ▼5.60 | 671.67 ▼50.28 | 59.34 ▼7.03 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▲0.03 | 101.05 ▼3.04 | 45.93 ▼1.81 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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/gravity-forms-multiple-form-instances/tests/bootstrap.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/gravity-forms-multiple-form-instances/tests/unit-tests/GFMFI_GformGetFormFilterTest.php:3
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/gravity-forms-multiple-form-instances/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/gravity-forms-multiple-form-instances/tests/bootstrap.php on line 48
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/gravity-forms-multiple-form-instances/tests/unit-tests/GFMFI_ConstructTest.php:3
- > PHP Warning
require_once(wp-content/plugins/gravity-forms-multiple-form-instances/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/gravity-forms-multiple-form-instances/tests/bootstrap.php on line 48
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/gravity-forms-multiple-form-instances/tests/unit-tests/GFMFI_GlobalVar.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravity-forms-multiple-form-instances/gravityforms-multiple-form-instances.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: gravity, multiple, gravity forms, form
gravity-forms-multiple-form-instances/gravityforms-multiple-form-instances.php 92% from 13 tests
The primary PHP file in "Gravity Forms: Multiple Form Instances" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gravity-forms-multiple-form-instances.php" instead of "gravityforms-multiple-form-instances.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
No dangerous file extensions were detected568 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 135 | 215 | 412 |
Bourne Shell | 1 | 19 | 19 | 60 |
YAML | 2 | 9 | 0 | 47 |
Markdown | 2 | 33 | 0 | 35 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 1 | 1.75% |
▷ Public methods | 56 | 98.25% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.75% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin