89% finance-calculator-with-application-form

Code Review | Finance Calculator

WordPress plugin Finance Calculator scored89%from 54 tests.

About plugin

  • Plugin page: finance-calculato...
  • Plugin version: 2.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Nov 25, 2010
  • Latest release: Oct 26, 2023
  • Number of updates: 53
  • Update frequency: every 89.0 days
  • Top authors: butterflymedia (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active /23,289 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼8.56ms] Passed 4 tests

An overview of server-side resources used by Finance Calculator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1538.34 ▲2.89
Dashboard /wp-admin3.43 ▲0.0946.11 ▼13.68
Posts /wp-admin/edit.php3.49 ▲0.1343.70 ▼6.98
Add New Post /wp-admin/post-new.php6.02 ▲0.1386.70 ▼13.96
Media Library /wp-admin/upload.php3.36 ▲0.1335.00 ▲0.38
Finance Calculator /wp-admin/options-general.php?page=wpfcs3.3231.37

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 12 new options
New WordPress options
widget_recent-posts
wpfc_application_email
wpfcs_loan_options
theysaidso_admin_options
wpfc_currency_symbol
wpfc_currency
db_upgraded
can_compress_scripts
wpfc_finance_rate
wpfc_show_application
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Finance Calculator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.35 ▼0.031.81 ▲0.2338.89 ▼5.84
Dashboard /wp-admin2,201 ▲205.54 ▼0.1386.61 ▼43.8237.88 ▼13.55
Posts /wp-admin/edit.php2,106 ▲32.02 ▲0.0335.45 ▼4.4329.64 ▼7.71
Add New Post /wp-admin/post-new.php1,531 ▲522.84 ▼1.06597.31 ▼106.4556.18 ▼2.76
Media Library /wp-admin/upload.php1,403 ▲64.18 ▼0.05100.84 ▼0.3443.75 ▼2.12
Finance Calculator /wp-admin/options-general.php?page=wpfcs1,0921.9922.4363.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Front-end form), #2 (Front-end form), #3 (Plugin settings)
You can look at the official readme.txt

finance-calculator-with-application-form/finance-calculator-with-aplication-form.php 92% from 13 tests

The main PHP file in "Finance Calculator" ver. 2.1.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("finance-calculator-with-application-form.php" instead of "finance-calculator-with-aplication-form.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
Success! There were no dangerous files found in this plugin739 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP27829571
JavaScript129138118
CSS22350

PHP code Passed 2 tests

An short overview of 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 code0.14
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%
Functions8
▷ Named functions8100.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
4 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png56.57KB46.00KB▼ 18.70%
screenshot-1.png21.94KB15.80KB▼ 27.98%
screenshot-3.png15.56KB11.50KB▼ 26.06%
screenshot-2.png12.48KB9.33KB▼ 25.25%