89% currency-converter-for-woocommerce-paypal-standard

Code Review | Currency Converter For WooCommerce PayPal Standard

WordPress plugin Currency Converter For WooCommerce PayPal Standard scored89%from 54 tests.

About plugin

  • Plugin page: currency-converte...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 25, 2017
  • Latest release: Dec 25, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: darioursulin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,697 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.01MB] [CPU: ▼5.95ms] Passed 4 tests

A check of server-side resources used by Currency Converter For WooCommerce PayPal Standard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.89 ▼0.71
Dashboard /wp-admin3.32 ▲0.0249.06 ▼5.45
Posts /wp-admin/edit.php3.37 ▲0.0145.97 ▼8.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.34 ▼8.86
Media Library /wp-admin/upload.php3.24 ▲0.0138.33 ▲1.72

Server storage [IO: ▲0.02MB] [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: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Currency Converter For WooCommerce PayPal Standard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.34 ▼0.011.90 ▲0.2944.74 ▲6.64
Dashboard /wp-admin2,192 ▲155.63 ▲0.1289.12 ▼1.3840.64 ▲0.07
Posts /wp-admin/edit.php2,100 ▼31.98 ▲0.0234.34 ▼7.7737.16 ▲0.13
Add New Post /wp-admin/post-new.php1,526 ▼023.17 ▼0.33713.27 ▲14.2253.19 ▼0.18
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0297.35 ▼5.2941.29 ▼1.07

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

currency-converter-for-woocommerce-paypal-standard/currency-converter-for-woocommerce-paypal-standard.php 85% from 13 tests

The principal PHP file in "Currency Converter For WooCommerce PayPal Standard" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 224 characters long)
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "4.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin305 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46194305

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin