83% fc-auto-loan-calculator

Code Review | FC's Auto Loan Calculator

WordPress plugin FC's Auto Loan Calculator scored83%from 54 tests.

About plugin

  • Plugin page: fc-auto-loan-calc...
  • Plugin version: 1.5.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 8, 2016
  • Latest release: Mar 31, 2023
  • Number of updates: 69
  • Update frequency: every 33.3 days
  • Top authors: karl53 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /10,525 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.20ms] Passed 4 tests

A check of server-side resources used by FC's Auto Loan Calculator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1641.45 ▼0.21
Dashboard /wp-admin3.46 ▲0.1649.43 ▲1.56
Posts /wp-admin/edit.php3.51 ▲0.1654.15 ▲2.33
Add New Post /wp-admin/post-new.php6.04 ▲0.1682.52 ▼23.05
Media Library /wp-admin/upload.php3.38 ▲0.1639.61 ▲0.91

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

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

Browser metrics Passed 4 tests

A check of browser resources used by FC's Auto Loan Calculator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.471.57 ▼0.1643.58 ▼6.56
Dashboard /wp-admin2,192 ▲155.62 ▼0.0486.03 ▼0.1738.59 ▼3.20
Posts /wp-admin/edit.php2,100 ▼31.94 ▼0.0841.37 ▲0.1836.22 ▼1.43
Add New Post /wp-admin/post-new.php1,536 ▲822.76 ▼0.27646.53 ▼30.0059.26 ▲2.53
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.0195.73 ▼9.2945.72 ▲3.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • fcautocalc_plugin
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fc-auto-loan-calculator/fc-autoloan-calculator.php:99
    • > PHP Notice
      Undefined variable: date_mask in wp-content/plugins/fc-auto-loan-calculator/en/calculator.gui.php on line 4
    • > PHP Notice
      Undefined variable: brand_name in wp-content/plugins/fc-auto-loan-calculator/en/calculator.gui.php on line 20
    • > PHP Notice
      Undefined variable: currency in wp-content/plugins/fc-auto-loan-calculator/en/calculator.gui.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fc-auto-loan-calculator/en/calculator.gui.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

fc-auto-loan-calculator/fc-autoloan-calculator.php 85% from 13 tests

The entry point to "FC's Auto Loan Calculator" version 1.5.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fc-auto-loan-calculator.php" instead of "fc-autoloan-calculator.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 224 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin15,658 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PO File142,1872,5266,338
JSON14003,150
JavaScript106149002,612
CSS84361402,400
PHP22871951,155
SVG1003

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions6
▷ Named functions6100.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
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
fc-auto-loan-calculator-options.png108.34KB36.76KB▼ 66.07%