Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/stedb-forms/includes/class-stedb-account.php+44
Trying to get property 'user_id' of non-object
Server metrics [RAM: ▲0.33MB] [CPU: ▲0.28ms] 75% from 4 tests
Server-side resources used by STEdb Forms
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 10,034.74ms on /wp-admin/admin.php?page=ste-report-template)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 38.55 ▲2.23 |
Dashboard /wp-admin | 3.68 ▲0.38 | 50.08 ▲4.30 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 52.56 ▲3.35 |
Add New Post /wp-admin/post-new.php | 6.22 ▲0.34 | 84.53 ▼8.74 |
Media Library /wp-admin/upload.php | 3.54 ▲0.32 | 40.20 ▲5.99 |
Send Email /wp-admin/admin.php?page=ste-send-email-template | 3.50 | 10,037.15 |
Settings /wp-admin/admin.php?page=ste-setting | 3.50 | 10,035.91 |
Form Builder /wp-admin/admin.php?page=ste-form-builder | 3.50 | 10,037.47 |
Forms /wp-admin/admin.php?page=ste-from-data-template | 3.50 | 10,044.46 |
Report /wp-admin/admin.php?page=ste-report-template | 3.50 | 10,034.74 |
Server storage [IO: ▲15.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 191 new files
Database: 4 new tables, 7 new options
New tables |
---|
stedb_form_builder_data |
stedb_send_email_entries |
stedb_form_entries |
stedb_form_list |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
stedb_installed |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by STEdb Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲240 | 13.94 ▼0.43 | 5.22 ▲3.58 | 20.65 ▼21.41 |
Dashboard /wp-admin | 2,279 ▲87 | 5.30 ▲0.28 | 114.20 ▲3.20 | 46.87 ▲6.03 |
Posts /wp-admin/edit.php | 2,194 ▲105 | 2.67 ▲0.67 | 47.92 ▲10.65 | 37.70 ▲4.01 |
Add New Post /wp-admin/post-new.php | 1,578 ▲36 | 22.18 ▲3.92 | 628.32 ▲5.94 | 32.83 ▼30.30 |
Media Library /wp-admin/upload.php | 1,461 ▲76 | 4.62 ▲0.41 | 95.80 ▼8.78 | 41.06 ▼1.38 |
Send Email /wp-admin/admin.php?page=ste-send-email-template | 3,111 | 5.51 | 112.79 | 201.20 |
Settings /wp-admin/admin.php?page=ste-setting | 2,266 | 2.30 | 29.00 | 52.55 |
Form Builder /wp-admin/admin.php?page=ste-form-builder | 1,342 | 2.57 | 44.54 | 69.61 |
Forms /wp-admin/admin.php?page=ste-from-data-template | 1,048 | 2.18 | 28.79 | 28.58 |
Report /wp-admin/admin.php?page=ste-report-template | 938 | 2.30 | 27.88 | 33.52 |
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
Please fix the following items
- The uninstall procedure failed, leaving 4 tables in the database
- stedb_form_builder_data
- stedb_send_email_entries
- stedb_form_list
- stedb_form_entries
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- stedb_installed
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ste-report-template
- > Notice in wp-content/plugins/stedb-forms/includes/class-stedb-account.php+44
Trying to get property 'user_id' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ste-report-template
- > Notice in wp-content/plugins/stedb-forms/includes/class-stedb-account.php+45
Trying to get property 'secret' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ste-report-template
- > Notice in wp-content/plugins/stedb-forms/includes/class-stedb-account.php+46
Trying to get property 'base_url' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ste-report-template
- > Notice in wp-content/plugins/stedb-forms/admin/class-stedb-forms-wordpress-admin.php+823
Trying to get property 'err_code' of non-object
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ste-report-template
- > Notice in wp-content/plugins/stedb-forms/admin/class-stedb-forms-wordpress-admin.php+827
Trying to get property 'error' of non-object
- 241 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ste-setting
- > Notice in wp-content/plugins/stedb-forms/admin/template/ste-setting.php+575
Undefined variable: country
SRP 50% 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 items
- 74× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\Sniff' not found in wp-content/plugins/stedb-forms/wpcs/WordPress/Sniffs/WhiteSpace/ControlStructureSpacingSniff.php:31
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractClassRestrictionsSniff' not found in wp-content/plugins/stedb-forms/wpcs/WordPress/Sniffs/DB/RestrictedClassesSniff.php:29
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/stedb-forms/admin/template/ste-form-data.php:22
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionParameterSniff' not found in wp-content/plugins/stedb-forms/wpcs/WordPress/Sniffs/Utils/I18nTextDomainFixerSniff.php:28
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\Sniff' not found in wp-content/plugins/stedb-forms/wpcs/WordPress/Sniffs/Arrays/CommaAfterArrayItemSniff.php:32
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionParameterSniff' not found in wp-content/plugins/stedb-forms/wpcs/WordPress/Sniffs/NamingConventions/ValidHookNameSniff.php:30
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionRestrictionsSniff' not found in wp-content/plugins/stedb-forms/wpcs/WordPress/Sniffs/PHP/DontExtractSniff.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/stedb-forms/admin/template/ste-send-email.php:16
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionRestrictionsSniff' not found in wp-content/plugins/stedb-forms/wpcs/WordPress/AbstractClassRestrictionsSniff.php:21
- > PHP Fatal error
Uncaught Error: Class 'WordPressCS\\WordPress\\AbstractFunctionRestrictionsSniff' not found in wp-content/plugins/stedb-forms/wpcs/WordPress/Sniffs/WP/TimezoneChangeSniff.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=ste-send-email-template
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
stedb-forms/stedb-forms-wordpress.php 77% from 13 tests
The primary PHP file in "STEdb Forms" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("stedb-forms.php" instead of "stedb-forms-wordpress.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 179 characters long)
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Please make sure to remedy the following
- Do not distribute dangerous files with your plugin
- .cmd - Command Script in Windows
- ☣ wp-content/plugins/stedb-forms/node_modules/.bin/prettier.cmd
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/stedb-forms/node_modules/.bin/prettier.ps1
- .cmd - Command Script in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 23 | 24,750 | 13,929 | 105,255 |
CSS | 12 | 1,887 | 248 | 16,243 |
PHP | 86 | 2,865 | 7,338 | 12,902 |
SVG | 3 | 1 | 0 | 2,709 |
Markdown | 3 | 246 | 0 | 1,274 |
XML | 5 | 159 | 403 | 339 |
JSON | 3 | 0 | 0 | 117 |
DOS Batch | 1 | 2 | 0 | 15 |
PowerShell | 1 | 1 | 3 | 14 |
Bourne Shell | 1 | 2 | 0 | 13 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Please reduce cyclomatic complexity of methods to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 25.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 287.00 |
Average method complexity | 6.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 74 | |
▷ Abstract classes | 5 | 6.76% |
▷ Concrete classes | 69 | 93.24% |
▷ Final classes | 0 | 0.00% |
Methods | 305 | |
▷ Static methods | 10 | 3.28% |
▷ Public methods | 218 | 71.48% |
▷ Protected methods | 76 | 24.92% |
▷ Private methods | 11 | 3.61% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.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
24 PNG files occupy 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/gp.png | 3.27KB | 0.99KB | ▼ 69.68% |
admin/images/ln.png | 3.03KB | 0.57KB | ▼ 81.16% |
admin/images/vertical_gp.png | 2.73KB | 0.09KB | ▼ 96.85% |
admin/images/text-box.png | 2.17KB | 0.63KB | ▼ 70.80% |
admin/images/select-box.png | 3.57KB | 1.36KB | ▼ 61.83% |