Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▲2.12ms] Passed 4 tests
This is a short check of server-side resources used by PAYDUNYA WOOCOMMERCE PAR
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.85 ▲0.05 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.75 ▲2.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.83 ▲3.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.20 ▲9.47 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.88 ▲2.04 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for PAYDUNYA WOOCOMMERCE PAR
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲11 | 14.79 ▲1.56 | 1.66 ▼0.10 | 42.42 ▼1.31 |
Dashboard /wp-admin | 2,209 ▲3 | 4.86 ▼0.00 | 110.77 ▲1.43 | 42.59 ▲2.98 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.03 | 39.64 ▲6.32 | 35.58 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.84 ▼5.50 | 651.54 ▼28.20 | 48.80 ▼5.46 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.02 | 92.41 ▼17.78 | 43.51 ▼5.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files
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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: There are too many tags (21 tag instead of maximum 10)
paydunya-woocommerce-payment-gateway/paydunya-woocommerce-gateway.php 85% from 13 tests
The main PHP script in "PAYDUNYA WOOCOMMERCE PAR" version 1.1.6 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("paydunya-woocommerce-payment-gateway.php" instead of "paydunya-woocommerce-gateway.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 202 characters long)
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 detected504 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 18 | 404 |
Markdown | 1 | 39 | 0 | 64 |
JavaScript | 2 | 0 | 0 | 36 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 4 | 25.00% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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/logo.png | 0.92KB | 0.75KB | ▼ 18.74% |