10% speedy-loan-calculator

Code Review | Speedy Loan Calculator

WordPress plugin Speedy Loan Calculator scored 10% from 54 tests.

About plugin

  • Plugin page: speedy-loan-calcu...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Aug 10, 2015
  • Latest release: Jul 3, 2017
  • Number of updates: 13
  • Update frequency: every 53.6 days
  • Top authors: gavinr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,884 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/speedy-loan-calculator/plugin.php+258
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.72ms] Passed 4 tests

Server-side resources used by Speedy Loan Calculator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.434.08 ▼35.89
Dashboard /wp-admin2.05 ▼1.264.62 ▼43.15
Posts /wp-admin/edit.php2.05 ▼1.316.18 ▼36.91
Add New Post /wp-admin/post-new.php2.05 ▼3.844.96 ▼94.94
Media Library /wp-admin/upload.php2.05 ▼1.186.86 ▼23.62

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_loan-calculator
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Speedy Loan Calculator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲15714.06 ▼0.676.38 ▲3.8141.50 ▼13.85
Dashboard /wp-admin2,210 ▲224.84 ▼1.06120.48 ▲4.8248.23 ▲0.50
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0336.14 ▲0.8432.11 ▼5.48
Add New Post /wp-admin/post-new.php1,519 ▼1423.30 ▲0.25727.16 ▲28.7179.91 ▲18.69
Media Library /wp-admin/upload.php1,392 ▲14.21 ▼0.03116.21 ▲17.3947.26 ▲1.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/speedy-loan-calculator/plugin.php+258
    Function create_function() is deprecated
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_loan-calculator
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/speedy-loan-calculator/views/widget.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/speedy-loan-calculator/views/admin.php:3
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/speedy-loan-calculator/views/widget.php on line 1

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)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: calculator, car loan, auto

speedy-loan-calculator/plugin.php 92% from 13 tests

The main file in "Speedy Loan Calculator" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("speedy-loan-calculator.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,342 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31641341,140
PHP364108125
CSS110060
PO File10017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.23
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin