84% mortgage

Code Review | Mortgage Calculator

WordPress plugin Mortgage Calculator scored 84% from 54 tests.

About plugin

  • Plugin page: mortgage
  • Plugin version: 0.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2021
  • Latest release: Mar 22, 2023
  • Number of updates: 25
  • Update frequency: every 29.4 days
  • Top authors: tropicalista (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 3,513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.56ms] Passed 4 tests

An overview of server-side resources used by Mortgage Calculator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.82 ▼9.08
Dashboard /wp-admin3.33 ▲0.0249.75 ▲0.61
Posts /wp-admin/edit.php3.38 ▲0.0251.59 ▲0.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.97 ▼5.76
Media Library /wp-admin/upload.php3.25 ▲0.0241.63 ▲10.77

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mortgage Calculator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9314.80 ▲0.421.78 ▼0.4637.05 ▼5.94
Dashboard /wp-admin2,206 ▲184.85 ▼1.07109.98 ▼1.1740.24 ▼6.37
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0138.85 ▼1.0934.91 ▼1.87
Add New Post /wp-admin/post-new.php6,596 ▲5,06324.23 ▲0.93844.19 ▲175.4376.23 ▲24.68
Media Library /wp-admin/upload.php1,385 ▲34.20 ▼0.0199.61 ▼5.5842.46 ▼1.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mortgage/mortgage.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: mortgage calculator block, mortgage calculator, block, calculator, mortgage

mortgage/mortgage.php Passed 13 tests

"Mortgage Calculator" version 0.3.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
A simple responsive mortgage calculator block with a clean flat design.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected490 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JSON1700326
PO File170102142
PHP341818
CSS2002
JavaScript2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin