Benchmarks
Plugin footprint 83% 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.52MB] [CPU: ▼0.49ms] Passed 4 tests
Server-side resources used by Mortgage Calculators WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.19 ▲0.46 | 43.75 ▼1.15 |
Dashboard /wp-admin | 4.16 ▲0.59 | 53.56 ▲3.16 |
Posts /wp-admin/edit.php | 4.21 ▲0.53 | 57.49 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.55 | 100.02 ▼3.80 |
Media Library /wp-admin/upload.php | 4.02 ▲0.53 | 42.02 ▲0.63 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 56 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Mortgage Calculators WP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.33 ▼1.05 | 9.28 ▲7.68 | 38.55 ▼4.75 |
Dashboard /wp-admin | 2,215 ▲38 | 5.66 ▲0.03 | 84.57 ▼6.07 | 69.81 ▲24.27 |
Posts /wp-admin/edit.php | 2,141 ▲41 | 2.18 ▲0.14 | 43.64 ▲1.20 | 39.86 ▲3.37 |
Add New Post /wp-admin/post-new.php | 1,710 ▲179 | 22.16 ▼1.14 | 756.68 ▲70.55 | 38.12 ▼10.20 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.25 ▼0.01 | 92.53 ▼15.36 | 68.43 ▲19.80 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mortgage-calculators-wp/mortgage-calculators-wp.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/mortgage-calculators-wp/includes/functions/emails/rc.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mortgage-calculators-wp/includes/shortcodes/views/mha.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/mortgage-calculators-wp/includes/functions/emails/mha.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mortgage-calculators-wp/includes/options/update_network_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/mortgage-calculators-wp/includes/functions/emails/fha.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/mortgage-calculators-wp/includes/functions/emails/cv.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/mortgage-calculators-wp/includes/functions/emails/va.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function use_network_settings() in wp-content/plugins/mortgage-calculators-wp/includes/shortcodes/views/conventional.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mortgage-calculators-wp/includes/shortcodes/views/va.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/mortgage-calculators-wp/includes/shortcodes/views/fha.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: mortgage calculator, mortgage calc, real estate, responsive mortgage calculator, loan calculator...
mortgage-calculators-wp/mortgage-calculators-wp.php 92% from 13 tests
The main file in "Mortgage Calculators WP" v. 1.56 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected6,535 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 88 | 494 | 3,264 |
PHP | 18 | 374 | 88 | 1,612 |
PO File | 5 | 656 | 1,106 | 1,474 |
CSS | 3 | 10 | 47 | 105 |
XML | 13 | 0 | 0 | 80 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
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 | 43 | |
▷ Named functions | 41 | 95.35% |
▷ Anonymous functions | 2 | 4.65% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-256x256.png | 3.93KB | 1.83KB | ▼ 53.37% |
assets/images/calculator.png | 0.50KB | 0.36KB | ▼ 27.71% |
assets/images/icon-128x128.png | 3.40KB | 1.73KB | ▼ 49.02% |
assets/images/banner-772x250.png | 37.94KB | 15.19KB | ▼ 59.96% |