83% simple-currency-exchange-converter

Code Review | Wordpress Simple Currency Exchange Converter

WordPress plugin Wordpress Simple Currency Exchange Converter scored 83% from 54 tests.

About plugin

  • Plugin page: simple-currency-e...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 19, 2012
  • Latest release: Sep 20, 2012
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: tyggis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 3,366 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: ▼3.23ms] Passed 4 tests

Server-side resources used by Wordpress Simple Currency Exchange Converter
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.38 ▼6.91
Dashboard /wp-admin3.31 ▲0.0144.82 ▼4.61
Posts /wp-admin/edit.php3.36 ▲0.0146.04 ▼1.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.99 ▲0.02
Media Library /wp-admin/upload.php3.23 ▲0.0033.56 ▲0.66

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wordpress Simple Currency Exchange Converter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲13913.93 ▼0.685.30 ▲3.5045.36 ▲2.11
Dashboard /wp-admin2,203 ▲155.85 ▼0.02100.97 ▼3.5537.71 ▼4.95
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0340.05 ▲0.5434.47 ▼1.21
Add New Post /wp-admin/post-new.php1,520 ▼1323.28 ▼0.01591.27 ▼2.0047.06 ▼6.22
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.0894.17 ▼2.9040.25 ▼0.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-currency-exchange-converter/vkalkulator.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-currency-exchange-converter/shortcodes/shortcodes.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Plugin Name: You should set the name of your plugin on the first line ( === simple-currency-exchange-converter === )
  • Screenshots: Screenshot #1 (This is how it looks...) image not found
Please take inspiration from this readme.txt

simple-currency-exchange-converter/vkalkulator.php 92% from 13 tests

This is the main PHP file of "Wordpress Simple Currency Exchange Converter" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-currency-exchange-converter.php" instead of "vkalkulator.php")

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 plugin233 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript150155
PHP228860
CSS13018

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin