84% jimmo-wp-loan-repayment-calculator

Code Review | JIMMO WP Loan Repayment Calculator

WordPress plugin JIMMO WP Loan Repayment Calculator scored84%from 54 tests.

About plugin

  • Plugin page: jimmo-wp-loan-rep...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.8.1
  • WordPress version: 6.3.1
  • First release: May 15, 2017
  • Latest release: May 19, 2017
  • Number of updates: 9
  • Update frequency: every 9.3 days
  • Top authors: netjet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,096 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.74ms] Passed 4 tests

A check of server-side resources used by JIMMO WP Loan Repayment Calculator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.87 ▼5.16
Dashboard /wp-admin3.33 ▲0.0347.12 ▼3.34
Posts /wp-admin/edit.php3.38 ▲0.0347.58 ▲1.14
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.05 ▼7.61
Media Library /wp-admin/upload.php3.26 ▲0.0333.62 ▲3.86
JWP Repayment Calculator /wp-admin/options-general.php?page=jimmo-wp-loan-repayment-calculator3.2632.49

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for JIMMO WP Loan Repayment Calculator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.25 ▼1.501.63 ▼0.3437.55 ▼10.97
Dashboard /wp-admin2,212 ▲245.90 ▼0.00107.03 ▲4.0137.98 ▼5.63
Posts /wp-admin/edit.php2,095 ▲61.97 ▲0.0039.41 ▼4.8235.38 ▲0.71
Add New Post /wp-admin/post-new.php1,542 ▼418.36 ▲0.31622.88 ▲15.9758.13 ▼5.61
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0397.77 ▼1.7442.04 ▼5.21
JWP Repayment Calculator /wp-admin/options-general.php?page=jimmo-wp-loan-repayment-calculator8502.0222.1534.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jimmo-wp-loan-repayment-calculator/admin/partials/jimmo-wp-loan-repayment-calculator-welcome-box.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jimmo-wp-loan-repayment-calculator/public/partials/jimmo-wp-loan-repayment-calculator-public-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/jimmo-wp-loan-repayment-calculator/admin/partials/jimmo-wp-loan-repayment-calculator-admin-display.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: loan repayment, annuity loan repayment, loan repayment calculator, annuity loan, loan...

jimmo-wp-loan-repayment-calculator/jimmo-wp-loan-repayment-calculator.php Passed 13 tests

Analyzing the main PHP file in "JIMMO WP Loan Repayment Calculator" version 1.1.0
48 characters long description:
Plugin to calculate a repayment plan for a loan.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,793 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP13162615544
JavaScript2100267437
CSS200319
LESS3407316
PO File15986177

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.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
No PNG images were found in this plugin