Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.11ms] Passed 4 tests
This is a short check of server-side resources used by PayKun for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.17 ▼0.38 |
Dashboard /wp-admin | 3.39 ▲0.04 | 51.88 ▼15.98 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.01 ▼1.82 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 101.94 ▲1.75 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.69 ▲1.84 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PayKun for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.28 ▼1.09 | 1.74 ▼1.06 | 41.27 ▼0.44 |
Dashboard /wp-admin | 2,206 ▲15 | 5.83 ▼0.03 | 111.55 ▲3.99 | 41.69 ▼0.46 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▼0.02 | 37.31 ▼5.85 | 32.06 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.62 ▼5.79 | 673.05 ▲8.72 | 51.93 ▼1.23 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▲0.03 | 100.64 ▼10.12 | 49.16 ▲2.31 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: india, paykun, woocommerce, ecommerce, payments
paykun-gateway-woocommerce/woo_com_paykun.php 92% from 13 tests
The primary PHP file in "PayKun for WooCommerce" version 3.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("paykun-gateway-woocommerce.php" instead of "woo_com_paykun.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin769 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 291 | 193 | 768 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 11.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 14 | 31.11% |
▷ Public methods | 36 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 49 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 49 | 100.00% |
▷ Public constants | 49 | 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
No PNG files were detected