Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/mortgage-and-loan-calculator/monthly-mortgage-calc-widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; monthly_mortgage_free_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼50.74ms] Passed 4 tests
Server-side resources used by Simple Mortgage Calculator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.28 ▼36.10 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.77 ▼43.59 |
Posts /wp-admin/edit.php | 2.10 ▼1.25 | 6.43 ▼38.76 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 5.57 ▼84.52 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.84 ▼24.97 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_monthly_mortgage_free_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Mortgage Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲86 | 14.83 ▲0.52 | 2.64 ▲0.63 | 39.32 ▼12.35 |
Dashboard /wp-admin | 2,212 ▲21 | 4.96 ▼0.95 | 102.06 ▼9.88 | 38.94 ▼7.35 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.07 ▲0.02 | 41.01 ▼2.14 | 36.47 ▲3.31 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 18.20 ▼5.05 | 617.35 ▼61.41 | 55.47 ▼4.46 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.26 ▲0.09 | 101.35 ▲4.52 | 42.82 ▼1.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/mortgage-and-loan-calculator/monthly-mortgage-calc-widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; monthly_mortgage_free_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_monthly_mortgage_free_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc.php
- > /wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc-for-php-less-than-3x.php
- 14× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc.php on line 71
- > PHP Warning
Division by zero in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc.php on line 14
- > PHP Notice
Undefined index: advanced_mortgage_calc_loan in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc-for-php-less-than-3x.php on line 3
- > PHP Notice
Undefined offset: -1 in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc-for-php-less-than-3x.php on line 72
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mortgage-and-loan-calculator/monthly-mortgage-calc-widget.php:2
- > PHP Notice
Undefined index: advanced_mortgage_calc_rate in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc-for-php-less-than-3x.php on line 4
- > PHP Notice
Undefined offset: -1 in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc.php on line 71
- > PHP Notice
Undefined index: advanced_mortgage_calc_loan in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc.php on line 3
- > PHP Warning
Division by zero in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc-for-php-less-than-3x.php on line 14
- > PHP Notice
Undefined index: advanced_mortgage_calc_rate in wp-content/plugins/mortgage-and-loan-calculator/mortgage-calc.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Please add an image for screenshot #3 (logo.png)
mortgage-and-loan-calculator/monthly-mortgage-calc.php 85% from 13 tests
The primary PHP file in "Simple Mortgage Calculator" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 433 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mortgage-and-loan-calculator.php" instead of "monthly-mortgage-calc.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,371 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 141 | 111 | 967 |
PHP | 5 | 37 | 33 | 333 |
CSS | 2 | 15 | 1 | 71 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 19.07KB | 8.08KB | ▼ 57.60% |
shortcode.png | 20.04KB | 7.85KB | ▼ 60.85% |
widget.png | 9.10KB | 3.82KB | ▼ 58.00% |