94% exchange-rates-today

Code Review | Exchange Rates Today

WordPress plugin Exchange Rates Today scored 94% from 54 tests.

About plugin

  • Plugin page: exchange-rates-today
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0.3
  • WordPress version: 5.9.2
  • First release: Dec 15, 2014
  • Latest release: Feb 11, 2019
  • Number of updates: 21
  • Update frequency: every 72.5 days
  • Top authors: Silver222 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active / 8,606 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼297.36ms] Passed 4 tests

An overview of server-side resources used by Exchange Rates Today
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.4257.34 ▲31.40
Dashboard /wp-admin3.44 ▲0.0436.35 ▲3.06
Posts /wp-admin/edit.php3.67 ▲0.0347.66 ▲8.89
Add New Post /wp-admin/post-new.php6.91 ▼0.0693.05 ▼1,202.06
Media Library /wp-admin/upload.php3.32 ▲0.0324.63 ▲0.68
Курс сегодня /wp-admin/admin.php?page=dynamic_price3.2923.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Exchange Rates Today
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,753 ▲3115.62 ▲0.435.68 ▼0.902.23 ▲0.24
Dashboard /wp-admin2,881 ▲276.12 ▼0.11116.68 ▼21.75159.25 ▼23.45
Posts /wp-admin/edit.php2,694 ▲33.36 ▲0.1265.78 ▲1.06144.30 ▼0.60
Add New Post /wp-admin/post-new.php1,668 ▲718.18 ▲1.87425.47 ▼16.07160.04 ▲1.59
Media Library /wp-admin/upload.php1,698 ▼05.52 ▲0.00141.28 ▼11.72195.54 ▼27.85
Курс сегодня /wp-admin/admin.php?page=dynamic_price1,0052.4157.49140.87

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exchange-rates-today/exchange-rates-today.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: price, woocommerce, exchange rates

exchange-rates-today/exchange-rates-today.php 92% from 13 tests

The entry point to "Exchange Rates Today" version 1.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 301 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121663

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin