Benchmarks
Plugin footprint 82% 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: ▲1.26MB] [CPU: ▲949.43ms] 50% from 4 tests
An overview of server-side resources used by Mortgage Lead Capture System
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 795.31ms on /wp-admin/edit.php?post_type=wpq_contact_form)
- Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 949.43ms on /wp-admin/edit.php?post_type=wpq_contact_form)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.73 ▲1.26 | 849.77 ▲811.18 |
Dashboard /wp-admin | 4.58 ▲1.23 | 821.49 ▲759.91 |
Posts /wp-admin/edit.php | 4.63 ▲1.27 | 1,344.75 ▲1,299.39 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.30 | 1,012.37 ▲927.23 |
Media Library /wp-admin/upload.php | 4.50 ▲1.27 | 1,501.29 ▲1,465.98 |
Survey Forms /wp-admin/edit.php?post_type=wpq_survey_form | 4.54 | 842.46 |
WPrequal Settings /wp-admin/admin.php?page=wprequal_options | 4.48 | 802.29 |
Export Leads /wp-admin/admin.php?page=export-leads | 4.50 | 918.11 |
Register Forms /wp-admin/edit.php?post_type=wpq_register_form | 4.55 | 775.52 |
Leads /wp-admin/edit.php?post_type=wprequal_lead | 4.55 | 752.16 |
Contact Forms /wp-admin/edit.php?post_type=wpq_contact_form | 4.55 | 795.31 |
Server storage [IO: ▲8.92MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 252 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_wprequal_register_form |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_wprequal |
widget_wprequal_contact_form |
Browser metrics Passed 4 tests
Mortgage Lead Capture System: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲159 | 13.69 ▼0.66 | 14.66 ▲12.84 | 37.22 ▼7.05 |
Dashboard /wp-admin | 2,232 ▲52 | 5.52 ▼0.01 | 86.84 ▼2.50 | 82.68 ▲41.24 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 1.96 ▼0.01 | 36.76 ▼2.25 | 33.70 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 18.47 ▼4.70 | 787.43 ▲52.15 | 55.82 ▲2.23 |
Media Library /wp-admin/upload.php | 1,452 ▲55 | 4.20 ▲0.02 | 93.90 ▼40.76 | 77.29 ▲28.41 |
Survey Forms /wp-admin/edit.php?post_type=wpq_survey_form | 1,116 | 1.95 | 31.26 | 31.37 |
WPrequal Settings /wp-admin/admin.php?page=wprequal_options | 907 | 2.01 | 25.31 | 24.93 |
Export Leads /wp-admin/admin.php?page=export-leads | 837 | 1.99 | 23.34 | 26.47 |
Register Forms /wp-admin/edit.php?post_type=wpq_register_form | 1,116 | 1.92 | 29.95 | 29.05 |
Leads /wp-admin/edit.php?post_type=wprequal_lead | 1,137 | 1.99 | 32.55 | 30.56 |
Contact Forms /wp-admin/edit.php?post_type=wpq_contact_form | 1,120 | 1.92 | 39.59 | 40.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_wprequal_register_form
- widget_wprequal
- widget_theysaidso_widget
- widget_recent-comments
- widget_wprequal_contact_form
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 124× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wprequal/views/calc/insurance.php
- > /wp-content/plugins/wprequal/views/survey/admin/settings.php
- > /wp-content/plugins/wprequal/views/contact/form/contact-form.php
- > /wp-content/plugins/wprequal/views/contact/form/text.php
- > /wp-content/plugins/wprequal/views/survey/admin/fa-select.php
- > /wp-content/plugins/wprequal/views/contact/admin/inputs.php
- > /wp-content/plugins/wprequal/views/contact/form/legend.php
- > /wp-content/plugins/wprequal/views/survey/admin/text.php
- > /wp-content/plugins/wprequal/views/survey/admin/icons.php
- > /wp-content/plugins/wprequal/views/contact/form/checkbox.php
- 43× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/classes/class.Email.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/classes/class.RegisterFormAdmin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/abstracts/trait.Api.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/functions/update-notice.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/abstracts/class.PostType.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/classes/class.Calc.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/abstracts/class.Mail.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/classes/class.ContactFormAdmin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/functions/view.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function WPrequal\\wp_die() in wp-content/plugins/wprequal/includes/classes/class.SurveyFormAdmin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
wprequal/wprequal.php Passed 13 tests
The primary PHP file in "Mortgage Lead Capture System" version 8.2.4 is used by WordPress to initiate all plugin functionality
44 characters long description:
Mortgage and Real Estate Lead Capture System
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 plugin68,130 lines of code in 226 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 28 | 2,240 | 1,143 | 25,675 |
Sass | 18 | 6,501 | 29 | 18,802 |
SVG | 5 | 0 | 12 | 8,891 |
PHP | 168 | 3,447 | 3,511 | 7,560 |
CSS | 2 | 2 | 90 | 7,197 |
JSON | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 16.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 30 | |
▷ Abstract classes | 3 | 10.00% |
▷ Concrete classes | 27 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 289 | |
▷ Static methods | 44 | 15.22% |
▷ Public methods | 279 | 96.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 3.46% |
Functions | 26 | |
▷ Named functions | 17 | 65.38% |
▷ Anonymous functions | 9 | 34.62% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.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
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/wprequal-logo.png | 2.59KB | 2.70KB | 0.00% |
assets/img/icon.png | 0.83KB | 0.85KB | 0.00% |
assets/img/raw/icon.png | 3.86KB | 0.85KB | ▼ 77.96% |
assets/img/raw/wprequal-logo.png | 2.59KB | 2.70KB | 0.00% |