68% paystar-easy-donations

Code Review | درگاه پرداخت پی استار به همراه افزونه Easy Donations - حمایت مالی آسان

WordPress plugin درگاه پرداخت پی استار به همراه افزونه Easy Donations - حمایت مالی آسان scored68%from 54 tests.

About plugin

  • Plugin page: paystar-easy-dona...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2021
  • Latest release: Apr 15, 2022
  • Number of updates: 3
  • Update frequency: every 45.3 days
  • Top authors: mrfazeli666paystar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /233 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.53MB] [CPU: ▼1.07ms] Passed 4 tests

A check of server-side resources used by درگاه پرداخت پی استار به همراه افزونه Easy Donations - حمایت مالی آسان
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.4140.81 ▲0.03
Dashboard /wp-admin3.88 ▲0.5753.95 ▲8.56
Posts /wp-admin/edit.php3.93 ▲0.5850.34 ▲5.45
Add New Post /wp-admin/post-new.php6.46 ▲0.5784.84 ▼14.29
Media Library /wp-admin/upload.php3.78 ▲0.5538.65 ▲4.54
Payments List /wp-admin/admin.php?page=edt_payments_info3.7534.07
General Settings /wp-admin/admin.php?page=edt_plugin_options3.7839.66
Payments List /wp-admin/admin.php?page=edt_payments_page3.7938.88

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 25 new files
Database: 1 new table, 9 new options
New tables
wp_edt_payments
New WordPress options
easy_donations_options
theysaidso_admin_options
widget_edt_widget
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

Checking browser requirements for درگاه پرداخت پی استار به همراه افزونه Easy Donations - حمایت مالی آسان
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,969 ▲23414.64 ▼0.001.82 ▼0.3041.02 ▼7.09
Dashboard /wp-admin2,378 ▲1866.52 ▲1.59126.63 ▲13.9339.69 ▲0.39
Posts /wp-admin/edit.php2,281 ▲1923.33 ▲1.3250.37 ▲9.5633.01 ▼3.60
Add New Post /wp-admin/post-new.php1,539 ▲2522.10 ▲4.59624.69 ▼31.1639.36 ▼15.49
Media Library /wp-admin/upload.php1,423 ▲354.17 ▼0.0879.72 ▼24.3344.16 ▼2.82
Payments List /wp-admin/admin.php?page=edt_payments_info7151.5513.7622.45
General Settings /wp-admin/admin.php?page=edt_plugin_options1,6603.2241.3262.65
Payments List /wp-admin/admin.php?page=edt_payments_page1,2163.0641.7425.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_edt_payments
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • easy_donations_options
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_edt_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=edt_payments_info
    • > Error in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments.php+77
    Uncaught Error: Call to a member function prepare_items() on null in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments.php:77
    Stack trace:
    #0 wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments.php(66): Easy_Donations_Admin_Payments->print_the_list()
    #1 wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments.php(52): Easy_Donations_Admin_Payments->choose_content()
    #2 wp-includes/class-wp-hook.php(310): Easy_Donations_Admin_Payments->edt_payments_page_content()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 {main}
    thrown

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
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Donations_DB' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-install.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/paystar-easy-donations/inc/widgets/class-easy-donations-widgets.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Donations_DB' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-payments.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Donations_Settings' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-general.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Donations_Settings' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Easy_Donations_Settings_API' not found in wp-content/plugins/paystar-easy-donations/inc/abstract/class-easy-donations-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/paystar-easy-donations/inc/gateways/class-edt-paystar-gateway.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'EDT_WP_List_Table' not found in wp-content/plugins/paystar-easy-donations/inc/class-easy-donations-admin-payments-list.php:7

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: donation, payment, form, gateway, paystar...

paystar-easy-donations/easy-donations.php 92% from 13 tests

Analyzing the main PHP file in "درگاه پرداخت پی استار به همراه افزونه Easy Donations - حمایت مالی آسان" version 1.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("paystar-easy-donations.php" instead of "easy-donations.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,724 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP175718602,378
PO File1101124229
JavaScript124391
CSS16026

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity22.24
▷ Minimum class complexity1.00
▷ Maximum class complexity85.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes15.88%
▷ Concrete classes1694.12%
▷ Final classes212.50%
Methods179
▷ Static methods42.23%
▷ Public methods16592.18%
▷ Protected methods63.35%
▷ Private methods84.47%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants630.00%
▷ Class constants1470.00%
▷ Public constants14100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logo.png0.74KB0.67KB▼ 8.48%
assets/img/default.png14.45KB6.69KB▼ 53.66%