Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼9.81ms] Passed 4 tests
This is a short check of server-side resources used by mTasku payment for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 35.86 ▼14.28 |
Dashboard /wp-admin | 3.49 ▲0.15 | 45.93 ▼13.40 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 45.87 ▲1.92 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 79.22 ▼13.46 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 36.00 ▲4.18 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by mTasku payment for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.23 ▼0.16 | 1.62 ▼0.27 | 36.02 ▼6.51 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.05 | 96.85 ▼1.39 | 43.99 ▲1.06 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.08 | 38.76 ▼0.97 | 35.65 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,534 ▼1 | 25.46 ▲0.27 | 599.31 ▼61.92 | 62.90 ▼0.45 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.13 ▼0.03 | 93.93 ▼4.42 | 40.87 ▼1.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: banklink, woocommerce, shop, e-commerce, payment...
mtasku-payment-for-woocommerce/woocommerce-payment-telia-mtasku.php 85% from 13 tests
"mTasku payment for WooCommerce" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.3" instead of "3.0.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mtasku-payment-for-woocommerce.php" instead of "woocommerce-payment-telia-mtasku.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 plugin2,025 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 397 | 717 | 1,307 |
PO File | 3 | 177 | 0 | 396 |
JavaScript | 3 | 36 | 31 | 171 |
CSS | 1 | 13 | 1 | 112 |
SVG | 2 | 1 | 0 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 27.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 7 | 7.53% |
▷ Public methods | 59 | 63.44% |
▷ Protected methods | 29 | 31.18% |
▷ Private methods | 5 | 5.38% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 28 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 28 | 100.00% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin