Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▲0.16ms] Passed 4 tests
An overview of server-side resources used by Smart Forms - when you need more than just a contact form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 40.05 ▲1.24 |
Dashboard /wp-admin | 3.58 ▲0.27 | 46.72 ▼4.12 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 50.70 ▲2.27 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 93.72 ▲4.90 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 35.36 ▲1.26 |
Settings /wp-admin/admin.php?page=smart-forms/smartforms.phpsettings | 3.47 | 33.37 |
Smart Forms /wp-admin/admin.php?page=smart_forms_menu | 3.52 | 34.93 |
SmartFormsPreview /wp-admin/edit.php?post_type=smartforms_preview | 3.54 | 36.99 |
Entries /wp-admin/admin.php?page=smart-forms/smartforms.phpentries | 3.55 | 34.04 |
Add New /wp-admin/post-new.php?post_type=smartforms_preview | 3.62 | 45.56 |
Support/Wish List /wp-admin/admin.php?page=smart-forms/smartforms.phpwish_list | 3.47 | 35.00 |
Server storage [IO: ▲23.47MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 947 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_rednao_smart_forms_entry |
wp_rednao_smart_forms_entry_detail |
wp_rednao_smart_forms_table_name |
wp_rednao_smart_forms_uploaded_files |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_rednao_smart_forms_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Smart Forms - when you need more than just a contact form
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.32 ▼1.06 | 4.56 ▲2.73 | 45.55 ▼0.78 |
Dashboard /wp-admin | 2,243 ▲55 | 5.78 ▲0.94 | 96.93 ▼16.98 | 72.68 ▲27.95 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.01 ▼0.00 | 37.34 ▲0.17 | 32.84 ▲0.99 |
Add New Post /wp-admin/post-new.php | 6,223 ▲4,695 | 19.95 ▼3.08 | 1,134.41 ▲443.93 | 43.91 ▼13.54 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.15 ▼0.06 | 130.76 ▲35.00 | 51.11 ▲5.86 |
Settings /wp-admin/admin.php?page=smart-forms/smartforms.phpsettings | 980 | 3.12 | 47.32 | 36.59 |
Smart Forms /wp-admin/admin.php?page=smart_forms_menu | 1,019 | 3.12 | 45.21 | 31.56 |
SmartFormsPreview /wp-admin/edit.php?post_type=smartforms_preview | 1,092 | 1.98 | 31.59 | 29.41 |
Entries /wp-admin/admin.php?page=smart-forms/smartforms.phpentries | 1,409 | 9.31 | 167.05 | 37.39 |
Add New /wp-admin/post-new.php?post_type=smartforms_preview | 2,342 | 8.36 | 178.33 | 142.35 |
Support/Wish List /wp-admin/admin.php?page=smart-forms/smartforms.phpwish_list | 805 | 2.02 | 23.94 | 29.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 4 tables in the database
- wp_rednao_smart_forms_entry_detail
- wp_rednao_smart_forms_entry
- wp_rednao_smart_forms_table_name
- wp_rednao_smart_forms_uploaded_files
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_rednao_smart_forms_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 8× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/smart-forms/pr/smart-forms-pr-config.php
- > /wp-content/plugins/smart-forms/smartforms.php
- > /wp-content/plugins/smart-forms/pr/smart-forms-pr.php
- > /wp-content/plugins/smart-forms/utilities/smart-forms-detail-generator.php
- > /wp-content/plugins/smart-forms/main_screens/smart-forms-add-new.php
- > /wp-content/plugins/smart-forms/main_screens/smart-forms-entries2.php
- > /wp-content/plugins/smart-forms/main_screens/smart-forms-settings.php
- > /wp-content/plugins/smart-forms/smart-forms-config.php
- 130× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/smart-forms/main_screens/smart-forms-wishlist.php:10
- > PHP Fatal error
Uncaught Error: Class 'rednao_base_elements_renderer' not found in wp-content/plugins/smart-forms/string_renderer/rednao_checkbox_renderer.php:9
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/smart-forms/php_classes/smarty/sysplugins/smarty_internal_compile_private_modifier.php:18
- > PHP Warning
Use of undefined constant SMART_FORMS_DIR - assumed 'SMART_FORMS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/smart-forms/php_classes/api/query/comparators/DateComparator.php on line 3
- > PHP Warning
Use of undefined constant SMART_FORMS_DIR - assumed 'SMART_FORMS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/smart-forms/main_screens/smart-forms-list.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Internal_CompileBase' not found in wp-content/plugins/smart-forms/php_classes/smarty/sysplugins/smarty_internal_compile_ldelim.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-forms/additional_fields/smart-forms-additional-fields-list.php:2
- > PHP Fatal error
Uncaught Error: Class 'rednao_base_elements_renderer' not found in wp-content/plugins/smart-forms/string_renderer/rednao_number_renderer.php:9
- > PHP Fatal error
Uncaught Error: Class 'Smarty_Resource' not found in wp-content/plugins/smart-forms/php_classes/smarty/sysplugins/smarty_resource_recompiled.php:17
- > PHP Warning
Use of undefined constant SMART_FORMS_DIR - assumed 'SMART_FORMS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/smart-forms/php_classes/api/query/WhereClause.php on line 8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=smart-forms/smartforms.phpentries
- > Console-api (severe) in wp-content/plugins/smart-forms/js/utilities/react/react.js?ver=6.3.1+275:33
Warning: Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component." "forceUpdate" "Table
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #10, #11, #12 in smart-forms/assets to your readme.txt
smart-forms/smartforms.php 77% from 13 tests
The main PHP file in "Smart Forms - when you need more than just a contact form" ver. 2.6.84 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("smart-forms.php" instead of "smartforms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected234,488 lines of code in 693 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 256 | 32,494 | 35,289 | 182,504 |
PHP | 191 | 3,326 | 9,873 | 22,325 |
CSS | 90 | 990 | 546 | 16,396 |
TypeScript | 120 | 2,434 | 6,220 | 11,090 |
SVG | 5 | 0 | 0 | 1,062 |
Markdown | 4 | 145 | 0 | 423 |
JSON | 20 | 1 | 0 | 289 |
HTML | 4 | 31 | 0 | 224 |
Smarty | 1 | 21 | 0 | 116 |
Bourne Shell | 1 | 24 | 0 | 55 |
LESS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 17.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 163 | |
▷ Abstract classes | 16 | 9.82% |
▷ Concrete classes | 147 | 90.18% |
▷ Final classes | 0 | 0.00% |
Methods | 947 | |
▷ Static methods | 42 | 4.44% |
▷ Public methods | 870 | 91.87% |
▷ Protected methods | 38 | 4.01% |
▷ Private methods | 39 | 4.12% |
Functions | 159 | |
▷ Named functions | 159 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 201 | |
▷ Global constants | 26 | 12.94% |
▷ Class constants | 175 | 87.06% |
▷ Public constants | 175 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
120 PNG files occupy 0.50MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/smartFormsSlider/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
js/utilities/iCheck/skins/square/purple.png | 2.14KB | 1.83KB | ▼ 14.31% |
js/utilities/jsColor/hv.png | 2.80KB | 7.32KB | 0.00% |
css/smartFormsSlider/images/ui-icons_ffd27a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/arrow_down.png | 3.40KB | 0.48KB | ▼ 85.77% |