Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.61ms] Passed 4 tests
An overview of server-side resources used by Official Wakanda Coin Payment Gateway for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.31 ▼0.15 |
Dashboard /wp-admin | 3.35 ▲0.01 | 44.62 ▼15.97 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 42.09 ▼6.15 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.88 ▼16.15 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 38.89 ▲6.50 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Official Wakanda Coin Payment Gateway for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲116 | 13.42 ▼1.31 | 8.96 ▲7.39 | 42.81 ▲3.97 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.00 | 83.91 ▼3.12 | 39.68 ▼1.06 |
Posts /wp-admin/edit.php | 2,100 ▲21 | 2.01 ▲0.02 | 36.90 ▲0.68 | 35.69 ▲4.84 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 17.88 ▼5.17 | 602.97 ▼14.76 | 84.49 ▲38.15 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.16 ▼0.07 | 111.56 ▲1.62 | 46.95 ▼0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/owcc-payment-gateway/PWN_Wakanda.php:3
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: bitcoin, payments, owcc, xlm
owcc-payment-gateway/OWCC-Payment-Gateway.php 92% from 13 tests
Analyzing the main PHP file in "Official Wakanda Coin Payment Gateway for WooCommerce" version 1.0.1
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("owcc-payment-gateway.php" instead of "OWCC-Payment-Gateway.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin355 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 113 | 49 | 250 |
JavaScript | 2 | 19 | 35 | 73 |
CSS | 1 | 9 | 0 | 29 |
INI | 1 | 0 | 0 | 3 |
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.19 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.39MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 28.76KB | 11.17KB | ▼ 61.14% |
assets/icon-256x256.png | 93.49KB | 32.01KB | ▼ 65.76% |
assets/screenshot-1.PNG | 103.70KB | 48.88KB | ▼ 52.86% |
assets/screenshot-2.PNG | 178.29KB | 72.83KB | ▼ 59.15% |