89% payout-payment-gateway

Code Review | Payout payment gateway

WordPress plugin Payout payment gateway scored89%from 54 tests.

About plugin

  • Plugin page: payout-payment-ga...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.19-6.2.2
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: Jul 14, 2023
  • Number of updates: 110
  • Update frequency: every 10.6 days
  • Top authors: seduco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,541 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.39ms] Passed 4 tests

Server-side resources used by Payout payment gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.58 ▲2.01
Dashboard /wp-admin3.32 ▲0.0247.15 ▼1.96
Posts /wp-admin/edit.php3.38 ▲0.0151.58 ▼3.01
Add New Post /wp-admin/post-new.php5.91 ▲0.0184.91 ▼26.20
Media Library /wp-admin/upload.php3.25 ▲0.0134.77 ▲1.61

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Payout payment gateway
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.381.74 ▼0.0943.92 ▼4.07
Dashboard /wp-admin2,195 ▲155.63 ▲0.0383.20 ▼7.0743.10 ▲4.11
Posts /wp-admin/edit.php2,097 ▼31.94 ▼0.0934.01 ▼5.6141.86 ▲4.75
Add New Post /wp-admin/post-new.php1,528 ▼923.19 ▲5.15654.61 ▲16.4659.92 ▼4.05
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.0497.10 ▼4.7944.08 ▲1.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: payout, platobn brna, gateway, slovakia, payout payment gateway...

payout-payment-gateway/payout-gateway.php 77% from 13 tests

"Payout payment gateway" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Main file name: The principal plugin file should be the same as the plugin slug ("payout-payment-gateway.php" instead of "payout-gateway.php")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

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
No dangerous file extensions were detected914 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP8168272731
PO File1375106
JavaScript110044
CSS13033

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity14.00
▷ Minimum class complexity3.00
▷ Maximum class complexity45.00
Average method complexity3.39
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods2976.32%
▷ Protected methods00.00%
▷ Private methods923.68%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin