90% fulino-paydirekt

Code Review | Giropay | paydirekt

WordPress plugin Giropay | paydirekt scored 90% from 54 tests.

About plugin

  • Plugin page: fulino-paydirekt
  • Plugin version: 1.0.44
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-7.0.0
  • WordPress version: 6.3.1
  • First release: Apr 16, 2018
  • Latest release: Oct 20, 2022
  • Number of updates: 38
  • Update frequency: every 43.6 days
  • Top authors: fulinogmbh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,338 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.52MB] [CPU: ▲11.62ms] Passed 4 tests

A check of server-side resources used by Giropay | paydirekt
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.98 ▲1.5257.48 ▲13.48
Dashboard /wp-admin4.82 ▲1.5265.81 ▲12.31
Posts /wp-admin/edit.php4.94 ▲1.5862.30 ▲11.32
Add New Post /wp-admin/post-new.php7.41 ▲1.52109.12 ▲9.37
Media Library /wp-admin/upload.php4.75 ▲1.5250.76 ▲14.18

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Giropay | paydirekt: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.60 ▼1.001.75 ▲0.1444.32 ▲4.44
Dashboard /wp-admin2,206 ▼04.85 ▼0.99109.20 ▲4.4742.64 ▲1.56
Posts /wp-admin/edit.php2,092 ▲32.03 ▲0.0339.82 ▼0.6635.40 ▲0.69
Add New Post /wp-admin/post-new.php1,537 ▼523.28 ▲0.09667.45 ▼19.7247.33 ▼16.76
Media Library /wp-admin/upload.php1,385 ▼04.24 ▲0.0297.58 ▼21.7244.45 ▲0.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
3 plugin tags: gateway, payment, woocommerce

fulino-paydirekt/paydirekt.php 92% from 13 tests

"Giropay | paydirekt" version 1.0.44's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fulino-paydirekt.php" instead of "paydirekt.php")

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
Everything looks great! No dangerous files found in this plugin10,250 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP416161,1135,074
SVG1002,671
CSS844591,415
JavaScript95821564
PO File116517378
Markdown1440145
XML1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.46
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes37
▷ Abstract classes25.41%
▷ Concrete classes3594.59%
▷ Final classes00.00%
Methods257
▷ Static methods6826.46%
▷ Public methods22989.11%
▷ Protected methods41.56%
▷ Private methods249.34%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants289
▷ Global constants18062.28%
▷ Class constants10937.72%
▷ Public constants109100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/paydirekt_logo.png7.54KB2.74KB▼ 63.69%
resources/images/paydirekt_icon.png15.25KB0.80KB▼ 94.76%