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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.93MB] [CPU: ▼39.50ms] Passed 4 tests
Server-side resources used by Home Affordability Calculator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.73 ▼2.07 |
Dashboard /wp-admin | 3.02 ▼0.33 | 21.21 ▼41.84 |
Posts /wp-admin/edit.php | 3.02 ▼0.34 | 24.49 ▼22.51 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.87 | 23.94 ▼80.79 |
Media Library /wp-admin/upload.php | 3.02 ▼0.21 | 22.44 ▼12.84 |
Affordibility Calculator Lite /wp-admin/admin.php?page=MAINMENUWPBOXAFF | 3.02 | 24.33 |
Support /wp-admin/admin.php?page=SupportWPBOXAFF | 3.02 | 23.46 |
Go Pro /wp-admin/admin.php?page=WPBOXAFF_gopro | 3.02 | 20.39 |
Settings /wp-admin/admin.php?page=WPBOXAFF_settings | 3.02 | 23.11 |
PDF & Email /wp-admin/admin.php?page=WPBOXAFF_pdf | 3.02 | 22.53 |
View Leads /wp-admin/admin.php?page=WPBOXAFF_leads | 3.02 | 25.03 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Home Affordability Calculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲146 | 13.77 ▼0.97 | 1.81 ▲0.02 | 42.73 ▼1.00 |
Dashboard /wp-admin | 2,292 ▲104 | 5.16 ▼0.71 | 129.69 ▲10.49 | 38.94 ▼4.67 |
Posts /wp-admin/edit.php | 2,183 ▲94 | 2.27 ▲0.23 | 46.82 ▲12.14 | 34.51 ▼4.61 |
Add New Post /wp-admin/post-new.php | 1,574 ▲32 | 18.55 ▼4.68 | 657.05 ▼1.92 | 37.81 ▼16.63 |
Media Library /wp-admin/upload.php | 1,479 ▲91 | 4.33 ▲0.15 | 108.19 ▲3.05 | 40.78 ▼4.40 |
Affordibility Calculator Lite /wp-admin/admin.php?page=MAINMENUWPBOXAFF | 861 | 1.97 | 31.77 | 35.07 |
Support /wp-admin/admin.php?page=SupportWPBOXAFF | 901 | 1.98 | 31.71 | 31.64 |
Go Pro /wp-admin/admin.php?page=WPBOXAFF_gopro | 896 | 1.90 | 27.98 | 44.80 |
Settings /wp-admin/admin.php?page=WPBOXAFF_settings | 2,777 | 2.03 | 38.42 | 59.02 |
PDF & Email /wp-admin/admin.php?page=WPBOXAFF_pdf | 1,042 | 2.03 | 31.55 | 39.84 |
View Leads /wp-admin/admin.php?page=WPBOXAFF_leads | 892 | 1.98 | 31.86 | 31.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > 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.)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 30 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=WPBOXAFF_leads
- > 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.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 14× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/home-affordability-calculator/Pages/pro.php
- > /wp-content/plugins/home-affordability-calculator/Pages/leads.php
- > /wp-content/plugins/home-affordability-calculator/Pages/customize/4-funds.php
- > /wp-content/plugins/home-affordability-calculator/Pages/customize/5-finance.php
- > /wp-content/plugins/home-affordability-calculator/Pages/json.php
- > /wp-content/plugins/home-affordability-calculator/lib/steps/2.php
- > /wp-content/plugins/home-affordability-calculator/Pages/customize/1-income.php
- > /wp-content/plugins/home-affordability-calculator/Pages/pdf.php
- > /wp-content/plugins/home-affordability-calculator/Pages/activation.php
- > /wp-content/plugins/home-affordability-calculator/Pages/customize/2-m-debts.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function hac_get_head() in wp-content/plugins/home-affordability-calculator/Pages/settings.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/home-affordability-calculator/Pages/support.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/home-affordability-calculator/Home-Affordability-Calculator.php:30
- > PHP Warning
include(wp-content/plugins/home-affordability-calculator/lib/main-css.php): failed to open stream: No such file or directory in wp-content/plugins/home-affordability-calculator/lib/index.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function WPBOXAFF_appi() in wp-content/plugins/home-affordability-calculator/lib/steps/1.php:28
- > PHP Warning
include(): Failed opening 'wp-content/plugins/home-affordability-calculator/lib/main-css.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/home-affordability-calculator/lib/index.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function WPBOXAFF_appi() in wp-content/plugins/home-affordability-calculator/lib/steps/1.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
2 plugin tags: web calculator, home affordability calculator
home-affordability-calculator/Home-Affordability-Calculator.php 77% from 13 tests
The main PHP script in "Home Affordability Calculator" version 1.2 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("home-affordability-calculator.php" instead of "Home-Affordability-Calculator.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 212 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,323 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 177 | 73 | 1,713 |
PHP | 21 | 415 | 38 | 981 |
JavaScript | 9 | 10 | 6 | 625 |
SVG | 4 | 0 | 0 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
JS/tipx/images/ui-icons_444444_256x240.png | 6.84KB | 4.18KB | ▼ 38.90% |
JS/tipx/images/ui-icons_555555_256x240.png | 6.84KB | 4.18KB | ▼ 38.84% |
Pages/icons/email-support.png | 10.72KB | 5.44KB | ▼ 49.27% |