Benchmarks
Plugin footprint 65% 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.90MB] [CPU: ▼51.86ms] Passed 4 tests
An overview of server-side resources used by 1003 Mortgage Application
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.21 ▼38.24 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.73 ▼41.89 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.61 ▼40.22 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 5.32 ▼87.07 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.15 ▼25.98 |
Settings /wp-admin/edit.php?post_type=mortgage_application&page=ma_setting | 2.11 | 5.57 |
Applications /wp-admin/edit.php?post_type=mortgage_application | 2.11 | 6.67 |
Bulk Export /wp-admin/edit.php?post_type=mortgage_application&page=ma_export | 2.11 | 5.52 |
Server storage [IO: ▲4.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 113 new files
Database: no new tables, 24 new options
New WordPress options |
---|
mortgage_application_mail_subject |
mortgage_application_user_mail_message |
mortgage_application_email_recipients |
mortgage_application_button_color |
mortgage_application_mail_reply_to |
mortgage_application_mail_from_name |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
mortgage_application_reminder_mail_message |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for 1003 Mortgage Application
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲188 | 14.15 ▼0.19 | 9.42 ▲7.66 | 35.75 ▼8.95 |
Dashboard /wp-admin | 2,236 ▲59 | 5.06 ▼0.47 | 95.82 ▼9.22 | 72.06 ▲28.84 |
Posts /wp-admin/edit.php | 2,153 ▲53 | 2.34 ▲0.32 | 33.17 ▼1.61 | 32.34 ▼5.01 |
Add New Post /wp-admin/post-new.php | 1,576 ▲50 | 24.12 ▲0.38 | 748.88 ▲48.98 | 31.57 ▼20.37 |
Media Library /wp-admin/upload.php | 1,449 ▲58 | 4.60 ▲0.45 | 95.56 ▼2.71 | 94.49 ▲52.73 |
Settings /wp-admin/edit.php?post_type=mortgage_application&page=ma_setting | 2,627 | 11.07 | 231.91 | 138.19 |
Applications /wp-admin/edit.php?post_type=mortgage_application | 1,182 | 2.42 | 33.67 | 29.40 |
Bulk Export /wp-admin/edit.php?post_type=mortgage_application&page=ma_export | 1,270 | 2.36 | 35.74 | 22.83 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 24 options in the database
- mortgage_application_button_color
- theysaidso_admin_options
- disclaimer_field_1
- mortgage_application_mail_from_name
- mortgage_application_success_message
- widget_recent-posts
- mortgage_application_mail_from
- mortgage_application_user_mail_message
- mortgage_application_progress_bar_color
- mortgage_application_mail_reply_to
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mortgage_application&page=ma_export
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mortgage_application&page=ma_export
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mortgage_application&page=ma_export
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the sl-script-handle handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mortgage_application&page=ma_setting
- > Notice in wp-content/plugins/1003-mortgage-application/inc/admin/functions/functions.php+1091
Undefined index: placeholder
- > GET request to /wp-admin/edit.php?post_type=mortgage_application&page=ma_setting
- > Notice in wp-content/plugins/1003-mortgage-application/inc/admin/functions/functions.php+1202
Undefined index: id
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
- 19× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/1003-mortgage-application/inc/class/bitly_shortURL.php
- > /wp-content/plugins/1003-mortgage-application/inc/initialize-plugin.php
- > /wp-content/plugins/1003-mortgage-application/inc/templates/mortgage_export_form.php
- > /wp-content/plugins/1003-mortgage-application/inc/class/general.php
- > /wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM/fnm-import/getdata.php
- > /wp-content/plugins/1003-mortgage-application/inc/templates/mortgage_metabox.php
- > /wp-content/plugins/1003-mortgage-application/inc/templates/mortgage_setting.php
- > /wp-content/plugins/1003-mortgage-application/inc/templates/mortgage_action_metabox.php
- > /wp-content/plugins/1003-mortgage-application/inc/class/fnm/export.php
- > /wp-content/plugins/1003-mortgage-application/inc/actions.php
- 51× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined property: stdClass::$is_there_co_borrower in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM.php on line 364
- > PHP Notice
Undefined property: stdClass::$co_applicant_former_emp_data in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM.php on line 57
- > PHP Notice
Undefined property: stdClass::$currently_own_real_estate in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM.php on line 51
- > PHP Notice
Trying to get property 'real_estate_owned_market_value' of non-object in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM/getData.php on line 268
- > PHP Notice
Undefined property: stdClass::$same_mailing_address in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM.php on line 69
- > PHP Notice
Undefined property: stdClass::$co_applicant_dec_permanent_resident in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM.php on line 356
- > PHP Notice
Trying to get property 'retirement_fund_cash_value' of non-object in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM/getData.php on line 270
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM/fnm-import/src/Formatter.php on line 76
- > PHP Notice
Undefined property: stdClass::$employer_telephone in wp-content/plugins/1003-mortgage-application/inc/class/fnm/src/FNM.php on line 63
- > PHP Fatal error
Uncaught Error: Interface 'mapp_mortgageApplicationExport' not found in wp-content/plugins/1003-mortgage-application/inc/class/export_base.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: mortgage, real estate, application, 1003 application, mortgage application...
1003-mortgage-application/mortgage-application-pro.php 69% from 13 tests
The main PHP script in "1003 Mortgage Application" version 1.83 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 190 characters long)
- Git Repository: There should be no Git repositories present in your plugin
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: The principal plugin file should be the same as the plugin slug ("1003-mortgage-application.php" instead of "mortgage-application-pro.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin67,756 lines of code in 92 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 11 | 0 | 0 | 52,502 |
PHP | 47 | 919 | 2,884 | 8,938 |
JavaScript | 8 | 345 | 756 | 3,106 |
CSS | 4 | 423 | 184 | 2,556 |
XML | 21 | 17 | 0 | 618 |
Markdown | 1 | 2 | 0 | 36 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 383)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 58.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 447.00 |
Average method complexity | 11.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 383.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 154 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 74 | 48.05% |
▷ Protected methods | 19 | 12.34% |
▷ Private methods | 61 | 39.61% |
Functions | 86 | |
▷ Named functions | 83 | 96.51% |
▷ Anonymous functions | 3 | 3.49% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/correct.png | 4.94KB | 1.49KB | ▼ 69.84% |
assets/img/cancel.png | 4.12KB | 1.30KB | ▼ 68.42% |
assets/img/remove.png | 0.26KB | 0.24KB | ▼ 8.86% |
assets/img/add.png | 0.26KB | 0.25KB | ▼ 6.64% |