Benchmarks
Plugin footprint 48% 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: ▼1.91MB] [CPU: ▼48.14ms] Passed 4 tests
An overview of server-side resources used by iSMS Contact Form with 2 Factor Authenticator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 6.51 ▼35.29 |
Dashboard /wp-admin | 2.10 ▼1.21 | 7.00 ▼37.36 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.31 ▼38.80 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.67 ▼81.10 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 8.36 ▼24.11 |
Add new /wp-admin/admin.php?page=isms-authform-new | 2.10 | 7.63 |
Forms /wp-admin/admin.php?page=isms-authform-list | 2.10 | 7.79 |
Sent Mail /wp-admin/admin.php?page=isms-authform-sent | 2.10 | 7.66 |
/wp-admin/admin.php?page=isms-authform-update | 2.10 | 6.22 |
iSMS Contact with Authenticator /wp-admin/admin.php?page=isms-authform-setting | 2.10 | 7.53 |
Server storage [IO: ▲1.21MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: 6 new tables, 6 new options
New tables |
---|
wp_isms_authform_form_form_meta |
wp_isms_authform_form |
wp_isms_authform_otp |
wp_isms_authform_form_sent |
wp_isms_authform_form_fields |
wp_isms_authform_form_message |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
iSMS Contact Form with 2 Factor Authenticator: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲200 | 13.83 ▼0.91 | 9.90 ▲8.30 | 33.66 ▼12.16 |
Dashboard /wp-admin | 2,246 ▲43 | 5.79 ▼0.01 | 98.27 ▲2.25 | 44.03 ▲6.31 |
Posts /wp-admin/edit.php | 2,138 ▲46 | 1.98 ▼0.02 | 37.24 ▲0.97 | 38.82 ▲9.10 |
Add New Post /wp-admin/post-new.php | 1,399 ▼135 | 20.39 ▼2.82 | 566.90 ▼63.51 | 35.92 ▼25.61 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.17 ▼0.05 | 96.26 ▼7.56 | 50.00 ▲5.08 |
Add new /wp-admin/admin.php?page=isms-authform-new | 1,391 | 1.93 | 32.40 | 75.74 |
Forms /wp-admin/admin.php?page=isms-authform-list | 1,000 | 1.95 | 29.34 | 43.46 |
Sent Mail /wp-admin/admin.php?page=isms-authform-sent | 982 | 2.03 | 27.70 | 43.65 |
/wp-admin/admin.php?page=isms-authform-update | 1,342 | 1.93 | 28.49 | 49.68 |
iSMS Contact with Authenticator /wp-admin/admin.php?page=isms-authform-setting | 2,641 | 2.99 | 40.23 | 41.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/iSMSAuthFormProcess.php+18
Trying to access array offset on value of type bool
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_isms_authform_form
- wp_isms_authform_form_form_meta
- wp_isms_authform_form_message
- wp_isms_authform_form_sent
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 15 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=isms-authform-setting
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/iSMSAuthFormProcess.php+80
Trying to access array offset on value of type bool
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=isms-authform-setting
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+6
Undefined index: id
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+16
Trying to get property 'title' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+39
Trying to get property 'shortcode' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+191
Trying to get property 'fields' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+184
Trying to get property 'form_data' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+202
Trying to get property 'mail_to' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+206
Trying to get property 'mail_from' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+210
Trying to get property 'mail_subject' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+214
Trying to get property 'mail_additional_header' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+218
Trying to get property 'mail_body' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+223
Trying to get property 'html_format' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+231
Trying to get property 'mobile_invalid' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+235
Trying to get property 'sent_successfully' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+240
Trying to get property 'failed_to_send' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+245
Trying to get property 'errors_occurred' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+250
Trying to get property 'referred_to_as_spam' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+255
Trying to get property 'sender_must_accept' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+260
Trying to get property 'sender_must_fill_in' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+265
Trying to get property 'max_allowed_length' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+270
Trying to get property 'min_allowed_length' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+275
Trying to get property 'date_invalid' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+280
Trying to get property 'date_min_limit' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+285
Trying to get property 'date_max_limit' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+290
Trying to get property 'upload_error' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+295
Trying to get property 'upload_file_type_error' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+300
Trying to get property 'upload_file_too_large' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+305
Trying to get property 'upload_php_error' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+310
Trying to get property 'invalid_number' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+315
Trying to get property 'number_min_limit' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+320
Trying to get property 'number_max_limit' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+325
Trying to get property 'incorrect_quiz' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+330
Trying to get property 'email_invalid' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+335
Trying to get property 'url_invalid' of non-object
- > GET request to /wp-admin/admin.php?page=isms-authform-update
- > Notice in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php+339
Trying to get property 'tel_invalid' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/iSMSAuthFormProcess.php
- > /wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/iSMSAuthForm.php
- > /wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/iSMSAuthFormTableList.php
- > /wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/add-new.php
- > /wp-content/plugins/isms-contact-form-with-2-factor-authenticator/isms-authform.php
- > /wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/Plugin.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/add-new.php:360
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php:7
- > PHP Notice
Undefined index: id in wp-content/plugins/isms-contact-form-with-2-factor-authenticator/includes/update-form.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots need descriptions #4, #5, #6, #7 in isms-contact-form-with-2-factor-authenticator/assets to your readme.txt
isms-contact-form-with-2-factor-authenticator/isms-authform.php 77% from 13 tests
The main PHP file in "iSMS Contact Form with 2 Factor Authenticator" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("isms-contact-form-with-2-factor-authenticator.php" instead of "isms-authform.php")
- 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
- Requires PHP: The required version number must match the one declared in readme.txt ("5.6.20" instead of "5.6")
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 plugin8,524 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 707 | 588 | 3,571 |
JavaScript | 8 | 201 | 740 | 3,108 |
CSS | 6 | 68 | 7 | 1,231 |
XML | 3 | 0 | 0 | 614 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 76.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 4 | 2.60% |
▷ Public methods | 130 | 84.42% |
▷ Protected methods | 21 | 13.64% |
▷ Private methods | 3 | 1.95% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/prefix/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
assets/prefix/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |