90% tryba-for-givewp

Code Review | Tryba Payment Gateway for GiveWP

WordPress plugin Tryba Payment Gateway for GiveWP scored90%from 54 tests.

About plugin

  • Plugin page: tryba-for-givewp
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 28, 2021
  • Latest release: Jan 27, 2023
  • Number of updates: 6
  • Update frequency: every 81.0 days
  • Top authors: trybaio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /309 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 gracefully, with no errors

Server metrics [RAM: ▼0.62MB] [CPU: ▼17.27ms] Passed 4 tests

A check of server-side resources used by Tryba Payment Gateway for GiveWP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0643.38 ▼0.40
Dashboard /wp-admin3.36 ▲0.0555.60 ▼2.51
Posts /wp-admin/edit.php3.41 ▲0.0552.49 ▲1.32
Add New Post /wp-admin/post-new.php3.23 ▼2.6537.80 ▼66.53
Media Library /wp-admin/upload.php3.28 ▲0.0537.43 ▲0.36

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Tryba Payment Gateway for GiveWP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.151.79 ▼0.6743.55 ▲1.19
Dashboard /wp-admin2,206 ▲185.85 ▲0.99114.32 ▼0.1742.87 ▼4.09
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0037.64 ▼2.7534.71 ▼0.93
Add New Post /wp-admin/post-new.php1,533 ▲1323.20 ▼0.07665.85 ▲1.8951.91 ▼2.98
Media Library /wp-admin/upload.php1,385 ▼64.21 ▼0.0495.00 ▼9.9741.16 ▼6.48

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Looking good! No server-side errors or output on direct access of PHP files

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)
No browser issues were 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
4 plugin tags: donation, tryba, givewp, payment

tryba-for-givewp/tryba-givewp.php 92% from 13 tests

Analyzing the main PHP file in "Tryba Payment Gateway for GiveWP" version 1.2
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tryba-for-givewp.php" instead of "tryba-givewp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin288 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14271288

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/tryba_logo.png28.16KB11.01KB▼ 60.89%