Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼1.20MB] [CPU: ▼41.53ms] Passed 4 tests
A check of server-side resources used by Form Block
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▼0.70 | 13.02 ▼33.23 |
Dashboard /wp-admin | 2.81 ▼0.49 | 23.12 ▼26.66 |
Posts /wp-admin/edit.php | 2.81 ▼0.55 | 16.03 ▼34.30 |
Add New Post /wp-admin/post-new.php | 2.81 ▼3.08 | 18.53 ▼71.94 |
Media Library /wp-admin/upload.php | 2.81 ▼0.42 | 15.74 ▼21.42 |
Server storage [IO: ▲0.24MB] [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: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Form Block
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲30 | 14.34 ▼0.01 | 1.74 ▼0.24 | 44.85 ▼1.88 |
Dashboard /wp-admin | 2,192 ▲18 | 5.55 ▲0.04 | 87.88 ▼13.20 | 43.09 ▼6.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.05 | 39.08 ▼0.42 | 34.13 ▼2.11 |
Add New Post /wp-admin/post-new.php | 15,090 ▲13,564 | 22.95 ▼0.11 | 1,063.29 ▲377.23 | 60.95 ▲11.53 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.06 | 102.33 ▲9.45 | 45.17 ▼2.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/form-block/inc/class-form-block.php+220
strpos(): Empty needle
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: block editor, contact, contact form, gutenberg, form
form-block/form-block.php Passed 13 tests
"Form Block" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
An extensive yet user-friendly form block.
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 detected2,963 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 430 | 877 | 1,568 |
JavaScript | 7 | 212 | 162 | 859 |
Markdown | 5 | 98 | 0 | 345 |
Sass | 2 | 15 | 0 | 98 |
CSS | 5 | 3 | 0 | 93 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 25.09 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 11 | 100.00% |
Methods | 75 | |
▷ Static methods | 14 | 18.67% |
▷ Public methods | 65 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 13.33% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.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