Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'oppg__activation' not found or invalid function name
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.19ms] Passed 4 tests
An overview of server-side resources used by Open Platform Payment Gateway for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.99 ▼1.80 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.82 ▲3.80 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.23 ▼5.35 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 90.41 ▼7.99 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 35.92 ▲2.40 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Open Platform Payment Gateway for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.25 ▼1.31 | 5.49 ▲3.73 | 43.95 ▼6.87 |
Dashboard /wp-admin | 2,203 ▲12 | 4.85 ▼0.01 | 107.60 ▼14.34 | 36.46 ▼7.20 |
Posts /wp-admin/edit.php | 2,068 ▼24 | 2.14 ▲0.08 | 34.22 ▼7.80 | 32.68 ▼3.09 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.15 ▲0.59 | 599.17 ▼93.24 | 56.24 ▼7.38 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.18 ▼0.08 | 96.71 ▼6.30 | 40.59 ▼4.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'oppg__deactivation' not found or invalid function name
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: woocommerce, payment, cryptocurrency, blockchain, woo...
open-platform-gateway/woocommerce-gateway-open.php 85% from 13 tests
The entry point to "Open Platform Payment Gateway for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0" instead of "5.6")
- Main file name: Name the main plugin file the same as the plugin slug ("open-platform-gateway.php" instead of "woocommerce-gateway-open.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,007 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 878 | 678 | 2,913 |
JavaScript | 4 | 13 | 6 | 61 |
Markdown | 1 | 29 | 1 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 164 | |
▷ Static methods | 78 | 47.56% |
▷ Public methods | 159 | 96.95% |
▷ Protected methods | 1 | 0.61% |
▷ Private methods | 4 | 2.44% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 34 | |
▷ Global constants | 34 | 100.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
5 PNG files occupy 0.07MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ethereum.png | 16.16KB | 1.31KB | ▼ 91.89% |
assets/images/bitcoincash.png | 16.25KB | 1.32KB | ▼ 91.86% |
assets/images/usdc.png | 5.32KB | 2.74KB | ▼ 48.45% |
assets/images/bitcoin.png | 16.21KB | 1.34KB | ▼ 91.71% |
assets/images/litecoin.png | 15.76KB | 1.01KB | ▼ 93.57% |