84% currency-calculate

Code Review | Kripto Para Dönüştürücü ve Döviz Hesaplama

WordPress plugin Kripto Para Dönüştürücü ve Döviz Hesaplama scored 84% from 54 tests.

About plugin

  • Plugin page: currency-calculate
  • Plugin version: 2.6.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 11, 2018
  • Latest release: Apr 3, 2018
  • Number of updates: 20
  • Update frequency: every 2.6 days
  • Top authors: currencycalculate (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 3,681 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Kripto Para Dönüştürücü ve Döviz Hesaplama
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.37 ▼3.56
Dashboard /wp-admin3.31 ▲0.0144.96 ▼2.42
Posts /wp-admin/edit.php3.36 ▲0.0140.40 ▼3.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.84 ▼0.00
Media Library /wp-admin/upload.php3.24 ▲0.0135.10 ▼0.68

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Kripto Para Dönüştürücü ve Döviz Hesaplama
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.34 ▼1.041.76 ▼0.1944.88 ▼5.60
Dashboard /wp-admin2,203 ▲155.83 ▲0.9695.19 ▼11.4637.20 ▼7.96
Posts /wp-admin/edit.php2,071 ▼152.06 ▲0.0237.06 ▲1.2634.82 ▲3.24
Add New Post /wp-admin/post-new.php1,534 ▲123.41 ▼0.01633.45 ▼92.4451.04 ▼4.03
Media Library /wp-admin/upload.php1,388 ▼04.29 ▲0.0395.98 ▼10.1941.70 ▼7.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_currencycalculate
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/currency-calculate/widget.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt is a good inspiration

currency-calculate/currency-calculate.php Passed 13 tests

"Kripto Para Dönüştürücü ve Döviz Hesaplama" version 2.6.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Crypto Currency Calculator and Converter Widget

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
There were no executable files found in this plugin2,136 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown11201,734
PHP21611402

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity8.25
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
favicon.png3.88KB1.13KB▼ 70.86%