84% oceanpayment-giropay-gateway

Code Review | Oceanpayment Giropay Gateway

WordPress plugin Oceanpayment Giropay Gateway scored 84% from 54 tests.

About plugin

  • Plugin page: oceanpayment-giro...
  • Plugin version: 6.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2023
  • Latest release: May 25, 2023
  • Number of updates: 9
  • Update frequency: every 15.6 days
  • Top authors: oceanpayment (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 192 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by Oceanpayment Giropay Gateway
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.86 ▼10.48
Dashboard /wp-admin3.31 ▲0.0045.05 ▼5.21
Posts /wp-admin/edit.php3.36 ▲0.0042.98 ▼2.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.85 ▲8.13
Media Library /wp-admin/upload.php3.23 ▲0.0034.81 ▲0.97

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

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

Browser metrics Passed 4 tests

Oceanpayment Giropay Gateway: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.75 ▲0.321.71 ▼0.4341.05 ▼5.48
Dashboard /wp-admin2,203 ▲154.89 ▼0.20106.96 ▼12.3939.94 ▼3.07
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0441.52 ▲7.0434.84 ▲0.65
Add New Post /wp-admin/post-new.php1,514 ▼2817.68 ▼0.74570.97 ▼32.6559.84 ▲2.33
Media Library /wp-admin/upload.php1,391 ▼04.31 ▲0.12101.25 ▲3.3142.08 ▼3.95

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/oceanpayment-giropay-gateway/oceangiropay.php:18

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

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: payment

oceanpayment-giropay-gateway/oceangiropay.php 92% from 13 tests

Analyzing the main PHP file in "Oceanpayment Giropay Gateway" version 6.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("oceanpayment-giropay-gateway.php" instead of "oceangiropay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected540 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2136184540

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity66.00
▷ Minimum class complexity66.00
▷ Maximum class complexity66.00
Average method complexity4.61
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/op_Giropay.png5.12KB2.14KB▼ 58.25%