Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.70ms] Passed 4 tests
This is a short check of server-side resources used by Tuyo Pay Gateway Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.94 ▼4.49 |
Dashboard /wp-admin | 3.32 ▼0.03 | 49.65 ▼15.06 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.92 ▲3.61 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.67 ▼12.77 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.98 ▲1.52 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tuyo Pay Gateway Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.25 ▼0.10 | 1.61 ▼0.45 | 43.91 ▲1.86 |
Dashboard /wp-admin | 2,202 ▲25 | 5.69 ▲0.03 | 84.85 ▼12.01 | 41.18 ▼2.83 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 1.95 ▼0.06 | 39.69 ▲5.07 | 36.26 ▲0.69 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.63 ▲5.12 | 687.72 ▲31.58 | 60.41 ▼2.07 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.17 ▼0.04 | 99.56 ▼9.06 | 45.56 ▼3.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: checkout, tuyo, payments, store, el salvador...
tuyo-pay-gateway/tuyo-pay-gateway.php Passed 13 tests
This is the main PHP file of "Tuyo Pay Gateway Plugin" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Plugin WooCommerce para la pasarela de pagos Tuyo Pay.
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 plugin622 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 124 | 245 | 616 |
CSS | 1 | 1 | 0 | 6 |
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.41 |
Average class complexity | 10.62 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 44 | |
▷ Static methods | 15 | 34.09% |
▷ Public methods | 42 | 95.45% |
▷ Protected methods | 1 | 2.27% |
▷ Private methods | 1 | 2.27% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 3 | 23.08% |
▷ Class constants | 10 | 76.92% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/tuyopay-full.png | 2.31KB | 2.01KB | ▼ 12.70% |
assets/img/tuyopay-white.png | 1.74KB | 1.90KB | 0.00% |
assets/img/tuyopay-logo.png | 2.73KB | 2.09KB | ▼ 23.20% |
assets/img/tuyopay-green.png | 2.56KB | 1.90KB | ▼ 25.72% |