68% payamito-easy-digital-downloads-sms

Code Review | افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download

WordPress plugin افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download scored68%from 54 tests.

About plugin

  • Plugin page: payamito-easy-dig...
  • Plugin version: 1.2.2
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Jan 14, 2022
  • Latest release: May 22, 2022
  • Number of updates: 7
  • Update frequency: every 18.3 days
  • Top authors: payamito (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.11MB] [CPU: ▼8.44ms] Passed 4 tests

Server-side resources used by افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1153.64 ▲8.42
Dashboard /wp-admin3.43 ▲0.0854.64 ▼10.74
Posts /wp-admin/edit.php3.48 ▲0.1252.11 ▼3.81
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.77 ▼15.86
Media Library /wp-admin/upload.php3.35 ▲0.1236.63 ▼3.35
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.3639.43

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 294 new files
Database: 1 new table, 7 new options
New tables
wp_payamito_sms
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
payamito_core_version
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,938 ▲17713.84 ▼0.5210.71 ▲8.8142.22 ▼1.38
Dashboard /wp-admin2,228 ▲485.54 ▼0.1090.64 ▼0.3959.45 ▲16.37
Posts /wp-admin/edit.php2,139 ▲422.14 ▲0.1636.52 ▼2.8838.36 ▲4.00
Add New Post /wp-admin/post-new.php1,561 ▲3318.31 ▼4.70610.44 ▼90.3670.18 ▲15.71
Media Library /wp-admin/upload.php1,438 ▲384.23 ▲0.0598.36 ▼12.0748.99 ▲0.95
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins9742.0226.6132.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_payamito_sms
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • payamito_core_version
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/payamito-easy-digital-downloads-sms/includes/core/payamito-core/public/partials/payamito-public-display.php
    • > /wp-content/plugins/payamito-easy-digital-downloads-sms/bootstrap.php
    • > /wp-content/plugins/payamito-easy-digital-downloads-sms/includes/core/payamito-core/admin/partials/payamito-admin-display.php
    • > /wp-content/plugins/payamito-easy-digital-downloads-sms/includes/Autoloader.php
    • > /wp-content/plugins/payamito-easy-digital-downloads-sms/Define-constants.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/payamito-easy-digital-downloads-sms/includes/libraries/tgm/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/payamito-easy-digital-downloads-sms/includes/core/payamito-core/includes/direct-send/html-send.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'KIANFR_Fields' not found in wp-content/plugins/payamito-easy-digital-downloads-sms/includes/core/payamito-core/admin/settings/payamito_show_other_plugins.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: sms payamito

payamito-easy-digital-downloads-sms/bootstrap.php 77% from 13 tests

This is the main PHP file of "افزونه پیامک ایزی دیجتال دانلود ( EDD ) payamito sms easy digital download" version 1.2.2, 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:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("payamito-easy-digital-downloads-sms.php" instead of "bootstrap.php")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.0.0")

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 plugin60,689 lines of code in 226 files:
LanguageFilesBlank linesComment linesLines of code
PHP1285,1484,30521,764
CSS271,8571,05913,668
JavaScript231,9617859,505
Sass201,42437,934
PO File243,6914,1567,713
Markdown115085
JSON11018
SVG2002

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity25.33
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes100
▷ Abstract classes33.00%
▷ Concrete classes9797.00%
▷ Final classes11.03%
Methods616
▷ Static methods11518.67%
▷ Public methods54788.80%
▷ Protected methods396.33%
▷ Private methods304.87%
Functions54
▷ Named functions5194.44%
▷ Anonymous functions35.56%
Constants22
▷ Global constants1568.18%
▷ Class constants731.82%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/core/payamito-core/assets/images/symmary-box-image.png28.02KB8.15KB▼ 70.92%
includes/core/payamito-core/assets/images/instagram.png3.87KB2.14KB▼ 44.62%
includes/core/payamito-core/admin/css/chosen-sprite.png0.53KB0.88KB0.00%
includes/core/payamito-core/assets/images/puzzle.png2.63KB1.87KB▼ 28.82%
includes/core/payamito-core/assets/images/youtube.png2.48KB1.45KB▼ 41.62%