100% gateway-kamoney

Code Review | Gateway Kamoney

WordPress plugin Gateway Kamoney scored 100% from 54 tests.

About plugin

  • Plugin page: gateway-kamoney
  • Plugin version: 1.0
  • PHP compatiblity: 7.0.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.2
  • WordPress version: 5.8.1
  • First release: Dec 31, 2019
  • Latest release: Jan 6, 2020
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: claudecigoularte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 332 total downloads

Benchmarks

Plugin footprint Passed 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.16MB] [CPU: ▼157.64ms] 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 /2.84 ▲0.0126.25 ▼5.05
Dashboard /wp-admin2.98 ▼0.0822.56 ▼23.07
Posts /wp-admin/edit.php3.03 ▼0.0729.65 ▼14.22
Add New Post /wp-admin/post-new.php4.97 ▼0.4675.18 ▼588.20
Media Library /wp-admin/upload.php2.98 ▼0.0231.08 ▼3.18

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new 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 /3,679 ▲8415.81 ▲0.407.72 ▲0.0649.23 ▲0.47
Dashboard /wp-admin2,970 ▲365.88 ▼0.23131.28 ▼42.17113.56 ▲1.54
Posts /wp-admin/edit.php2,739 ▼02.82 ▲0.1264.63 ▲1.5598.45 ▲5.73
Add New Post /wp-admin/post-new.php1,500 ▲218.71 ▼0.10358.32 ▼10.69105.08 ▲4.39
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.01155.16 ▼18.87116.87 ▼9.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: ethereum, bitcoin, cart, cripo, kamoney...

gateway-kamoney/gateway-kamoney.php 92% from 13 tests

Analyzing the main PHP file in "Gateway Kamoney" version 1.0
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 399 characters long)

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 plugin369 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP793106369

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.36
Average class complexity13.67
▷ Minimum class complexity2.00
▷ Maximum class complexity35.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity23.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 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
8 PNG files occupy 0.37MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png67.07KB28.66KB▼ 57.27%
assets/images/kamoney.png4.52KB3.55KB▼ 21.53%
assets/screenshot-1.png76.91KB38.17KB▼ 50.38%
assets/screenshot-6.png11.10KB5.84KB▼ 47.42%
assets/screenshot-2.png80.58KB39.56KB▼ 50.90%