Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.21ms] Passed 4 tests
This is a short check of server-side resources used by Gravity Forms HTML5 Placeholders
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.21 | 41.66 ▼6.47 |
Dashboard /wp-admin | 3.51 ▲0.21 | 45.93 ▼3.29 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 49.85 ▲2.47 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 86.92 ▲0.39 |
Media Library /wp-admin/upload.php | 3.44 ▲0.20 | 36.08 ▲0.52 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Gravity Forms HTML5 Placeholders
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.67 ▼0.76 | 1.77 ▼0.40 | 43.35 ▼0.00 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.20 | 105.30 ▼12.93 | 39.83 ▼8.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.06 | 38.88 ▼1.19 | 31.68 ▼3.43 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.54 ▲0.13 | 662.86 ▲10.53 | 59.08 ▲3.88 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.22 ▼0.00 | 96.49 ▼1.68 | 42.83 ▼0.69 |
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 detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gravityforms-html5-placeholders/templates/gf-message.tmpl.php
- 18× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'type' of non-object in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-message.tmpl.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-address-label-setting.tmpl.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-email-label-setting.tmpl.php:3
- > PHP Notice
Trying to get property 'text' of non-object in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-message.tmpl.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-address-placeholder-setting.tmpl.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravityforms-html5-placeholders/gravityforms-html5-placeholders.php:36
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-generic-placeholder-setting.tmpl.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-product-placeholder-setting.tmpl.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-time-placeholder-setting.tmpl.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gravityforms-html5-placeholders/templates/gf-name-label-setting.tmpl.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== gravityforms-html5-placeholders ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Editing a Simple Name Field), #2 (Editing an Extended Name Field), #3 (Editing an Email Field with confirmation), #4 (Editing an International Address Field)
gravityforms-html5-placeholders/gravityforms-html5-placeholders.php Passed 13 tests
"Gravity Forms HTML5 Placeholders" version 2.8.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
122 characters long description:
Adds native HTML5 placeholder support to Gravity Forms' fields with javascript fallback. Javascript & jQuery are required.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,279 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 187 | 186 | 1,566 |
JavaScript | 4 | 268 | 202 | 1,392 |
CSS | 4 | 47 | 1 | 321 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 328)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 1.03 |
Average class complexity | 387.00 |
▷ Minimum class complexity | 387.00 |
▷ Maximum class complexity | 387.00 |
Average method complexity | 17.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 328.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 62.50% |
▷ Protected methods | 5 | 20.83% |
▷ Private methods | 4 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.21MB with 0.13MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 54.07KB | 21.65KB | ▼ 59.96% |
screenshot-1.png | 49.02KB | 18.92KB | ▼ 61.40% |
screenshot-2.png | 57.26KB | 22.74KB | ▼ 60.28% |
screenshot-4.png | 52.57KB | 21.08KB | ▼ 59.90% |