Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.88MB] [CPU: ▼0.03ms] Passed 4 tests
Server-side resources used by SV Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.18 ▲1.72 | 47.38 ▲6.68 |
Dashboard /wp-admin | 5.26 ▲1.96 | 51.80 ▲4.84 |
Posts /wp-admin/edit.php | 5.31 ▲1.95 | 52.70 ▼1.17 |
Add New Post /wp-admin/post-new.php | 8.03 ▲2.14 | 94.55 ▼10.48 |
Media Library /wp-admin/upload.php | 5.11 ▲1.89 | 44.28 ▲9.66 |
Info /wp-admin/admin.php?page=straightvisions | 5.19 | 48.82 |
SV Forms /wp-admin/admin.php?page=sv_forms | 5.15 | 43.62 |
Server storage [IO: ▲1.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 477 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
sv_forms_scripts_settings_sv_core_color_picker_attached |
sv_forms_index |
sv_forms_scripts_settings_flush_css_cache |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for SV Forms
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲236 | 13.54 ▼1.05 | 1.94 ▼0.06 | 41.58 ▼6.59 |
Dashboard /wp-admin | 2,353 ▲162 | 5.86 ▼0.16 | 104.40 ▲3.71 | 74.46 ▲31.24 |
Posts /wp-admin/edit.php | 2,230 ▲141 | 2.00 ▼0.04 | 33.82 ▼5.49 | 31.61 ▼9.40 |
Add New Post /wp-admin/post-new.php | 6,558 ▲5,016 | 23.40 ▲5.13 | 1,016.27 ▲417.13 | 39.99 ▼39.25 |
Media Library /wp-admin/upload.php | 1,529 ▲141 | 4.23 ▼0.02 | 98.50 ▼5.70 | 75.41 ▲33.31 |
Info /wp-admin/admin.php?page=straightvisions | 1,587 | 10.65 | 206.67 | 151.80 |
SV Forms /wp-admin/admin.php?page=sv_forms | 1,480 | 10.52 | 76.75 | 135.62 |
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
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- sv_forms_scripts_settings_sv_core_color_picker_attached
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- sv_forms_scripts_settings_flush_css_cache
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_checkbox_field.php
- > /wp-content/plugins/sv-forms/src/lib/modules/sv_forms/lib/frontend/tpl/thank_you.php
- > /wp-content/plugins/sv-forms/src/lib/modules/mail/tpl/mail_footer.php
- 289× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_select_page.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_textarea.php on line 10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_box_shadow_tpl/blur_radius.php on line 1
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_number.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_font_tpl/font_weight.php:2
- > PHP Fatal error
Uncaught Error: Class 'sv_core\\settings' not found in wp-content/plugins/sv-forms/src/core_plugin/core/settings/modules/setting_url/setting_url.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_font_tpl/color.php on line 3
- > PHP Notice
Undefined variable: props in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_margin_field.php on line 19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_javascript.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/sv-forms/src/core_plugin/core/settings/tpl/setting_date.php:8
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in sv-forms/assets to your readme.txt
sv-forms/sv_forms.php 85% from 13 tests
The main PHP file in "SV Forms" ver. 2.0.02 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("sv-forms.php" instead of "sv_forms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin24,216 lines of code in 357 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 139 | 1,337 | 644 | 8,662 |
PHP | 140 | 1,741 | 1,685 | 8,598 |
CSS | 49 | 367 | 118 | 3,406 |
PO File | 2 | 535 | 1,165 | 1,006 |
Sass | 15 | 131 | 24 | 832 |
JSON | 3 | 0 | 0 | 800 |
SVG | 2 | 0 | 0 | 585 |
JSX | 5 | 61 | 25 | 325 |
Markdown | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 16.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 67 | |
▷ Abstract classes | 1 | 1.49% |
▷ Concrete classes | 66 | 98.51% |
▷ Final classes | 0 | 0.00% |
Methods | 649 | |
▷ Static methods | 8 | 1.23% |
▷ Public methods | 482 | 74.27% |
▷ Protected methods | 85 | 13.10% |
▷ Private methods | 82 | 12.63% |
Functions | 23 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 23 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin