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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 38.69 ▼1.50 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.05 ▼8.91 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.96 ▲1.66 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.67 ▼9.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.21 ▼1.17 | 1.79 ▲0.02 | 43.17 ▼0.28 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.04 | 98.57 ▼3.87 | 50.93 ▲10.33 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 38.90 ▲2.44 | 36.75 ▲3.61 |
Add New Post /wp-admin/post-new.php | 1,535 ▼4 | 23.29 ▲0.16 | 640.71 ▲36.92 | 49.82 ▲1.07 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.16 ▼0.20 | 97.61 ▼1.41 | 40.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 707 | 1,299 | 2,557 |
Markdown | 2 | 93 | 0 | 197 |
JavaScript | 1 | 11 | 1 | 151 |
JSON | 3 | 0 | 0 | 91 |
CSS | 1 | 0 | 0 | 13 |
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 code | 0.38 |
Average class complexity | 15.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 1 | 5.26% |
Methods | 181 | |
▷ Static methods | 18 | 9.94% |
▷ Public methods | 143 | 79.01% |
▷ Protected methods | 8 | 4.42% |
▷ Private methods | 30 | 16.57% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.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