Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼141.90ms] Passed 4 tests
Analyzing server-side resources used by Woocommerce Wallet System
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 32.99 ▲0.32 |
Dashboard /wp-admin | 3.06 ▲0.00 | 54.56 ▲7.24 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 51.21 ▲6.15 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 90.03 ▼572.06 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 33.02 ▼2.00 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Woocommerce Wallet System
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.30 ▲0.74 | 9.76 ▼0.47 | 47.52 ▲4.61 |
Dashboard /wp-admin | 2,967 ▲33 | 6.17 ▲0.26 | 146.77 ▼12.23 | 102.17 ▼6.37 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 67.91 ▼2.19 | 85.72 ▼10.32 |
Add New Post /wp-admin/post-new.php | 1,676 ▲176 | 18.78 ▲0.34 | 380.33 ▼5.37 | 112.18 ▲4.69 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▼0.00 | 155.40 ▲1.65 | 115.25 ▲0.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-wallet-system/public/partials/ace_wallet-public-display.php
- > /wp-content/plugins/woo-wallet-system/admin/partials/ace_wallet-admin-display.php
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 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Wallet option tab in the My Account page.) image not found
woo-wallet-system/ace_wallet.php 77% from 13 tests
This is the main PHP file of "Woocommerce Wallet System" version 1.0.0, 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-wallet-system.php" instead of "ace_wallet.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin636 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 164 | 543 | 601 |
JavaScript | 3 | 5 | 54 | 35 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin