83% 3-in-1-mortgage-calculator

Code Review | 3-in-1 Mortgage Calculator - TheMortgageReports.com

WordPress plugin 3-in-1 Mortgage Calculator - TheMortgageReports.com scored 83% from 54 tests.

About plugin

  • Plugin page: 3-in-1-mortgage-c...
  • Plugin version: 1.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 5.9.2
  • First release: Jul 22, 2015
  • Latest release: Jul 23, 2015
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: themortgagereports (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 14,084 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.4452.68 ▲32.41
Dashboard /wp-admin3.45 ▲0.0532.33 ▼0.83
Posts /wp-admin/edit.php3.68 ▲0.0536.26 ▼1.31
Add New Post /wp-admin/post-new.php6.95 ▼0.05103.31 ▼1,190.23
Media Library /wp-admin/upload.php3.34 ▲0.0425.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2116.01 ▲0.386.49 ▲0.762.18 ▲0.01
Dashboard /wp-admin2,892 ▲386.11 ▼0.07120.46 ▼13.37154.91 ▼2.40
Posts /wp-admin/edit.php2,688 ▼63.23 ▼0.0164.38 ▼0.43150.51 ▲8.01
Add New Post /wp-admin/post-new.php1,752 ▲9121.75 ▲5.59416.85 ▲2.83162.92 ▲17.11
Media Library /wp-admin/upload.php1,698 ▲35.53 ▲0.01142.53 ▼7.72188.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP11717148

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 code0.30
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity8.50
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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