90% gateway-aqayepardakht-for-gravity-forms

Code Review | Gateway AqayePardakht for Gravity Forms

WordPress plugin Gateway AqayePardakht for Gravity Forms scored90%from 54 tests.

About plugin

  • Plugin page: gateway-aqayepard...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Sep 11, 2020
  • Latest release: Nov 12, 2022
  • Number of updates: 7
  • Update frequency: every 113.2 days
  • Top authors: aqayepardakht (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,039 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Gateway AqayePardakht for Gravity Forms
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.48 ▼2.77
Dashboard /wp-admin3.31 ▲0.0145.44 ▼5.80
Posts /wp-admin/edit.php3.36 ▲0.0049.72 ▲1.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.59 ▼5.28
Media Library /wp-admin/upload.php3.23 ▲0.0032.17 ▼1.94

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Gateway AqayePardakht for Gravity Forms
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.29 ▼1.291.80 ▲0.1342.01 ▼1.64
Dashboard /wp-admin2,210 ▲225.84 ▲0.8394.69 ▼26.9544.71 ▼0.68
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0239.06 ▲5.0940.60 ▲3.45
Add New Post /wp-admin/post-new.php1,521 ▼1217.48 ▼5.48615.65 ▼12.2949.22 ▼0.62
Media Library /wp-admin/upload.php1,392 ▲44.22 ▼0.0195.69 ▼4.7944.02 ▼0.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: gravity forms, aqayepardakht, aqaye pardakht

gateway-aqayepardakht-for-gravity-forms/index.php 92% from 13 tests

The principal PHP file in "Gateway AqayePardakht for Gravity Forms" v. 1.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gateway-aqayepardakht-for-gravity-forms.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,852 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4781533,852

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity197.67
▷ Minimum class complexity29.00
▷ Maximum class complexity354.00
Average method complexity9.68
▷ Minimum method complexity1.00
▷ Maximum method complexity75.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods68
▷ Static methods68100.00%
▷ Public methods5073.53%
▷ Protected methods34.41%
▷ Private methods1522.06%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin