79% official-skrill-woocommerce

Code Review | Skrill Official

WordPress plugin Skrill Official scored79%from 54 tests.

About plugin

  • Plugin page: official-skrill-w...
  • Plugin version: 1.0.57
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Feb 13, 2017
  • Latest release: Oct 16, 2023
  • Number of updates: 161
  • Update frequency: every 15.1 days
  • Top authors: stanislavachannel (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

800+ active /51,886 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼9.71ms] Passed 4 tests

A check of server-side resources used by Skrill Official
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1737.79 ▼11.13
Dashboard /wp-admin3.47 ▲0.1245.05 ▼12.97
Posts /wp-admin/edit.php3.59 ▲0.2349.93 ▲3.84
Add New Post /wp-admin/post-new.php6.05 ▲0.1684.83 ▼11.17
Media Library /wp-admin/upload.php3.40 ▲0.1633.28 ▼3.57

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 134 new files
Database: 1 new table, 36 new options
New tables
wp_skrill_transaction_log
New WordPress options
skrill_completed_status
woocommerce_skrill_pgf_settings
db_upgraded
woocommerce_skrill_flexible_settings
skrill_version
woocommerce_skrill_aob_settings
woocommerce_skrill_ewltid_settings
woocommerce_skrill_spx_settings
woocommerce_skrill_gir_settings
woocommerce_skrill_adb_settings
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Skrill Official
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.24 ▼0.121.69 ▼0.0340.60 ▼7.16
Dashboard /wp-admin2,202 ▲255.54 ▼0.0182.57 ▼10.4040.82 ▼3.15
Posts /wp-admin/edit.php2,107 ▲72.02 ▲0.0037.53 ▲2.1935.51 ▼0.44
Add New Post /wp-admin/post-new.php1,535 ▲723.13 ▲0.13662.36 ▼23.6356.56 ▼8.88
Media Library /wp-admin/upload.php1,407 ▲44.14 ▼0.0593.92 ▼2.1841.14 ▼3.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 1 table in the database
    • wp_skrill_transaction_log
  • The uninstall procedure has failed, leaving 34 options in the database
    • woocommerce_skrill_ali_settings
    • woocommerce_skrill_vsa_settings
    • db_upgraded
    • woocommerce_skrill_pli_settings
    • woocommerce_skrill_idl_settings
    • widget_theysaidso_widget
    • can_compress_scripts
    • woocommerce_skrill_acc_settings
    • woocommerce_skrill_aci_settings
    • woocommerce_skrill_ewltid_settings
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (This is screenshot 1 Payment using Skrill.) image missing
  • Screenshots: Add a description for screenshot #5 in official-skrill-woocommerce/assets to your readme.txt
The official readme.txt is a good inspiration

official-skrill-woocommerce/skrill.php 92% from 13 tests

The entry point to "Skrill Official" version 1.0.57 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("official-skrill-woocommerce.php" instead of "skrill.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,394 lines of code in 56 files:
LanguageFilesBlank linesComment linesLines of code
PHP508973,0763,759
PO File56056251,629
JavaScript1366

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.20
▷ Minimum class complexity1.00
▷ Maximum class complexity246.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes45
▷ Abstract classes00.00%
▷ Concrete classes45100.00%
▷ Final classes00.00%
Methods164
▷ Static methods5131.10%
▷ Public methods12576.22%
▷ Protected methods3823.17%
▷ Private methods10.61%
Functions20
▷ Named functions1995.00%
▷ Anonymous functions15.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
71 PNG files occupy 0.89MB with 0.63MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/btc.png16.96KB2.30KB▼ 86.43%
(invalid) assets/images/pwy.png1.36KB0.00KB▼ 100.00%
assets/images/gcb.png8.32KB3.90KB▼ 53.12%
assets/images/mbw.png11.43KB5.60KB▼ 51.02%
assets/images/idl.png2.17KB0.83KB▼ 61.57%