10% saksh-escrow-system

Code Review | Saksh Escrow System

WordPress plugin Saksh Escrow System scored10%from 54 tests.

About plugin

  • Plugin page: saksh-escrow-system
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 8, 2021
  • Latest release: Oct 5, 2022
  • Number of updates: 71
  • Update frequency: every 9.0 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,176 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▲0.70MB] [CPU: ▲1.38ms] Passed 4 tests

This is a short check of server-side resources used by Saksh Escrow System
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.20 ▲0.7354.31 ▲13.57
Dashboard /wp-admin4.04 ▲0.7458.99 ▲9.06
Posts /wp-admin/edit.php4.09 ▲0.7451.45 ▼0.78
Add New Post /wp-admin/post-new.php6.56 ▲0.6790.46 ▼9.80
Media Library /wp-admin/upload.php3.90 ▲0.6746.82 ▲7.02
All Wallet Balance /wp-admin/admin.php?page=balance_list3.8744.86
Currency Setting /wp-admin/admin.php?page=currency_setting3.9741.43
Debit/Credit /wp-admin/admin.php?page=aistore_debit_credit3.9140.31

Server storage [IO: ▲0.64MB] [DB: ▲0.01MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 58 new files
Database: 8 new tables, 6 new options
New tables
wp_escrow_notification
wp_escrow_currency
wp_escrow_system
wp_escrow_documents
wp_widthdrawal_requests
wp_aistore_wallet_transactions
wp_escrow_email
wp_aistore_wallet_balance
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Saksh Escrow System
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲20513.57 ▼0.749.53 ▲7.3143.15 ▲1.19
Dashboard /wp-admin2,262 ▲815.67 ▼0.0688.62 ▼11.5640.28 ▼5.12
Posts /wp-admin/edit.php2,167 ▲672.02 ▲0.0436.71 ▼3.3134.95 ▼5.25
Add New Post /wp-admin/post-new.php1,600 ▲7423.39 ▲5.78669.65 ▲18.2659.37 ▲10.24
Media Library /wp-admin/upload.php1,467 ▲764.26 ▼0.01108.47 ▲6.1650.65 ▲6.72
All Wallet Balance /wp-admin/admin.php?page=balance_list8962.0230.1528.26
Currency Setting /wp-admin/admin.php?page=currency_setting1,6912.0325.3530.78
Debit/Credit /wp-admin/admin.php?page=aistore_debit_credit9852.0223.0725.59

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables detected upon uninstall: 8 tables
    • wp_escrow_email
    • wp_widthdrawal_requests
    • wp_escrow_system
    • wp_escrow_documents
    • wp_aistore_wallet_transactions
    • wp_aistore_wallet_balance
    • wp_escrow_currency
    • wp_escrow_notification
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/saksh-escrow-system/aistore_escrow_extensions/aistore_email/email_template.php
  • 40× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/saksh-escrow-system/aistore_escrow_extensions/aistore_file_upload/aistore_escrow_file_upload.php:2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/saksh-escrow-system/aistore_wallet/admin/balance_list.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/saksh-escrow-system/aistore_setting_framework/reports.php:4
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/saksh-escrow-system/aistore_escrow_extensions/aistore_withdraw/Withdrawal.php:116
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/saksh-escrow-system/aistore_escrow_extensions/aistore_sell_crypto/Withdrawal.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/saksh-escrow-system/aistore_escrow_extensions/aistore_notifications/user_notification.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/saksh-escrow-system/aistore_wallet/admin/user_balance.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'AistoreEscrow' not found in wp-content/plugins/saksh-escrow-system/aistore_escrow_extensions/aistore_sell_crypto/Saksh_crypto_sell.class.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/saksh-escrow-system/aistore_wallet/admin/user_transaction.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AistoregetSupportMsg() in wp-content/plugins/saksh-escrow-system/aistore_wallet/admin/currency_setting.php:52

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: escrow system

saksh-escrow-system/index.php 92% from 13 tests

The main file in "Saksh Escrow System" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("saksh-escrow-system.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
Good job! No executable or dangerous file extensions detected6,501 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
PHP473,2125966,349
PO File137483
CSS233069

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity20.80
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods77
▷ Static methods1114.29%
▷ Public methods77100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions117
▷ Named functions11699.15%
▷ Anonymous functions10.85%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin