Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/woo-paylate/classes/class-wc-paylate-plugin.php+49
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.01ms] Passed 4 tests
Server-side resources used by Gateway for PayLate on WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.89 ▼6.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.16 ▼3.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.60 ▲4.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.51 ▼7.01 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.14 ▲0.13 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gateway for PayLate on WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.52 ▼0.87 | 1.70 ▼0.38 | 40.87 ▼5.47 |
Dashboard /wp-admin | 2,209 ▲21 | 5.84 ▼0.04 | 112.74 ▼2.52 | 41.09 ▼1.03 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.03 ▼0.02 | 38.57 ▼2.95 | 35.50 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,514 ▼21 | 17.72 ▼5.46 | 670.37 ▲70.17 | 53.48 ▲2.74 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.05 | 94.77 ▼9.46 | 41.30 ▼3.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/woo-paylate/classes/class-wc-paylate-gateway.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: woocommerce, paylate, gateway
woo-paylate/woocommerce-paylate.php 92% from 13 tests
The main PHP script in "Gateway for PayLate on WooCommerce" version 1.5.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woo-paylate.php" instead of "woocommerce-paylate.php")
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
Success! There were no dangerous files found in this plugin1,420 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 300 | 688 | 1,249 |
PO File | 1 | 58 | 64 | 137 |
CSS | 1 | 1 | 0 | 29 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 20 | 30.77% |
▷ Public methods | 60 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.69% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/paylate-logo-32x32.png | 3.15KB | 1.75KB | ▼ 44.50% |
images/paylate-logo-16x16.png | 1.00KB | 0.95KB | ▼ 5.05% |
images/paylate-logo-64x64.png | 10.02KB | 3.51KB | ▼ 64.96% |