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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼142.01ms] Passed 4 tests
A check of server-side resources used by Payment Gateway Remise for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.08 | 36.73 ▼3.55 |
Dashboard /wp-admin | 3.14 ▲0.08 | 49.62 ▲7.61 |
Posts /wp-admin/edit.php | 3.20 ▲0.08 | 45.33 ▼3.35 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 99.43 ▼560.64 |
Media Library /wp-admin/upload.php | 3.09 ▲0.08 | 35.56 ▼0.51 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Payment Gateway Remise for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 16.24 ▲0.28 | 8.18 ▼2.29 | 45.29 ▼7.06 |
Dashboard /wp-admin | 2,983 ▲49 | 6.02 ▲0.07 | 140.41 ▼11.72 | 117.87 ▼3.58 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.68 ▼0.00 | 74.54 ▼2.26 | 94.45 ▼5.68 |
Add New Post /wp-admin/post-new.php | 3,643 ▲2,039 | 15.01 ▼3.83 | 467.38 ▲67.74 | 116.84 ▼7.25 |
Media Library /wp-admin/upload.php | 1,817 ▲10 | 4.99 ▼0.09 | 168.30 ▲9.57 | 122.55 ▼10.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
The SRP test was a success
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 issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Remise - Settings) image not found
wc-remise-gateway/wc-remise-gateway.php 77% from 13 tests
The primary PHP file in "Payment Gateway Remise for WooCommerce" version 0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.4")
- Domain Path: The domain path must begin with a forward slash character ("//")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
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
There were no executable files found in this plugin564 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 15 | 378 |
PO File | 1 | 1,538 | 3,305 | 186 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 43.26KB | 18.00KB | ▼ 58.38% |