84% fc-retirement-nest-egg-calculator

Code Review | FC's Retirement Nest Egg Calculator

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

About plugin

  • Plugin page: fc-retirement-nes...
  • 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: 39
  • Update frequency: every 58.7 days
  • Top authors: karl53 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,526 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.17MB] [CPU: ▼5.65ms] Passed 4 tests

Analyzing server-side resources used by FC's Retirement Nest Egg Calculator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1739.22 ▼3.26
Dashboard /wp-admin3.48 ▲0.1744.47 ▼5.75
Posts /wp-admin/edit.php3.53 ▲0.1747.69 ▼1.86
Add New Post /wp-admin/post-new.php6.06 ▲0.1781.35 ▼11.74
Media Library /wp-admin/upload.php3.40 ▲0.1735.68 ▲0.05

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
fcretirenesteggcalc_plugin
widget_theysaidso_widget
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by FC's Retirement Nest Egg Calculator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.14 ▼0.421.91 ▲0.1543.26 ▼1.75
Dashboard /wp-admin2,189 ▲95.54 ▼0.0683.89 ▼1.1037.96 ▼3.25
Posts /wp-admin/edit.php2,097 ▼32.12 ▲0.1736.15 ▼3.7031.91 ▼4.77
Add New Post /wp-admin/post-new.php1,526 ▼823.19 ▲4.93649.43 ▲33.5655.74 ▼15.81
Media Library /wp-admin/upload.php1,400 ▲64.20 ▼0.0194.25 ▼2.4445.22 ▲1.45

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • fcretirenesteggcalc_plugin
    • can_compress_scripts

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Notice
      Undefined variable: date_mask in wp-content/plugins/fc-retirement-nest-egg-calculator/en/calculator.gui.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fc-retirement-nest-egg-calculator/fc-retirement-nest-egg-calculator.php:100
    • > PHP Notice
      Undefined variable: currency in wp-content/plugins/fc-retirement-nest-egg-calculator/en/calculator.gui.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fc-retirement-nest-egg-calculator/en/calculator.gui.php:24
    • > PHP Notice
      Undefined variable: brand_name in wp-content/plugins/fc-retirement-nest-egg-calculator/en/calculator.gui.php on line 21

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Donate link: Invalid URI ("")
The official readme.txt might help

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

"FC's Retirement Nest Egg Calculator" version 1.5.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (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 detected13,764 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PO File141,9462,2545,138
JSON14003,024
JavaScript115759392,621
CSS63391211,873
PHP23212071,105
SVG1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin