84% fc-retirement-age-calculator

Code Review | FC's Retirement Age Calculator

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

About plugin

  • Plugin page: fc-retirement-age...
  • 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 12, 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

2 reviews

Install metrics

300+ active /6,587 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼7.52ms] Passed 4 tests

An overview of server-side resources used by FC's Retirement Age Calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1741.40 ▲1.56
Dashboard /wp-admin3.47 ▲0.1746.21 ▼2.02
Posts /wp-admin/edit.php3.52 ▲0.1747.80 ▼4.49
Add New Post /wp-admin/post-new.php6.05 ▲0.1782.43 ▼23.75
Media Library /wp-admin/upload.php3.39 ▲0.1737.33 ▲0.19

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for FC's Retirement Age Calculator
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.57 ▼0.824.62 ▲3.0243.48 ▼2.49
Dashboard /wp-admin2,209 ▲275.92 ▲1.01104.69 ▲2.4136.22 ▼6.65
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0039.81 ▼2.4335.83 ▼0.76
Add New Post /wp-admin/post-new.php1,542 ▲718.25 ▼4.68628.40 ▲39.4065.16 ▲6.60
Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0695.14 ▼3.1942.48 ▼1.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • fcretireagecalc_plugin
    • db_upgraded
    • widget_recent-comments

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: currency in wp-content/plugins/fc-retirement-age-calculator/en/calculator.gui.php on line 3
    • > PHP Notice
      Undefined variable: date_mask in wp-content/plugins/fc-retirement-age-calculator/en/calculator.gui.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fc-retirement-age-calculator/en/calculator.gui.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fc-retirement-age-calculator/fc-retirement-age-calculator.php:100
    • > PHP Notice
      Undefined variable: brand_name in wp-content/plugins/fc-retirement-age-calculator/en/calculator.gui.php on line 20

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

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

The principal PHP file in "FC's Retirement Age Calculator" v. 1.5.4 is loaded by WordPress automatically on each request
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected13,968 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PO File141,9882,2685,193
JSON14003,108
JavaScript115839362,656
CSS63391211,873
PHP23241921,135
SVG1003

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
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
No PNG files were detected