84% gateway-aqayepardakht-easy-digital-downloads

Code Review | Gateway Aqayepardakht Easy Digital Downloads

WordPress plugin Gateway Aqayepardakht Easy Digital Downloads scored 84% from 54 tests.

About plugin

  • Plugin page: gateway-aqayepard...
  • Plugin version: 1.6
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1
  • WordPress version: 6.3.1
  • First release: Sep 1, 2020
  • Latest release: Nov 12, 2022
  • Number of updates: 16
  • Update frequency: every 50.1 days
  • Top authors: aqayepardakht (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 974 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.44ms] Passed 4 tests

Server-side resources used by Gateway Aqayepardakht Easy Digital Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.59 ▲2.27
Dashboard /wp-admin3.37 ▲0.0749.21 ▲1.61
Posts /wp-admin/edit.php3.42 ▲0.0644.37 ▼15.69
Add New Post /wp-admin/post-new.php5.95 ▲0.0692.37 ▼7.56
Media Library /wp-admin/upload.php3.29 ▲0.0636.18 ▼0.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Gateway Aqayepardakht Easy Digital Downloads
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.56 ▼0.621.62 ▼0.1144.05 ▲3.73
Dashboard /wp-admin2,206 ▲154.79 ▼1.1199.32 ▼11.3335.82 ▼3.49
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0433.66 ▼8.5132.19 ▼4.36
Add New Post /wp-admin/post-new.php1,537 ▲423.21 ▼0.03595.68 ▼57.1753.16 ▲4.80
Media Library /wp-admin/upload.php1,388 ▼04.26 ▲0.0693.79 ▼3.6944.57 ▼4.49

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 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 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gateway-aqayepardakht-easy-digital-downloads/includes/edd-aqayepardakht-gateway.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: edd, iran, aqayepardakht, aqaye pardakht, payment...

gateway-aqayepardakht-easy-digital-downloads/aqayepardakht-for-edd.php 92% from 13 tests

This is the main PHP file of "Gateway Aqayepardakht Easy Digital Downloads" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gateway-aqayepardakht-easy-digital-downloads.php" instead of "aqayepardakht-for-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
Success! There were no dangerous files found in this plugin325 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP35921255
PO File1192270

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity41.00
▷ Minimum class complexity41.00
▷ Maximum class complexity41.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions1
▷ Named functions1100.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