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.09MB] [CPU: ▼3.03ms] Passed 4 tests
Server-side resources used by DC Nagad Payment
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.52 ▲0.60 |
Dashboard /wp-admin | 3.39 ▲0.09 | 49.16 ▼4.34 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.63 ▼6.91 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 108.21 ▲12.73 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.13 ▼1.48 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by DC Nagad Payment
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.77 ▲0.42 | 1.70 ▼0.19 | 45.55 ▼1.12 |
Dashboard /wp-admin | 2,192 ▲15 | 5.61 ▲0.02 | 89.13 ▼13.64 | 41.80 ▲2.49 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.06 | 36.61 ▼4.37 | 36.10 ▼5.41 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.17 ▲0.32 | 667.74 ▲3.14 | 59.11 ▲4.27 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▲0.00 | 96.73 ▼20.66 | 42.28 ▼6.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/dc-nagad/includes/Admin/views/payment-list.php:3
- > PHP Fatal error
Uncaught Error: Class 'DCoders\agad\\Woocommerce\agad_Gateway' not found in wp-content/plugins/dc-nagad/includes/Woocommerce/PaymentProcessor.php:12
- > 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-nagad/includes/Admin/Payment_List.php on line 7
- > 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-nagad/includes/Admin/Payment_List.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/dc-nagad/includes/Woocommerce/Nagad_Gateway.php:8
- > 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-nagad/includes/Admin/Payment_List.php on line 7
- > PHP Fatal error
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
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: nagad, bd payment gateway, bangladesh, bdt
dc-nagad/dcoders-nagad.php 92% from 13 tests
Analyzing the main PHP file in "DC Nagad Payment" version 1.1.1
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dc-nagad.php" instead of "dcoders-nagad.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,442 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 362 | 806 | 1,311 |
JavaScript | 1 | 10 | 0 | 66 |
Markdown | 1 | 33 | 0 | 36 |
JSON | 2 | 0 | 0 | 23 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 108 | |
▷ Static methods | 24 | 22.22% |
▷ Public methods | 100 | 92.59% |
▷ Protected methods | 4 | 3.70% |
▷ Private methods | 4 | 3.70% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/nagad.png | 2.14KB | 1.23KB | ▼ 42.73% |