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.00MB] [CPU: ▼8.23ms] Passed 4 tests
A check of server-side resources used by Quantity Field for Gravity Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.20 ▼7.50 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.88 ▼2.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.01 ▼12.54 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.82 ▼10.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 53.19 ▲22.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Quantity Field for Gravity Form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.36 ▼0.94 | 1.83 ▼0.03 | 40.26 ▼8.22 |
Dashboard /wp-admin | 2,209 ▲24 | 5.86 ▲0.98 | 114.88 ▼0.71 | 43.39 ▼0.36 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▼0.05 | 39.16 ▲1.97 | 36.52 ▲3.61 |
Add New Post /wp-admin/post-new.php | 1,397 ▼117 | 17.94 ▼5.52 | 695.62 ▲99.61 | 58.36 ▲1.18 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.21 ▲0.03 | 136.05 ▲37.87 | 75.82 ▲29.04 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- 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
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
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GFForms' not found in wp-content/plugins/quantity-field-for-gravity-form/class-qfg_fieldaddon.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/quantity-field-for-gravity-form/qfg_fieldaddon.php:16
- > 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 issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Screenshots: Please describe screenshot #2 in quantity-field-for-gravity-form/assets to your readme.txt
- Screenshots: Screenshot #3 () image not found
quantity-field-for-gravity-form/qfg_fieldaddon.php 77% from 13 tests
The entry point to "Quantity Field for Gravity Form" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("quantity-field-for-gravity-form.php" instead of "qfg_fieldaddon.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
Good job! No executable or dangerous file extensions detected217 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 46 | 97 | 165 |
CSS | 1 | 6 | 2 | 37 |
JavaScript | 1 | 4 | 6 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin