90% edd-gateway-interkassa

Code Review | Gateway for Interkassa and Easy Digital Downloads

WordPress plugin Gateway for Interkassa and Easy Digital Downloads scored 90% from 54 tests.

About plugin

  • Plugin page: edd-gateway-inter...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5
  • WordPress version: 6.3.1
  • First release: Aug 18, 2020
  • Latest release: Aug 18, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: aleksandrx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 608 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.80ms] Passed 4 tests

This is a short check of server-side resources used by Gateway for Interkassa and Easy Digital Downloads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0043.22 ▼2.54
Dashboard /wp-admin3.31 ▲0.0050.43 ▼1.82
Posts /wp-admin/edit.php3.36 ▲0.0046.51 ▼9.48
Add New Post /wp-admin/post-new.php5.89 ▲0.00108.71 ▲2.63
Media Library /wp-admin/upload.php3.23 ▲0.0040.29 ▲4.66

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gateway for Interkassa and Easy Digital Downloads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.67 ▲0.291.83 ▼0.2243.68 ▼3.50
Dashboard /wp-admin2,197 ▲64.85 ▼0.03117.49 ▲5.3448.59 ▲1.05
Posts /wp-admin/edit.php2,092 ▼02.02 ▼0.0338.74 ▼9.8533.33 ▼8.85
Add New Post /wp-admin/post-new.php1,533 ▲1423.32 ▲0.07704.60 ▲10.4259.55 ▼3.01
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.01114.57 ▼14.9251.09 ▼4.55

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

edd-gateway-interkassa/edd-gateway-interkassa.php Passed 13 tests

Analyzing the main PHP file in "Gateway for Interkassa and Easy Digital Downloads" version 1.0
37 characters long description:
Adds a payment gateway for Interkassa

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected450 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1122155343
PO File13636107

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity47.00
▷ Minimum class complexity47.00
▷ Maximum class complexity47.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.00%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
gi_icon.png3.49KB1.17KB▼ 66.50%