84% doviz-cevirici-widget

Code Review | TRY Currency Converter Widget

WordPress plugin TRY Currency Converter Widget scored84%from 54 tests.

About plugin

  • Plugin page: doviz-cevirici-wi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Mar 16, 2020
  • Latest release: Mar 16, 2020
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: cemaligencer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by TRY Currency Converter Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0235.98 ▼3.25
Dashboard /wp-admin3.33 ▼0.0249.35 ▼17.62
Posts /wp-admin/edit.php3.38 ▲0.0248.80 ▲1.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0297.07 ▼6.27
Media Library /wp-admin/upload.php3.25 ▲0.0238.19 ▲0.74

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for TRY Currency Converter Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.20 ▲0.011.93 ▲0.1743.18 ▲1.23
Dashboard /wp-admin2,195 ▲155.65 ▼0.0192.63 ▲0.5843.45 ▼3.13
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0739.45 ▲1.4336.00 ▼2.65
Add New Post /wp-admin/post-new.php1,526 ▼223.63 ▲0.50623.50 ▼49.2863.64 ▲11.13
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.05102.14 ▼10.0445.37 ▼3.36

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_try_doviz_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 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/doviz-cevirici-widget/try-currency-converter-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: currency switcher, widget, try currency converter widget, try to usd, try to eur

doviz-cevirici-widget/try-currency-converter-widget.php 92% from 13 tests

The entry point to "TRY Currency Converter Widget" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("doviz-cevirici-widget.php" instead of "try-currency-converter-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected117 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12641117

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.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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
There were not PNG files found in your plugin