Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.40ms] Passed 4 tests
Server-side resources used by Form Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 49.17 ▲2.16 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.27 ▼1.64 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 40.31 ▼4.49 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 91.91 ▼0.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.92 ▼11.14 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Form Blocks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲101 | 14.47 ▲0.07 | 2.16 ▲0.27 | 56.83 ▲10.23 |
Dashboard /wp-admin | 2,206 ▲18 | 4.92 ▲0.03 | 115.48 ▼1.49 | 45.95 ▼3.03 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.02 | 41.48 ▲1.56 | 40.29 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,529 ▲133 | 17.48 ▼0.45 | 623.01 ▼85.35 | 59.15 ▼3.38 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▲0.04 | 95.31 ▼38.18 | 41.19 ▼19.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/form-blocks/resources/views/contact-form.html.php
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 37
- > PHP Notice
Undefined variable: atts in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 18
- > PHP Notice
Undefined variable: email_label in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 36
- > PHP Notice
Undefined variable: atts in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 47
- > PHP Notice
Undefined variable: atts in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 27
- > PHP Notice
Undefined variable: atts in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 21
- > PHP Notice
Undefined variable: name_label in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 26
- > PHP Notice
Undefined variable: form_blocks_success in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/form-blocks/resources/views/contact-form.html.php on line 13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Screenshots: Screenshot #1 (The default contact form.) image required
form-blocks/form-blocks.php Passed 13 tests
Analyzing the main PHP file in "Form Blocks" version 0.1.0
54 characters long description:
Adds a new contact form block to the Gutenberg editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected559 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 43 | 51 | 273 |
PHP | 3 | 31 | 25 | 185 |
CSS | 2 | 4 | 3 | 50 |
JSON | 1 | 0 | 0 | 27 |
Markdown | 2 | 6 | 0 | 24 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected