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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.94 ▼1.58 | 4.57 ▼54.25 |
Dashboard /wp-admin | 1.96 ▼1.45 | 4.56 ▼29.89 |
Posts /wp-admin/edit.php | 1.96 ▼1.68 | 4.78 ▼33.11 |
Add New Post /wp-admin/post-new.php | 1.96 ▼5.02 | 5.00 ▼1,261.50 |
Media Library /wp-admin/upload.php | 1.96 ▼1.34 | 4.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲19 | 16.27 ▲0.52 | 6.01 ▼1.18 | 2.04 ▼0.10 |
Dashboard /wp-admin | 2,895 ▲37 | 6.14 ▼0.14 | 120.10 ▼15.86 | 154.69 ▼4.67 |
Posts /wp-admin/edit.php | 2,688 ▼6 | 3.24 ▲0.01 | 63.36 ▲0.88 | 140.28 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,711 ▲15 | 19.32 ▼1.74 | 450.67 ▼0.08 | 158.06 ▲0.63 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.51 ▼0.04 | 135.15 ▲0.87 | 189.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 58 | 40 | 235 |
PO File | 1 | 37 | 102 | 94 |
XML | 1 | 0 | 0 | 46 |
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 code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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