84% konvertiraj-me

Code Review | konvertiraj.me

WordPress plugin konvertiraj.me scored84%from 54 tests.

About plugin

  • Plugin page: konvertiraj-me
  • Plugin version: 2.0.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2022
  • Latest release: Jan 3, 2023
  • Number of updates: 32
  • Update frequency: every 8.5 days
  • Top authors: infoofir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,338 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.52ms] Passed 4 tests

An overview of server-side resources used by konvertiraj.me
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.28 ▲5.16
Dashboard /wp-admin3.31 ▼0.0344.52 ▼14.15
Posts /wp-admin/edit.php3.36 ▲0.0142.40 ▼7.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.43 ▼18.59
Media Library /wp-admin/upload.php3.24 ▲0.0133.72 ▲2.13

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by konvertiraj.me
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.19 ▼0.531.67 ▲0.0548.35 ▲9.06
Dashboard /wp-admin2,195 ▲145.51 ▼0.1985.18 ▼17.9638.72 ▼1.92
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0133.78 ▼7.2534.50 ▼4.20
Add New Post /wp-admin/post-new.php1,528 ▼723.10 ▲4.84656.78 ▲21.9657.60 ▼17.57
Media Library /wp-admin/upload.php1,397 ▲34.18 ▼0.1193.33 ▼8.8943.39 ▼1.37

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/konvertiraj-me/woocommerce-hrk-eur.php:25

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 93% 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
3 plugin tags: currency, woocommerce, converter

konvertiraj-me/woocommerce-hrk-eur.php 85% from 13 tests

The main PHP file in "konvertiraj.me" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("konvertiraj-me.php" instead of "woocommerce-hrk-eur.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.2" instead of "5.9.0")

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 detected232 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13819175
PO File1141457

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions13
▷ Named functions13100.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
PNG images were not found in this plugin