84% tryba-for-edd

Code Review | Tryba Payment Gateway for Easy Digital Downloads

WordPress plugin Tryba Payment Gateway for Easy Digital Downloads scored 84% from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 271 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
Install script ran successfully

Server metrics [RAM: ▼0.68MB] [CPU: ▼18.70ms] Passed 4 tests

Analyzing server-side resources used by Tryba Payment Gateway for Easy Digital Downloads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.24 ▼2.78
Dashboard /wp-admin3.31 ▲0.0146.79 ▲1.75
Posts /wp-admin/edit.php3.37 ▲0.0143.39 ▼6.88
Add New Post /wp-admin/post-new.php3.13 ▼2.7637.11 ▼65.76
Media Library /wp-admin/upload.php3.24 ▲0.0135.37 ▲0.62

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Tryba Payment Gateway for Easy Digital Downloads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.051.79 ▼0.0443.49 ▲1.18
Dashboard /wp-admin2,203 ▲175.79 ▲0.8098.97 ▼8.8539.22 ▼1.41
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0435.63 ▼5.3233.62 ▼1.87
Add New Post /wp-admin/post-new.php1,535 ▲223.26 ▲0.16646.95 ▲52.4858.76 ▲4.21
Media Library /wp-admin/upload.php1,379 ▼124.22 ▼0.0496.38 ▲0.1741.33 ▼0.14

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
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tryba-for-edd/tryba-edd.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: easydigitaldownloads, tryba, payment

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

The entry point to "Tryba Payment Gateway for Easy Digital Downloads" version 1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("tryba-for-edd.php" instead of "tryba-edd.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin270 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12830270

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin