89% tryba-for-gravity-forms

Code Review | Tryba Add-On

WordPress plugin Tryba Add-On scored89%from 54 tests.

About plugin

  • Plugin page: tryba-for-gravity...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2021
  • Latest release: Jan 17, 2023
  • Number of updates: 7
  • Update frequency: every 70.0 days
  • Top authors: trybaio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /298 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Tryba Add-On
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.87 ▼4.06
Dashboard /wp-admin3.31 ▲0.0047.86 ▼10.55
Posts /wp-admin/edit.php3.36 ▲0.0047.82 ▼2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.59 ▼17.51
Media Library /wp-admin/upload.php3.23 ▲0.0037.48 ▲0.47

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Tryba Add-On
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.091.80 ▼0.1944.63 ▲3.47
Dashboard /wp-admin2,192 ▲155.54 ▲0.0289.63 ▼3.6138.62 ▼0.65
Posts /wp-admin/edit.php2,103 ▲61.97 ▼0.0534.34 ▼1.3435.46 ▼1.73
Add New Post /wp-admin/post-new.php1,526 ▼523.08 ▲0.06694.24 ▲22.9760.71 ▼8.48
Media Library /wp-admin/upload.php1,403 ▲64.22 ▼0.03111.67 ▲1.9749.69 ▼0.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: payment, addon, tryba, gravityforms, gravity

tryba-for-gravity-forms/tryba.php 85% from 13 tests

The entry point to "Tryba Add-On" version 1.2.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tryba-for-gravity-forms.php" instead of "tryba.php")

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
No dangerous file extensions were detected425 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25273425

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity22.00
▷ Minimum class complexity2.00
▷ Maximum class complexity42.00
Average method complexity3.33
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods323.08%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected