10% wp-rouble-rate

Code Review | WP Rouble Rate

WordPress plugin WP Rouble Rate scored 10% from 54 tests.

About plugin

  • Plugin page: wp-rouble-rate
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 5.8.1
  • First release: Mar 1, 2017
  • Latest release: Mar 3, 2017
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: hokku (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 325 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.75 ▼1.084.53 ▼23.11
Dashboard /wp-admin1.77 ▼1.296.30 ▼36.03
Posts /wp-admin/edit.php1.77 ▼1.345.03 ▼39.01
Add New Post /wp-admin/post-new.php1.77 ▼3.665.08 ▼641.13
Media Library /wp-admin/upload.php1.77 ▼1.235.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,743 ▲14715.75 ▼0.158.91 ▲0.1348.20 ▼0.07
Dashboard /wp-admin2,993 ▲595.87 ▼0.07132.76 ▼8.25114.25 ▲9.86
Posts /wp-admin/edit.php2,759 ▲232.70 ▲0.0159.98 ▼7.3778.13 ▼9.12
Add New Post /wp-admin/post-new.php1,701 ▲2918.70 ▼0.19368.13 ▲0.65106.31 ▼8.87
Media Library /wp-admin/upload.php1,845 ▲355.00 ▼0.00146.66 ▼5.55111.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:
LanguageFilesBlank linesComment linesLines of code
PHP291053

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 code0.16
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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