90% sellix-pay

Code Review | Sellix Pay

WordPress plugin Sellix Pay scored90%from 54 tests.

About plugin

  • Plugin page: sellix-pay
  • Plugin version: 1.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2022
  • Latest release: Apr 5, 2023
  • Number of updates: 20
  • Update frequency: every 10.5 days
  • Top authors: sellix (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

700+ active /4,563 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.10ms] Passed 4 tests

An overview of server-side resources used by Sellix Pay
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.99 ▲0.52
Dashboard /wp-admin3.31 ▼0.0450.06 ▼17.14
Posts /wp-admin/edit.php3.36 ▲0.0049.71 ▼0.32
Add New Post /wp-admin/post-new.php5.89 ▲0.00106.44 ▲4.04
Media Library /wp-admin/upload.php3.23 ▲0.0033.27 ▼3.45

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Sellix Pay
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.37 ▲0.091.54 ▼0.1139.46 ▼1.08
Dashboard /wp-admin2,195 ▲185.61 ▲0.0291.74 ▲7.5340.65 ▼4.74
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0838.17 ▼4.4036.36 ▼0.92
Add New Post /wp-admin/post-new.php1,526 ▼023.80 ▲0.69614.73 ▼68.4046.33 ▼3.90
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.10100.90 ▼4.6444.08 ▼2.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
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
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: paypal, bitcoin, trust wallet, payment-gateway, sellix-pay...

sellix-pay/sellix-pay.php Passed 13 tests

The primary PHP file in "Sellix Pay" version 1.9.3 is used by WordPress to initiate all plugin functionality
91 characters long description:
Accept Cryptocurrencies, Credit Cards, PayPal and regional banking methods with Sellix Pay.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin261 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25967261

PHP code Passed 2 tests

A brief analysis 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.34
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png1.53KB1.11KB▼ 27.49%
assets/images/sellix.png9.30KB5.60KB▼ 39.76%