73% exchange-paypal-to-satoshi

Code Review | Exchange PayPal to Satoshi

WordPress plugin Exchange PayPal to Satoshi scored73%from 54 tests.

About plugin

  • Plugin page: exchange-paypal-t...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0-5.5
  • WordPress version: 6.3.1
  • First release: Jul 12, 2020
  • Latest release: Sep 9, 2020
  • Number of updates: 8
  • Update frequency: every 7.6 days
  • Top authors: trof (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼5.41ms] Passed 4 tests

An overview of server-side resources used by Exchange PayPal to Satoshi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2447.31 ▲8.74
Dashboard /wp-admin3.54 ▲0.2052.66 ▼14.42
Posts /wp-admin/edit.php3.65 ▲0.3053.76 ▲2.02
Add New Post /wp-admin/post-new.php6.12 ▲0.2486.80 ▼17.44
Media Library /wp-admin/upload.php3.46 ▲0.2442.56 ▲8.19
Exchange PayPal to Satoshi /wp-admin/options-general.php?page=exchange-paypal-to-satoshi3.44213.29

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 10 new options
New tables
wp_s2d_PayPalSatoshiExchange
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
ppse_exchange_processor_url
ppse_official_rate_checked
ppse_official_rate
ppse_official_rate_check_errors

Browser metrics Passed 4 tests

An overview of browser requirements for Exchange PayPal to Satoshi
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.74 ▲0.261.79 ▲0.1644.33 ▲0.68
Dashboard /wp-admin2,222 ▲185.81 ▼0.10103.92 ▼0.4641.22 ▼2.30
Posts /wp-admin/edit.php2,107 ▲72.06 ▲0.0339.17 ▼1.8637.20 ▼1.48
Add New Post /wp-admin/post-new.php1,548 ▲523.36 ▲0.17667.54 ▲6.6057.69 ▼8.36
Media Library /wp-admin/upload.php1,407 ▲44.28 ▲0.0299.79 ▼6.8043.12 ▼4.10
Exchange PayPal to Satoshi /wp-admin/options-general.php?page=exchange-paypal-to-satoshi2,1042.2943.0376.89

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • ppse_official_rate_checked
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • ppse_official_rate
    • db_upgraded
    • ppse_official_rate_check_errors
    • can_compress_scripts
    • widget_recent-comments
    • ppse_exchange_processor_url

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=exchange-paypal-to-satoshi
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/exchange-paypal-to-satoshi/exchange-paypal-to-satoshi.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=exchange-paypal-to-satoshi
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=exchange-paypal-to-satoshi 139:332 Uncaught ReferenceError: PPSE1990F_show_wait is not defined

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (**Exchange From** - Front-end), #2 (**Crypto-currency settings** - Admin interface), #3 (**PayPal and Exchange settings** - Admin interface), #4 (**Notification ans Front-end settings** - Admin interface)
Please take inspiration from this readme.txt

exchange-paypal-to-satoshi/exchange-paypal-to-satoshi.php Passed 13 tests

The entry point to "Exchange PayPal to Satoshi" version 1.0.4 is a PHP file that has certain tags in its header comment area
64 characters long description:
Exchange USD to Satoshi instantly at your rate, keep the profit.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,730 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP1148501,043
SVG100288
PO File1109113268
JavaScript2141281
CSS27850

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity92.00
▷ Minimum class complexity92.00
▷ Maximum class complexity92.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png17.41KB11.42KB▼ 34.39%
screenshot-2.png43.30KB17.95KB▼ 58.54%
screenshot-1.png22.98KB13.74KB▼ 40.23%
images/icon1.png40.84KB14.73KB▼ 63.92%
screenshot-4.png37.96KB15.00KB▼ 60.47%