84% emi-calculator

Code Review | EMI Calculator

WordPress plugin EMI Calculator scored84%from 54 tests.

About plugin

  • Plugin page: emi-calculator
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.2
  • WordPress version: 6.3.1
  • First release: Aug 8, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 5
  • Update frequency: every 76.6 days
  • Top authors: mgplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,092 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 gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.72ms] Passed 4 tests

This is a short check of server-side resources used by EMI Calculator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1343.06 ▲2.14
Dashboard /wp-admin3.41 ▲0.1051.72 ▲0.72
Posts /wp-admin/edit.php3.46 ▲0.1047.95 ▲1.14
Add New Post /wp-admin/post-new.php6.01 ▲0.1283.61 ▼18.17
Media Library /wp-admin/upload.php3.33 ▲0.1036.77 ▲1.42

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

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

Browser metrics Passed 4 tests

EMI Calculator: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲21414.37 ▼0.2414.48 ▲12.7342.37 ▼1.93
Dashboard /wp-admin2,244 ▲565.13 ▲0.26117.05 ▼0.2143.33 ▼0.54
Posts /wp-admin/edit.php2,132 ▲402.35 ▲0.2936.20 ▼3.9432.00 ▼4.71
Add New Post /wp-admin/post-new.php1,545 ▲1223.39 ▲0.19642.67 ▼38.4535.38 ▼26.82
Media Library /wp-admin/upload.php1,426 ▲384.43 ▲0.1995.32 ▼13.2342.19 ▼5.94

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 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/emi-calculator/inc/emi-fronted.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emi-calculator/inc/emi-backend.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/emi-calculator/emi-calculator.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Attributes that require attention:
  • Contributors: Plugin contributors not specified
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in emi-calculator/assets to your readme.txt
You can look at the official readme.txt

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

"EMI Calculator" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
48 characters long description:
This plugin allows you to Create EMI Calculator.

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
Success! There were no dangerous files found in this plugin1,412 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript592257654
PHP32216480
CSS339278

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin