83% debt-reduction-calculator-debt-relief-program-calculator-all-in-one

Code Review | Debt Reduction Calculator + Debt Relief Program Calculator All-In-One

WordPress plugin Debt Reduction Calculator + Debt Relief Program Calculator All-In-One scored83%from 54 tests.

About plugin

  • Plugin page: debt-reduction-ca...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.7
  • WordPress version: 6.3.1
  • First release: Nov 29, 2013
  • Latest release: Dec 9, 2016
  • Number of updates: 29
  • Update frequency: every 38.2 days
  • Top authors: pauljpaquin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /2,473 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.40ms] Passed 4 tests

This is a short check of server-side resources used by Debt Reduction Calculator + Debt Relief Program Calculator All-In-One
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.30 ▼6.53
Dashboard /wp-admin3.34 ▼0.0145.30 ▼11.01
Posts /wp-admin/edit.php3.39 ▲0.0347.73 ▼2.95
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.59 ▼1.12
Media Library /wp-admin/upload.php3.26 ▲0.0335.18 ▼0.83
Debt Reduction Calculator /wp-admin/options-general.php?page=debt-reduction-calculator-debt-relief-program-calculator-all-in-one/wc_credit_card_payoff_calculator.php3.2328.28

Server storage [IO: ▲0.38MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Debt Reduction Calculator + Debt Relief Program Calculator All-In-One
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲17914.23 ▼0.157.33 ▲5.5939.88 ▼3.87
Dashboard /wp-admin2,210 ▲255.90 ▲0.04111.03 ▲7.0644.09 ▼1.35
Posts /wp-admin/edit.php2,093 ▲11.99 ▼0.0740.10 ▼3.6335.41 ▼4.10
Add New Post /wp-admin/post-new.php1,523 ▲923.24 ▲5.77651.91 ▼35.8356.16 ▼7.26
Media Library /wp-admin/upload.php1,395 ▲44.22 ▼0.0296.33 ▼3.6239.82 ▼4.01
Debt Reduction Calculator /wp-admin/options-general.php?page=debt-reduction-calculator-debt-relief-program-calculator-all-in-one/wc_credit_card_payoff_calculator.php7812.0125.1725.94

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/debt-reduction-calculator-debt-relief-program-calculator-all-in-one/wc_credit_card_payoff_calculator.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debt-reduction-calculator-debt-relief-program-calculator-all-in-one/wc_credit_card_payoff_calculator.php:49

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Here's a screenshot of it in action), #2 (Result in table), #3 (Result in Graphs)
Please take inspiration from this readme.txt

debt-reduction-calculator-debt-relief-program-calculator-all-in-one/wc_credit_card_payoff_calculator.php 85% from 13 tests

Analyzing the main PHP file in "Debt Reduction Calculator + Debt Relief Program Calculator All-In-One" version 2.1
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 312 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("debt-reduction-calculator-debt-relief-program-calculator-all-in-one.php" instead of "wc_credit_card_payoff_calculator.php")

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
Good job! No executable or dangerous file extensions detected408 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript72415179
PHP11926115
CSS101114

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png26.02KB9.63KB▼ 63.01%
images/main_banner.png72.65KB25.48KB▼ 64.92%
screenshot-1.png32.70KB12.88KB▼ 60.59%
screenshot-3.png16.73KB7.23KB▼ 56.79%
images/calculate.png9.69KB2.94KB▼ 69.67%