Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/wp-rouble-rate/wp-rouble-rate.php+12
Use of undefined constant WPRR - assumed 'WPRR' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.88MB] [CPU: ▼184.82ms] Passed 4 tests
An overview of server-side resources used by WP Rouble Rate
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.75 ▼1.08 | 4.53 ▼23.11 |
Dashboard /wp-admin | 1.77 ▼1.29 | 6.30 ▼36.03 |
Posts /wp-admin/edit.php | 1.77 ▼1.34 | 5.03 ▼39.01 |
Add New Post /wp-admin/post-new.php | 1.77 ▼3.66 | 5.08 ▼641.13 |
Media Library /wp-admin/upload.php | 1.77 ▼1.23 | 5.68 ▼21.04 |
Server storage [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options |
---|
_wprr_rate |
Browser metrics Passed 4 tests
WP Rouble Rate: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,743 ▲147 | 15.75 ▼0.15 | 8.91 ▲0.13 | 48.20 ▼0.07 |
Dashboard /wp-admin | 2,993 ▲59 | 5.87 ▼0.07 | 132.76 ▼8.25 | 114.25 ▲9.86 |
Posts /wp-admin/edit.php | 2,759 ▲23 | 2.70 ▲0.01 | 59.98 ▼7.37 | 78.13 ▼9.12 |
Add New Post /wp-admin/post-new.php | 1,701 ▲29 | 18.70 ▼0.19 | 368.13 ▲0.65 | 106.31 ▼8.87 |
Media Library /wp-admin/upload.php | 1,845 ▲35 | 5.00 ▼0.00 | 146.66 ▼5.55 | 111.99 ▼5.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/wp-rouble-rate/wp-rouble-rate.php+12
Use of undefined constant WPRR - assumed 'WPRR' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 1 option in the database
- _wprr_rate
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
No output text or server-side errors detected on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: exchange rouble, rouble rating, rouble rate, rouble exchanging
wp-rouble-rate/wp-rouble-rate.php Passed 13 tests
"WP Rouble Rate" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
112 characters long description:
Плагин получает курс рубля ко всем доступным валютам в ЦБР РФ
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected53 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 9 | 10 | 53 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin