Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼139.50ms] Passed 4 tests
Analyzing server-side resources used by Курс валют UAH
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 36.80 ▲16.13 |
Dashboard /wp-admin | 3.20 ▲0.14 | 44.13 ▲0.36 |
Posts /wp-admin/edit.php | 3.25 ▲0.14 | 47.92 ▲4.39 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 86.84 ▼561.96 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 33.29 ▼0.78 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Курс валют UAH
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,845 ▲249 | 17.08 ▲1.18 | 17.44 ▲7.22 | 50.71 ▲4.33 |
Dashboard /wp-admin | 3,011 ▲77 | 7.20 ▲1.23 | 141.28 ▼2.91 | 117.75 ▲5.62 |
Posts /wp-admin/edit.php | 2,777 ▲38 | 2.75 ▲0.06 | 81.38 ▲18.80 | 92.18 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,899 ▲227 | 19.39 ▲0.46 | 393.30 ▲25.68 | 128.67 ▲18.72 |
Media Library /wp-admin/upload.php | 1,848 ▲38 | 5.54 ▲0.51 | 157.79 ▲9.60 | 114.06 ▼2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ukrainian-currency/includes/admin/views/main-page.php
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please add at least on tag
ukrainian-currency/exchange-rate-yan.php 92% from 13 tests
The main PHP script in "Курс валют UAH" version 2.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ukrainian-currency.php" instead of "exchange-rate-yan.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
Everything looks great! No dangerous files found in this plugin3,436 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 0 | 17 | 2,228 |
SVG | 1 | 0 | 0 | 685 |
PHP | 23 | 369 | 318 | 478 |
PO File | 1 | 8 | 8 | 33 |
JavaScript | 8 | 3 | 7 | 10 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 1.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 1 | 5.56% |
▷ Concrete classes | 17 | 94.44% |
▷ Final classes | 1 | 5.88% |
Methods | 47 | |
▷ Static methods | 13 | 27.66% |
▷ Public methods | 47 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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