10% convertor-valutar

Code Review | Convertor valutar

WordPress plugin Convertor valutar scored 10% from 54 tests.

About plugin

  • Plugin page: convertor-valutar
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.9.2
  • First release: Oct 30, 2012
  • Latest release: Jun 25, 2014
  • Number of updates: 7
  • Update frequency: every 86.9 days
  • Top authors: ioanaorhei (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,259 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/convertor-valutar/convertor_valutar.php+16
    Use of undefined constant CONV_TEXTDOMAIN - assumed 'CONV_TEXTDOMAIN' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼2.43MB] [CPU: ▼344.69ms] Passed 4 tests

An overview of server-side resources used by Convertor valutar
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.94 ▼1.584.57 ▼54.25
Dashboard /wp-admin1.96 ▼1.454.56 ▼29.89
Posts /wp-admin/edit.php1.96 ▼1.684.78 ▼33.11
Add New Post /wp-admin/post-new.php1.96 ▼5.025.00 ▼1,261.50
Media Library /wp-admin/upload.php1.96 ▼1.344.25 ▼20.66

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options
last_xml_timestamp

Browser metrics Passed 4 tests

A check of browser resources used by Convertor valutar
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1916.27 ▲0.526.01 ▼1.182.04 ▼0.10
Dashboard /wp-admin2,895 ▲376.14 ▼0.14120.10 ▼15.86154.69 ▼4.67
Posts /wp-admin/edit.php2,688 ▼63.24 ▲0.0163.36 ▲0.88140.28 ▼3.22
Add New Post /wp-admin/post-new.php1,711 ▲1519.32 ▼1.74450.67 ▼0.08158.06 ▲0.63
Media Library /wp-admin/upload.php1,698 ▼05.51 ▼0.04135.15 ▲0.87189.99 ▲4.97

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/convertor-valutar/convertor_valutar.php+16
    Use of undefined constant CONV_TEXTDOMAIN - assumed 'CONV_TEXTDOMAIN' (this will throw an Error in a future version of PHP)

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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/convertor-valutar/convertor_valutar.php:26
    • > PHP Warning
      Use of undefined constant CONV_TEXTDOMAIN - assumed 'CONV_TEXTDOMAIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/convertor-valutar/convertor_valutar.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Plugin contributors not specified
  • Donate link: Please fix this invalid url: ""
  • Contributors: There were no tags found
You can look at the official readme.txt

convertor-valutar/convertor_valutar.php 92% from 13 tests

The main PHP script in "Convertor valutar" version 1.3 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("convertor-valutar.php" instead of "convertor_valutar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin375 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25840235
PO File13710294
XML10046

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin