84% fc-retirement-savings-calculator

Code Review | FC's Retirement Savings Calculator

WordPress plugin FC's Retirement Savings Calculator scored84%from 54 tests.

About plugin

  • Plugin page: fc-retirement-sav...
  • 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 19, 2016
  • Latest release: Mar 31, 2023
  • Number of updates: 43
  • Update frequency: every 53.3 days
  • Top authors: karl53 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /7,416 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.13ms] Passed 4 tests

Analyzing server-side resources used by FC's Retirement Savings Calculator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.63 ▼2.16
Dashboard /wp-admin3.31 ▼0.0347.92 ▼19.14
Posts /wp-admin/edit.php3.36 ▲0.0148.26 ▼1.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.38 ▼21.86
Media Library /wp-admin/upload.php3.23 ▲0.0039.97 ▲1.61

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
fcretiresavingscalc_plugin
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for FC's Retirement Savings Calculator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.38 ▲0.002.16 ▲0.3446.15 ▲2.36
Dashboard /wp-admin2,195 ▲155.65 ▲0.0396.08 ▲10.2740.64 ▼3.89
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0436.14 ▼1.5637.44 ▲3.94
Add New Post /wp-admin/post-new.php1,540 ▲1421.14 ▲3.53685.88 ▲13.1746.95 ▼9.72
Media Library /wp-admin/upload.php1,403 ▼04.20 ▼0.0299.06 ▲2.3244.60 ▼0.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • fcretiresavingscalc_plugin
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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)
Good news, no errors were detected

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
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: date_mask in wp-content/plugins/fc-retirement-savings-calculator/en/calculator.gui.php on line 4
    • > PHP Notice
      Undefined variable: brand_name in wp-content/plugins/fc-retirement-savings-calculator/en/calculator.gui.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fc-retirement-savings-calculator/fc-retirement-savings-calculator.php:101
    • > PHP Notice
      Undefined variable: currency in wp-content/plugins/fc-retirement-savings-calculator/en/calculator.gui.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fc-retirement-savings-calculator/en/calculator.gui.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

fc-retirement-savings-calculator/fc-retirement-savings-calculator.php 92% from 13 tests

The main file in "FC's Retirement Savings Calculator" v. 1.5.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 223 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected14,201 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PO File142,0302,3385,338
JSON14003,192
JavaScript115919362,664
CSS63391211,873
PHP23252031,131
SVG1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin