Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.48ms] Passed 4 tests
Analyzing server-side resources used by UddoktaPay Gateway
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.03 ▼7.38 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.41 ▼2.55 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.18 ▼5.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 90.34 ▲4.36 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 35.38 ▲1.33 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for UddoktaPay Gateway
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲48 | 14.23 ▼0.05 | 1.73 ▲0.03 | 38.32 ▼1.22 |
Dashboard /wp-admin | 2,218 ▲38 | 5.60 ▼0.03 | 94.46 ▲5.03 | 43.53 ▲3.31 |
Posts /wp-admin/edit.php | 2,123 ▲20 | 1.98 ▲0.03 | 42.78 ▲1.47 | 37.11 ▲0.66 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.68 ▲0.47 | 685.28 ▼23.98 | 57.04 ▼1.81 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.17 ▲0.00 | 98.41 ▼4.76 | 44.08 ▲0.95 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 7× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/uddoktapay-gateway/class-wc-gateway-uddoktapay-gateway.php
- > /wp-content/plugins/uddoktapay-gateway/class-wc-gateway-uddoktapay-gateway-international.php
- > /wp-content/plugins/uddoktapay-gateway/includes/class-uddoktapay-api-handler.php
- > /wp-content/plugins/uddoktapay-gateway/assets/index.php
- > /wp-content/plugins/uddoktapay-gateway/uddoktapay-gateway.php
- > /wp-content/plugins/uddoktapay-gateway/includes/index.php
- > /wp-content/plugins/uddoktapay-gateway/assets/images/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
uddoktapay-gateway/uddoktapay-gateway.php Passed 13 tests
The primary PHP file in "UddoktaPay Gateway" version 2.2.2 is used by WordPress to initiate all plugin functionality
87 characters long description:
This plugin allows your customers to pay with Bkash, Rocket, Nagad, Upay via UddoktaPay
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
Everything looks great! No dangerous files found in this plugin819 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 144 | 229 | 819 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 30.67 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 8 | 29.63% |
▷ Public methods | 24 | 88.89% |
▷ Protected methods | 2 | 7.41% |
▷ Private methods | 1 | 3.70% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/bkash.png | 9.35KB | 4.22KB | ▼ 54.92% |
assets/images/upay.png | 39.24KB | 20.03KB | ▼ 48.96% |
assets/images/cellfin.png | 38.41KB | 15.10KB | ▼ 60.70% |
assets/images/rocket.png | 17.58KB | 7.21KB | ▼ 58.99% |
assets/images/nagad.png | 10.80KB | 5.07KB | ▼ 53.12% |