Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.83ms] Passed 4 tests
Analyzing server-side resources used by SafetyForms – Create forms with Real-time Email Validation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 42.52 ▼4.33 |
Dashboard /wp-admin | 3.47 ▲0.16 | 49.54 ▲1.27 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.90 ▼2.61 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.17 | 88.95 ▼13.64 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 42.51 ▲9.08 |
All Forms /wp-admin/admin.php?page=safetymail-form | 3.36 | 39.26 |
Edit Form /wp-admin/admin.php?page=safetymail-form-edit | 3.33 | 32.45 |
New Form /wp-admin/admin.php?page=safetymail-form-new | 3.39 | 34.11 |
Settings /wp-admin/admin.php?page=safetymail-form-config | 3.36 | 34.89 |
Server storage [IO: ▲1.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_safety_forms_config |
wp_safety_forms |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for SafetyForms – Create forms with Real-time Email Validation
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,020 ▲259 | 16.13 ▲2.02 | 49.12 ▲46.92 | 25.76 ▼22.94 |
Dashboard /wp-admin | 2,291 ▲117 | 6.58 ▲1.05 | 106.56 ▲18.75 | 53.31 ▲13.21 |
Posts /wp-admin/edit.php | 2,182 ▲82 | 3.58 ▲1.58 | 49.19 ▲9.72 | 47.20 ▲6.01 |
Add New Post /wp-admin/post-new.php | 6,440 ▲4,903 | 25.30 ▲6.96 | 951.49 ▲308.77 | 59.16 ▼11.22 |
Media Library /wp-admin/upload.php | 1,493 ▲96 | 6.15 ▲1.98 | 121.57 ▲18.85 | 58.05 ▲13.56 |
All Forms /wp-admin/admin.php?page=safetymail-form | 1,036 | 3.25 | 47.28 | 35.73 |
Edit Form /wp-admin/admin.php?page=safetymail-form-edit | 1,218 | 3.99 | 47.22 | 50.93 |
New Form /wp-admin/admin.php?page=safetymail-form-new | 1,216 | 3.78 | 47.03 | 37.68 |
Settings /wp-admin/admin.php?page=safetymail-form-config | 979 | 3.32 | 41.85 | 35.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_safety_forms_config
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+174
Undefined index: id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+28
Undefined index: name
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+67
Undefined index: invalid_callback
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+89
Undefined index: action
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+94
Undefined index: action_content
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+104
Undefined index: show_status
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+144
Undefined index: html
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+116
Undefined index: protected
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+124
Undefined index: subject
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+129
Undefined index: email_recipient
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+134
Undefined index: email_replyto
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+157
Undefined index: api_key
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+162
Undefined index: api_ticket
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php+173
Undefined index: element
- > GET request to /wp-admin/admin.php?page=safetymail-form-config
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-config.php+30
Undefined index: host
- > GET request to /wp-admin/admin.php?page=safetymail-form-config
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-config.php+48
Undefined index: sender_name
- > GET request to /wp-admin/admin.php?page=safetymail-form-config
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-config.php+53
Undefined index: email_sender
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=safetymail-form-config
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-config.php+76
Undefined index: require_auth
- > GET request to /wp-admin/admin.php?page=safetymail-form-config
- > Notice in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-config.php+73
Undefined index: user
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/safetymails-forms/public/partials/safetymail-form-public-display.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-config.php on line 30
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/safetymails-forms/includes/class-safetymail-form-activator.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/safetymails-forms/includes/class-safetymail-form-list.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/safetymails-forms/includes/class-safetymail-form-activator.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-edit.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-new.php:17
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/safetymails-forms/includes/class-safetymail-form-deactivator.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-config.php:47
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/safetymails-forms/admin/partials/safetymail-form-admin-display.php:17
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/safetymails-forms/includes/class-safetymail-form-list.php on line 4
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=safetymail-form-edit
- > Javascript (severe) in unknown
/wp-admin/admin.php?page=safetymail-form-edit 291:13 Uncaught SyntaxError: Unexpected end of input
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: builder, email, form
safetymails-forms/safetymail-form.php 77% from 13 tests
This is the main PHP file of "SafetyForms – Create forms with Real-time Email Validation" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("safetymails-forms.php" instead of "safetymail-form.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,757 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 260 | 672 | 1,070 |
JavaScript | 7 | 36 | 66 | 485 |
PO File | 1 | 51 | 51 | 119 |
CSS | 4 | 15 | 20 | 50 |
HTML | 1 | 7 | 0 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 6 | 11.11% |
▷ Public methods | 49 | 90.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.26% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/logo.png | 115.87KB | 37.82KB | ▼ 67.36% |