Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.11ms] Passed 4 tests
Analyzing server-side resources used by Hamrahpay Online Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.88 ▼1.64 |
Dashboard /wp-admin | 3.39 ▲0.04 | 50.35 ▼10.51 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 54.04 ▲3.97 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.67 ▼16.81 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.80 ▲0.52 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Hamrahpay Online Payment Gateway for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▲0.16 | 1.93 ▲0.15 | 43.10 ▼1.49 |
Dashboard /wp-admin | 2,192 ▲15 | 5.52 ▼0.15 | 86.67 ▼10.09 | 39.49 ▼6.07 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.06 ▲0.01 | 39.67 ▲4.93 | 36.06 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.21 ▼0.06 | 646.10 ▼42.27 | 51.18 ▼7.68 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.14 ▼0.08 | 110.27 ▼5.31 | 50.15 ▲2.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (بخش تنظیمات) image missing
hamrahpay-online-payment-gateway/index.php 92% from 13 tests
The primary PHP file in "Hamrahpay Online Payment Gateway for WooCommerce" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hamrahpay-online-payment-gateway.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin393 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 76 | 20 | 393 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 61.00 |
▷ Minimum class complexity | 61.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 9.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 4 | |
▷ Named functions | 4 | 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
9 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 5.85KB | 5.14KB | ▼ 12.10% |
assets/banner-1544x500-rtl.png | 20.94KB | 19.41KB | ▼ 7.30% |
assets/icon-128x128.png | 3.92KB | 3.05KB | ▼ 21.98% |
assets/banner-772x250.png | 11.13KB | 9.97KB | ▼ 10.43% |
assets/banner-772x250-rtl.png | 11.28KB | 10.12KB | ▼ 10.29% |