89% dynamic-currency-converter

Code Review | Dynamic Currency Converter

WordPress plugin Dynamic Currency Converter scored89%from 54 tests.

About plugin

  • Plugin page: dynamic-currency-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Apr 1, 2016
  • Latest release: Sep 1, 2018
  • Number of updates: 15
  • Update frequency: every 58.9 days
  • Top authors: raoabid491 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,686 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by Dynamic Currency Converter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.48 ▲1.78
Dashboard /wp-admin3.32 ▼0.0244.02 ▼24.57
Posts /wp-admin/edit.php3.37 ▲0.0244.42 ▼3.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0284.69 ▼9.76
Media Library /wp-admin/upload.php3.25 ▲0.0237.82 ▲5.53
Dynamic Currency Converter /wp-admin/options-general.php?page=dyccmenu3.2134.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
dycc_woocommerceCheck
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
dycc_scriptcode

Browser metrics Passed 4 tests

An overview of browser requirements for Dynamic Currency Converter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.22 ▼0.051.83 ▲0.0449.61 ▲11.35
Dashboard /wp-admin2,202 ▲285.62 ▲0.0184.71 ▼22.8040.33 ▼3.34
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0136.77 ▼0.7130.67 ▼1.42
Add New Post /wp-admin/post-new.php1,538 ▲1218.04 ▼5.21636.15 ▲14.0259.95 ▲2.34
Media Library /wp-admin/upload.php1,404 ▲104.16 ▼0.16101.02 ▼3.9041.76 ▲0.17
Dynamic Currency Converter /wp-admin/options-general.php?page=dyccmenu8631.9927.4826.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • dycc_woocommerceCheck
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • dycc_scriptcode
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Live Demo of the Dynamic Currency Converter)
You can take inspiration from this readme.txt

dynamic-currency-converter/dynamicCurrencyConverter.php 85% from 13 tests

"Dynamic Currency Converter" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dynamic-currency-converter.php" instead of "dynamicCurrencyConverter.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)

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 plugin122 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1335195
JavaScript15227

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin