83% webites-currency

Code Review | Euro Currency

WordPress plugin Euro Currency scored 83% from 54 tests.

About plugin

  • Plugin page: webites-currency
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 3, 2021
  • Latest release: Jul 21, 2021
  • Number of updates: 16
  • Update frequency: every 1.2 days
  • Top authors: lgolabek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 417 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.40ms] Passed 4 tests

Analyzing server-side resources used by Euro Currency
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.42 ▼0.82
Dashboard /wp-admin3.36 ▲0.0545.62 ▼3.97
Posts /wp-admin/edit.php3.47 ▲0.1144.78 ▼1.70
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.85 ▼11.12
Media Library /wp-admin/upload.php3.28 ▲0.0537.62 ▲1.68

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Euro Currency
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5713.17 ▼1.211.65 ▼0.4043.71 ▲5.74
Dashboard /wp-admin2,221 ▲295.76 ▲0.83100.39 ▼8.2339.44 ▼4.30
Posts /wp-admin/edit.php2,098 ▲92.00 ▲0.0136.96 ▲2.1033.04 ▲1.11
Add New Post /wp-admin/post-new.php1,529 ▲1023.33 ▲0.59666.19 ▼20.2854.98 ▼1.40
Media Library /wp-admin/upload.php1,394 ▲64.20 ▼0.05100.15 ▼18.3644.67 ▼1.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webites-currency/includes/webites-currency-options.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webites-currency/includes/webites-currency-options.php:65

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === webites-currency === )
  • Screenshots: Please add an image for screenshot #1 (Display on Pierogi Theme)
The official readme.txt might help

webites-currency/webites-currency.php 92% from 13 tests

The main PHP file in "Euro Currency" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

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
Everything looks great! No dangerous files found in this plugin506 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP314420459
CSS17047

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin