Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.30MB] [CPU: ▼10.54ms] Passed 4 tests
This is a short check of server-side resources used by Piraeus Bank WooCommerce Payment Gateway
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 45.04 ▲0.19 |
Dashboard /wp-admin | 3.62 ▲0.27 | 51.87 ▼14.69 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 50.16 ▲0.63 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 95.67 ▼20.18 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 36.57 ▼7.46 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Piraeus Bank WooCommerce Payment Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.23 ▼0.12 | 1.64 ▼0.68 | 40.96 ▼1.06 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.05 | 89.68 ▼0.45 | 39.48 ▼4.74 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.01 | 40.20 ▲4.65 | 35.71 ▼3.49 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 22.82 ▼0.43 | 637.43 ▼46.02 | 52.30 ▼8.45 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.26 ▲0.02 | 103.10 ▲3.39 | 46.34 ▲0.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: ecommerce, payment gateway, woocommerce
woo-payment-gateway-for-piraeus-bank/wooshop-piraeus.php 85% from 13 tests
Analyzing the main PHP file in "Piraeus Bank WooCommerce Payment Gateway" version 1.6.5.1
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("woo-payment-gateway-for-piraeus-bank.php" instead of "wooshop-piraeus.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,060 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 182 | 105 | 1,689 |
PO File | 1 | 111 | 144 | 362 |
SVG | 2 | 2 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 81.00 |
▷ Minimum class complexity | 81.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/PB_blue_GR.png | 5.99KB | 2.46KB | ▼ 58.85% |