Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.50MB] [CPU: ▼4.30ms] 75% from 4 tests
Analyzing server-side resources used by Home Value
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 946.67ms on /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.00 ▲0.54 | 41.31 ▲3.13 |
Dashboard /wp-admin | 3.82 ▲0.48 | 47.88 ▼15.96 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 53.53 ▲6.55 |
Add New Post /wp-admin/post-new.php | 6.46 ▲0.57 | 88.50 ▼9.14 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 41.31 ▲4.79 |
Tags /wp-admin/edit-tags.php?taxonomy=8b_hv_lead_tag&post_type=8b_hv_lead | 3.80 | 37.48 |
All Leads /wp-admin/edit.php?post_type=8b_hv_lead | 3.79 | 40.41 |
Export /wp-admin/edit.php?post_type=8b_hv_lead&page=8b_hv_export | 3.65 | 32.08 |
Settings /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values | 3.78 | 946.67 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
home_values_plugin_version |
home_values_emails |
home_values_plugin_updated |
Browser metrics Passed 4 tests
Home Value: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 13.44 ▼1.12 | 9.07 ▲7.51 | 38.79 ▲0.39 |
Dashboard /wp-admin | 2,239 ▲67 | 5.51 ▼0.23 | 88.06 ▼9.93 | 38.41 ▼1.69 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 1.99 ▼0.04 | 40.15 ▼0.03 | 37.64 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.30 ▼0.12 | 644.58 ▼7.80 | 63.47 ▲6.73 |
Media Library /wp-admin/upload.php | 1,444 ▲41 | 4.20 ▲0.01 | 96.79 ▲1.62 | 43.43 ▼2.31 |
Tags /wp-admin/edit-tags.php?taxonomy=8b_hv_lead_tag&post_type=8b_hv_lead | 1,287 | 2.28 | 26.71 | 30.13 |
All Leads /wp-admin/edit.php?post_type=8b_hv_lead | 1,084 | 1.94 | 30.15 | 29.74 |
Export /wp-admin/edit.php?post_type=8b_hv_lead&page=8b_hv_export | 808 | 2.04 | 24.47 | 26.12 |
Settings /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values | 1,024 | 1.95 | 22.76 | 26.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 uninstall procedure has failed, leaving 9 options in the database
- home_values_plugin_version
- theysaidso_admin_options
- db_upgraded
- home_values_emails
- home_values_plugin_updated
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+73
Undefined index: api_key
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+83
Undefined index: next_refill_date
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+76
Undefined index: credits
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+77
Undefined index: renewal_url
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+80
Undefined index: auto_refill_enabled
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+81
Undefined index: credits_in_package
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+82
Undefined index: credits_low
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+217
Undefined index: google_api_key
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+227
Undefined index: adjust_values
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+240
Undefined index: load_css
- > GET request to /wp-admin/edit.php?post_type=8b_hv_lead&page=home_values
- > Notice in wp-content/plugins/home-value/admin/partials/home-values-general.php+247
Undefined index: webhooks
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
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/home-value/templates/forms/address-search-page.php
- > /wp-content/plugins/home-value/templates/forms/comparables.php
- > /wp-content/plugins/home-value/templates/lead-description.php
- > /wp-content/plugins/home-value/templates/forms/lead-info-page.php
- 48× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/home-value/admin/partials/home-values-uninstall.php:2
- > PHP Warning
require_once(HOME_VALUES_PLUGIN_DIRincludes/class-home-values-api.php): failed to open stream: No such file or directory in wp-content/plugins/home-value/public/class-home-values-shortcodes.php on line 5
- > PHP Notice
Undefined variable: last_name_field_placeholder in wp-content/plugins/home-value/templates/forms/lead-form.php on line 9
- > PHP Notice
Undefined variable: first_name_field_placeholder in wp-content/plugins/home-value/templates/forms/lead-form.php on line 4
- > PHP Notice
Undefined variable: address_not_found_messaging in wp-content/plugins/home-value/templates/forms/lead-info-page.php on line 62
- > PHP Notice
Undefined variable: searched_address in wp-content/plugins/home-value/templates/lead-description.php on line 7
- > PHP Notice
Undefined variable: address_street_view in wp-content/plugins/home-value/templates/forms/lead-info-page.php on line 64
- > PHP Notice
Undefined variable: lead_last_name in wp-content/plugins/home-value/templates/lead-description.php on line 7
- > PHP Warning
Use of undefined constant HOME_VALUES_PLUGIN_DIR - assumed 'HOME_VALUES_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/home-value/public/class-home-values-shortcodes.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/home-value/templates/forms/comparables.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: home value, avm, real estate, home price evaluations
home-value/home-values.php 85% from 13 tests
Analyzing the main PHP file in "Home Value" version 3.1.5
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("home-value.php" instead of "home-values.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,324 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 566 | 431 | 2,914 |
JavaScript | 3 | 25 | 14 | 223 |
CSS | 2 | 20 | 12 | 110 |
XML | 14 | 0 | 0 | 77 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 201)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 31.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 215.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 201.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 63 | 85.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 14.86% |
Functions | 25 | |
▷ Named functions | 23 | 92.00% |
▷ Anonymous functions | 2 | 8.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin