89% indian-currency-inr-symbol-for-woocommerce

Code Review | Indian Currency Rupee Symbol for Woocommerce

WordPress plugin Indian Currency Rupee Symbol for Woocommerce scored89%from 54 tests.

About plugin

  • Plugin page: indian-currency-i...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.0.3
  • WordPress version: 6.3.1
  • First release: May 13, 2016
  • Latest release: Jan 19, 2019
  • Number of updates: 15
  • Update frequency: every 65.5 days
  • Top authors: webtechstreet (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

300+ active /9,093 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.83ms] Passed 4 tests

This is a short check of server-side resources used by Indian Currency Rupee Symbol for Woocommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.97 ▼6.01
Dashboard /wp-admin3.31 ▲0.0147.91 ▼2.67
Posts /wp-admin/edit.php3.36 ▲0.0148.79 ▼0.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.00 ▼22.56
Media Library /wp-admin/upload.php3.23 ▲0.0136.61 ▲4.43

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Indian Currency Rupee Symbol for Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.25 ▼1.121.75 ▼0.2342.96 ▼4.43
Dashboard /wp-admin2,213 ▲224.85 ▼0.03101.99 ▼15.1539.34 ▼8.14
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0134.72 ▼2.9136.31 ▲2.71
Add New Post /wp-admin/post-new.php1,518 ▼1517.61 ▼5.59674.55 ▲2.1356.42 ▲5.72
Media Library /wp-admin/upload.php1,392 ▲104.26 ▲0.0596.27 ▼0.9742.91 ▲0.85

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: currency, woocommerce, fontawesome, inr symbol, indian currency

indian-currency-inr-symbol-for-woocommerce/inr-currency-symbol-woocommerce.php 77% from 13 tests

"Indian Currency Rupee Symbol for Woocommerce" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("indian-currency-inr-symbol-for-woocommerce.php" instead of "inr-currency-symbol-woocommerce.php")
  • Domain Path: The domain path folder was not found ("/languages/")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP192118

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.33
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%
Functions3
▷ Named functions3100.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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png4.96KB2.31KB▼ 53.38%
assets/screenshot-1.png68.17KB26.10KB▼ 61.71%