90% gateway-kamoney

Code Review | Gateway Kamoney

WordPress plugin Gateway Kamoney scored90%from 54 tests.

About plugin

  • Plugin page: gateway-kamoney
  • Plugin version: 2.0
  • PHP compatiblity: 7.0.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Dec 31, 2019
  • Latest release: Jun 29, 2023
  • Number of updates: 11
  • Update frequency: every 116.0 days
  • Top authors: claudecigoularte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /702 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.17MB] [CPU: ▼15.76ms] Passed 4 tests

An overview of server-side resources used by Gateway Kamoney
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.47 ▲0.27
Dashboard /wp-admin3.20 ▼0.1431.57 ▼27.63
Posts /wp-admin/edit.php3.27 ▼0.0835.27 ▼7.97
Add New Post /wp-admin/post-new.php5.44 ▼0.4467.12 ▼26.28
Media Library /wp-admin/upload.php3.21 ▼0.0232.21 ▼1.17

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Gateway Kamoney
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.72 ▲0.321.79 ▼0.0238.67 ▼1.08
Dashboard /wp-admin2,198 ▲215.55 ▼0.1182.32 ▼2.4639.07 ▼3.12
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0035.64 ▼5.9436.41 ▼5.06
Add New Post /wp-admin/post-new.php1,526 ▼223.06 ▼0.03681.88 ▼9.3958.16 ▲10.90
Media Library /wp-admin/upload.php1,400 ▼34.20 ▼0.00103.39 ▲3.8946.49 ▲2.70

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: e-commerce, gateway, ethereum, cart, payment gateway...

gateway-kamoney/gateway-kamoney.php Passed 13 tests

Analyzing the main PHP file in "Gateway Kamoney" version 2.0
140 characters long description:
Plugin WooCommerce que permite pagamentos usando criptomoeda via Kamoney. Este plugin requer uma conta Kamoney (https://www.kamoney.com.br).

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 plugin358 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP894116358

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods529.41%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.75MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-8.png132.05KB37.52KB▼ 71.59%
assets/screenshot-3.png38.20KB11.13KB▼ 70.87%
assets/screenshot-5.png118.47KB34.53KB▼ 70.85%
assets/screenshot-7.png111.11KB30.15KB▼ 72.86%
assets/screenshot-1.png50.29KB15.00KB▼ 70.18%