84% rio-emi-calculator

Code Review | Rio EMI Calculator

WordPress plugin Rio EMI Calculator scored84%from 54 tests.

About plugin

  • Plugin page: rio-emi-calculator
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9+
  • WordPress version: 6.3.1
  • First release: May 18, 2019
  • Latest release: Nov 26, 2021
  • Number of updates: 11
  • Update frequency: every 83.9 days
  • Top authors: keerthanariosis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active /5,302 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Rio EMI Calculator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.20 ▲3.98
Dashboard /wp-admin3.34 ▼0.0148.39 ▼8.08
Posts /wp-admin/edit.php3.39 ▲0.0343.67 ▼6.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.87 ▼1.76
Media Library /wp-admin/upload.php3.27 ▲0.0336.94 ▲3.54

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Rio EMI Calculator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.35 ▼0.201.72 ▲0.0847.45 ▲3.35
Dashboard /wp-admin2,214 ▲375.59 ▲0.0196.46 ▲6.8241.19 ▲2.41
Posts /wp-admin/edit.php2,116 ▲162.03 ▲0.0535.61 ▼5.2334.36 ▼5.09
Add New Post /wp-admin/post-new.php1,542 ▲1423.17 ▼0.17654.33 ▼22.3260.57 ▲5.49
Media Library /wp-admin/upload.php1,413 ▲134.13 ▼0.05110.22 ▲14.1847.86 ▲4.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rio-emi-calculator/rio-plugin-options.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

rio-emi-calculator/rio-emi-calculator.php Passed 13 tests

The entry point to "Rio EMI Calculator" version 1.3.1 is a PHP file that has certain tags in its header comment area
38 characters long description:
A simple to use EMI Calculator widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected955 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3523367
CSS33121357
PHP21214231

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions7
▷ Named functions7100.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
There were not PNG files found in your plugin