Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.33ms] Passed 4 tests
A check of server-side resources used by Fizen Pay For WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.78 ▼3.06 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.36 ▲0.36 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.85 ▼0.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.08 ▲3.60 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.48 ▼6.57 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Fizen Pay For WooCommerce: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▼0.11 | 1.91 ▲0.17 | 41.83 ▲0.00 |
Dashboard /wp-admin | 2,209 ▲18 | 4.87 ▼0.17 | 108.23 ▲2.95 | 39.52 ▼3.19 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.02 ▲0.01 | 40.87 ▲4.99 | 36.08 ▼4.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.10 ▲5.41 | 670.92 ▼12.29 | 52.17 ▼6.33 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.28 ▲0.18 | 94.17 ▼9.82 | 41.61 ▼5.68 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/fizen-pay-woocommerce/uninstall.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fizen-pay-woocommerce/fizen-pay-woocommerce.php:51
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: payment gateway, fizen pay, woocommerce, crypto
fizen-pay-woocommerce/fizen-pay-woocommerce.php 77% from 13 tests
This is the main PHP file of "Fizen Pay For WooCommerce" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: Required version does not match the one declared in readme.txt ("5.3" instead of "3.0.9")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin475 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 120 | 206 | 475 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 16 | |
▷ Static methods | 5 | 31.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 12 | 92.31% |
▷ Anonymous functions | 1 | 7.69% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) assets/images/usdc.png | 2.46KB | 0.00KB | ▼ 100.00% |
(invalid) assets/images/bnb.png | 2.06KB | 0.00KB | ▼ 100.00% |
assets/images/bitcoin.png | 16.21KB | 1.34KB | ▼ 91.71% |
assets/images/doge.png | 4.15KB | 2.62KB | ▼ 37.00% |
assets/images/usdt.png | 5.21KB | 2.43KB | ▼ 53.34% |