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.13MB] [CPU: ▼0.46ms] Passed 4 tests
An overview of server-side resources used by Gravity Forms HTML5 Validation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.83 ▼0.39 |
Dashboard /wp-admin | 3.44 ▲0.13 | 48.70 ▼1.13 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.63 ▼0.38 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 98.20 ▲1.05 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.27 ▲0.06 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms HTML5 Validation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.20 ▼1.09 | 1.69 ▼0.29 | 42.74 ▼1.98 |
Dashboard /wp-admin | 2,209 ▲18 | 4.88 ▼0.04 | 100.78 ▼6.80 | 39.05 ▲3.15 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 1.99 ▼0.03 | 36.38 ▼4.39 | 34.22 ▼3.26 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.81 ▼4.28 | 644.62 ▲20.94 | 48.28 ▼7.83 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▲0.01 | 99.06 ▲0.44 | 41.23 ▼2.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function DevWorks\\add_action() in wp-content/plugins/gravityforms-html5-validation/gravityforms-html5-validation.php:90
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== gravityforms-html5-validation ===
)
gravityforms-html5-validation/gravityforms-html5-validation.php 92% from 13 tests
The main PHP script in "Gravity Forms HTML5 Validation" version 2.4.2 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin782 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 196 | 265 | 519 |
JavaScript | 2 | 54 | 17 | 164 |
PO File | 1 | 10 | 10 | 55 |
JSON | 1 | 0 | 0 | 21 |
XML | 1 | 0 | 0 | 15 |
YAML | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 132)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.93 |
Average class complexity | 181.00 |
▷ Minimum class complexity | 181.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 9.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 132.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 60.87% |
▷ Protected methods | 9 | 39.13% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin