84% dc-edd-bkash-payment

Code Review | DC EDD bKash Payment

WordPress plugin DC EDD bKash Payment scored 84% from 54 tests.

About plugin

  • Plugin page: dc-edd-bkash-payment
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 16, 2020
  • Latest release: Jun 27, 2020
  • Number of updates: 7
  • Update frequency: every 1.6 days
  • Top authors: kapilpaul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,727 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: ▼5.05ms] Passed 4 tests

An overview of server-side resources used by DC EDD bKash Payment
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.69 ▼1.50
Dashboard /wp-admin3.31 ▲0.0044.05 ▼8.91
Posts /wp-admin/edit.php3.36 ▲0.0048.96 ▲1.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.67 ▼9.90
Media Library /wp-admin/upload.php3.23 ▲0.0034.40 ▲0.13

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for DC EDD bKash Payment
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.171.79 ▲0.0243.17 ▼0.28
Dashboard /wp-admin2,206 ▲184.84 ▼1.0498.57 ▼3.8750.93 ▲10.33
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0338.90 ▲2.4436.75 ▲3.61
Add New Post /wp-admin/post-new.php1,535 ▼423.29 ▲0.16640.71 ▲36.9249.82 ▲1.07
Media Library /wp-admin/upload.php1,382 ▼64.16 ▼0.2097.61 ▼1.4140.29 ▼1.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Trait 'DC\\EDD\\Bkash\\Traits\\Form_Error' not found in wp-content/plugins/dc-edd-bkash-payment/includes/Admin/Bkash_Transaction.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/dc-edd-bkash-payment/includes/Admin/views/bkash-transaction-list.php:2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dc-edd-bkash-payment/includes/Admin/Bkash_Transaction_List.php on line 6
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/dc-edd-bkash-payment/includes/Admin/Bkash_Transaction_List.php on line 6
    • > 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/dc-edd-bkash-payment/includes/Admin/Bkash_Transaction_List.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: edd, bangladesh, bdt, bkash, bd payment gateway

dc-edd-bkash-payment/dc-edd-bkash-payment.php 85% from 13 tests

This is the main PHP file of "DC EDD bKash Payment" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Git Repository: Please do not include Git repositories in your plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,009 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP287071,2992,557
Markdown2930197
JavaScript1111151
JSON30091
CSS10013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity15.95
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits1
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes15.26%
Methods181
▷ Static methods189.94%
▷ Public methods14379.01%
▷ Protected methods84.42%
▷ Private methods3016.57%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants7
▷ Global constants685.71%
▷ Class constants114.29%
▷ Public constants1100.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 files were detected