Benchmarks
Plugin footprint 83% 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: ▲0.06MB] [CPU: ▼6.37ms] Passed 4 tests
Analyzing server-side resources used by Mortgage Calculator / Loan Calculator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.54 ▼2.08 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.02 ▼7.42 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.34 ▼4.95 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 91.71 ▼11.01 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.90 ▲4.92 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Mortgage Calculator / Loan Calculator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.27 ▼0.01 | 1.51 ▼0.28 | 36.89 ▼8.37 |
Dashboard /wp-admin | 2,195 ▲17 | 5.64 ▼0.08 | 92.43 ▼21.43 | 42.33 ▼10.01 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▲0.01 | 40.85 ▲3.38 | 35.97 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.10 ▲0.04 | 636.37 ▼23.26 | 65.85 ▲16.25 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.30 ▲0.07 | 98.02 ▼2.05 | 44.17 ▲1.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mortgage-loan-calculator/fr/forms.inc.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mortgage-loan-calculator/mlcalc.php:38
- > PHP Notice
Undefined variable: form_size in wp-content/plugins/mortgage-loan-calculator/de/forms.inc.php on line 2
- > PHP Notice
Undefined variable: form_size in wp-content/plugins/mortgage-loan-calculator/ru/forms.inc.php on line 2
- > PHP Notice
Undefined variable: form_size in wp-content/plugins/mortgage-loan-calculator/en/forms.inc.php on line 1
- > PHP Notice
Undefined variable: form_size in wp-content/plugins/mortgage-loan-calculator/it/forms.inc.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mortgage-loan-calculator/es/forms.inc.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mortgage-loan-calculator/en/forms.inc.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mortgage-loan-calculator/de/forms.inc.php:8
- > PHP Notice
Undefined variable: form_size in wp-content/plugins/mortgage-loan-calculator/fr/forms.inc.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: calculator, real estate, mortgage, loan calculator, mortgage calculator...
mortgage-loan-calculator/mlcalc.php 92% from 13 tests
Analyzing the main PHP file in "Mortgage Calculator / Loan Calculator" version 1.5.20
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("mortgage-loan-calculator.php" instead of "mlcalc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,890 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 176 | 84 | 1,517 |
PHP | 9 | 37 | 61 | 315 |
CSS | 2 | 5 | 0 | 58 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
68 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
en/images/top-panel-mortgage-only.png | 3.53KB | 2.07KB | ▼ 41.29% |
it/images/top-panel-mortgage-only.png | 3.15KB | 1.89KB | ▼ 39.98% |
pt/images/top-panel-mortgage-only-small.png | 2.27KB | 1.54KB | ▼ 32.04% |
ru/images/top-panel-loan.png | 4.46KB | 2.63KB | ▼ 40.97% |
de/images/top-panel-mortgage.png | 5.06KB | 2.89KB | ▼ 42.87% |