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: ▼143.22ms] Passed 4 tests
Server-side resources used by Flopay Checkout For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.00 | 34.56 ▲0.18 |
Dashboard /wp-admin | 3.06 ▲0.00 | 43.65 ▼4.06 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 43.43 ▲2.23 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 85.84 ▼560.40 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 32.14 ▼8.60 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Flopay Checkout For WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.23 ▲0.63 | 8.51 ▼0.30 | 47.03 ▲2.37 |
Dashboard /wp-admin | 2,970 ▲39 | 5.86 ▼0.08 | 139.64 ▼12.90 | 105.88 ▼4.69 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.01 | 63.60 ▼1.40 | 87.00 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,500 ▼91 | 18.50 ▼0.27 | 384.94 ▼0.24 | 110.68 ▼1.29 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.03 ▲0.01 | 160.69 ▼1.68 | 118.02 ▼1.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/flopay-checkout-woocommerce/admin/partials/flopay-checkout-woocommerce-admin-display.php
- > /wp-content/plugins/flopay-checkout-woocommerce/public/partials/flopay-checkout-woocommerce-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Screenshot #1 (Improve your Bottomline.) image missing
- Tags: You are using too many tags: 19 tag instead of maximum 10
flopay-checkout-woocommerce/flopay-checkout-woocommerce.php Passed 13 tests
The main PHP file in "Flopay Checkout For WooCommerce" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
37 characters long description:
Adds Flopay Checkout for WooCommerce.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected2,088 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 523 | 814 | 1,968 |
SVG | 6 | 0 | 6 | 114 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 16.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 111.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.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 | 42 | |
▷ Static methods | 3 | 7.14% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.90% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 30 | |
▷ Global constants | 8 | 26.67% |
▷ Class constants | 22 | 73.33% |
▷ Public constants | 3 | 13.64% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 1.49MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 100.66KB | 32.21KB | ▼ 68.00% |
assets/images/amex.png | 2.05KB | 1.70KB | ▼ 16.90% |
assets/images/mastercard.png | 1.15KB | 0.98KB | ▼ 15.07% |
assets/banner-1880x609.png | 398.29KB | 148.50KB | ▼ 62.72% |
assets/images/visa.png | 1.16KB | 1.31KB | 0.00% |