80% oversimplified-currency-converter

Code Review | Oversimplified Currency Converter

WordPress plugin Oversimplified Currency Converter scored80%from 54 tests.

About plugin

  • Plugin page: oversimplified-cu...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Nov 16, 2021
  • Latest release: Nov 16, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: luislohse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /255 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.97ms] Passed 4 tests

A check of server-side resources used by Oversimplified Currency Converter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.12 ▼33.52
Dashboard /wp-admin2.05 ▼1.265.37 ▼46.34
Posts /wp-admin/edit.php2.05 ▼1.315.91 ▼42.55
Add New Post /wp-admin/post-new.php2.05 ▼3.845.28 ▼93.47
Media Library /wp-admin/upload.php2.05 ▼1.185.77 ▼28.32

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Oversimplified Currency Converter: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.28 ▼0.132.12 ▲0.4239.10 ▼6.48
Dashboard /wp-admin2,196 ▲215.61 ▼0.0384.67 ▼17.5538.26 ▼2.11
Posts /wp-admin/edit.php2,104 ▲12.02 ▲0.0440.94 ▼1.4035.77 ▼2.80
Add New Post /wp-admin/post-new.php1,532 ▲423.05 ▲0.03669.79 ▲32.4756.01 ▲6.44
Media Library /wp-admin/upload.php1,407 ▲134.15 ▼0.1895.87 ▼1.7345.99 ▲2.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the oversimplified_currency_converter handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: currency converter, currency, converter

oversimplified-currency-converter/OversimplifiedCurrencyConverter.php 92% from 13 tests

"Oversimplified Currency Converter" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("oversimplified-currency-converter.php" instead of "OversimplifiedCurrencyConverter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin104 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113055
PHP110726
CSS13023

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/conversion_symbol.png42.33KB8.79KB▼ 79.24%