Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼297.71ms] Passed 4 tests
Server-side resources used by 3-in-1 Mortgage Calculator - TheMortgageReports.com
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.44 | 52.68 ▲32.41 |
Dashboard /wp-admin | 3.45 ▲0.05 | 32.33 ▼0.83 |
Posts /wp-admin/edit.php | 3.68 ▲0.05 | 36.26 ▼1.31 |
Add New Post /wp-admin/post-new.php | 6.95 ▼0.05 | 103.31 ▼1,190.23 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 25.87 ▲1.54 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_tmr_mortgage_calculator |
Browser metrics Passed 4 tests
3-in-1 Mortgage Calculator - TheMortgageReports.com: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲21 | 16.01 ▲0.38 | 6.49 ▲0.76 | 2.18 ▲0.01 |
Dashboard /wp-admin | 2,892 ▲38 | 6.11 ▼0.07 | 120.46 ▼13.37 | 154.91 ▼2.40 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.23 ▼0.01 | 64.38 ▼0.43 | 150.51 ▲8.01 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 21.75 ▲5.59 | 416.85 ▲2.83 | 162.92 ▲17.11 |
Media Library /wp-admin/upload.php | 1,698 ▲3 | 5.53 ▲0.01 | 142.53 ▼7.72 | 188.01 ▼7.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 1 option in the database
- widget_tmr_mortgage_calculator
Smoke tests 75% 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 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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/3-in-1-mortgage-calculator/tmr_mortgage_calculator.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== 3-in-1-mortgage-calculator ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.jpg), #2 (screenshot-2.jpg)
3-in-1-mortgage-calculator/tmr_mortgage_calculator.php 85% from 13 tests
"3-in-1 Mortgage Calculator - TheMortgageReports.com" version 1.01's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Version: The plugin version was missing
- Main file name: The principal plugin file should be the same as the plugin slug ("3-in-1-mortgage-calculator.php" instead of "tmr_mortgage_calculator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected148 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 17 | 148 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 8.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin