84% serbian-dinar-exchange-rates

Code Review | Serbian Dinar Exchange Rates

WordPress plugin Serbian Dinar Exchange Rates scored84%from 54 tests.

About plugin

  • Plugin page: serbian-dinar-exc...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 15, 2015
  • Latest release: May 29, 2022
  • Number of updates: 8
  • Update frequency: every 294.6 days
  • Top authors: cicophoto (62.5%)artcreativeme (50%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Serbian Dinar Exchange Rates
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.97 ▼1.89
Dashboard /wp-admin3.32 ▲0.0149.56 ▼1.72
Posts /wp-admin/edit.php3.37 ▲0.0151.58 ▲0.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.84 ▼0.22
Media Library /wp-admin/upload.php3.24 ▲0.0137.89 ▲1.74

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_kursna_lista_box
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Serbian Dinar Exchange Rates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.35 ▲0.072.06 ▼0.6244.49 ▲1.36
Dashboard /wp-admin2,195 ▲155.62 ▼0.0591.10 ▲1.9343.87 ▲1.15
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0139.58 ▲1.4536.72 ▲1.68
Add New Post /wp-admin/post-new.php1,534 ▲818.02 ▼5.09639.37 ▼43.1466.44 ▲12.47
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.0995.00 ▼18.3340.60 ▼5.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_kursna_lista_box
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • 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)
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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/serbian-dinar-exchange-rates/serbian-dinar-exchange-rates.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Serbian Dinar Exchange Rates Back-end), #2 (Serbian Dinar Exchange Rates Front-end)
The official readme.txt is a good inspiration

serbian-dinar-exchange-rates/serbian-dinar-exchange-rates.php Passed 13 tests

The main PHP file in "Serbian Dinar Exchange Rates" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
136 characters long description:
"Serbian Dinar Exchange Rates" is a widget that gives the users from Serbia a possibility to see changes in rates of foreign currencies.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin170 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11518126
PO File1142144

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity7.75
▷ Minimum method complexity1.00
▷ Maximum method complexity18.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%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png15.04KB6.19KB▼ 58.87%
screenshot-2.png12.75KB5.46KB▼ 57.16%