Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/platron-payment-gate-woocommerce/PG_Signature.php+14
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.79MB] [CPU: ▼54.24ms] Passed 4 tests
Server-side resources used by Platron for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 6.26 ▼35.51 |
Dashboard /wp-admin | 2.21 ▼1.09 | 6.63 ▼39.42 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 6.78 ▼43.10 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.67 | 6.45 ▼98.93 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 5.11 ▼33.65 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Platron for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.15 ▼1.14 | 1.57 ▼0.20 | 39.31 ▼17.02 |
Dashboard /wp-admin | 2,203 ▲32 | 4.86 ▼1.04 | 111.83 ▲10.46 | 40.55 ▼5.62 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.01 ▼0.16 | 39.38 ▲3.57 | 35.42 ▲2.27 |
Add New Post /wp-admin/post-new.php | 1,533 ▼3 | 23.11 ▼0.07 | 610.16 ▼31.33 | 66.85 ▲14.91 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.31 ▲0.08 | 93.85 ▼1.09 | 40.50 ▼0.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/platron-payment-gate-woocommerce/PG_Signature.php+14
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: woocommerce, payment gateway, payment, payment gate, payment system...
platron-payment-gate-woocommerce/wc-platron.php 92% from 13 tests
"Platron for WooCommerce" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("platron-payment-gate-woocommerce.php" instead of "wc-platron.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin503 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 100 | 114 | 503 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 11 | 39.29% |
▷ Public methods | 21 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 25.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.31MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 46.97KB | 15.59KB | ▼ 66.81% |
assets/banner-772x250.png | 139.39KB | 64.71KB | ▼ 53.57% |
assets/screenshot-1.png | 68.58KB | 32.07KB | ▼ 53.24% |
assets/screenshot-2.png | 54.13KB | 25.82KB | ▼ 52.30% |
assets/icon-128x128.png | 5.89KB | 2.13KB | ▼ 63.85% |