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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.59ms] Passed 4 tests
Server-side resources used by Na splátkyTB
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.72 ▲0.08 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.63 ▼2.47 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.89 ▼4.32 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 95.74 ▼7.63 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.51 ▲2.79 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Na splátkyTB
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.22 ▼1.16 | 4.40 ▲2.78 | 38.24 ▼6.73 |
Dashboard /wp-admin | 2,215 ▲27 | 5.84 ▼0.05 | 99.34 ▼8.47 | 41.35 ▼2.24 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.00 ▲0.02 | 41.03 ▲0.13 | 38.35 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 23.30 ▲5.75 | 652.46 ▼22.75 | 51.53 ▼3.35 |
Media Library /wp-admin/upload.php | 1,394 ▲9 | 4.21 ▲0.02 | 96.23 ▼5.19 | 43.05 ▼1.73 |
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 were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/na-splatky-tb/templates/nasplatky-modal-boxes.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/na-splatky-tb/includes/class-gateway.php:8
- > PHP Warning
Use of undefined constant PRODUCT_NAME - assumed 'PRODUCT_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/na-splatky-tb/templates/nasplatky-modal-boxes.php on line 4
- > PHP Warning
Use of undefined constant PRODUCT_NAME - assumed 'PRODUCT_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/na-splatky-tb/templates/nasplatky-modal.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'MatejKravjar\\BuildingBlocks\\SimpleLogger_1a\\SimpleLogger' not found in wp-content/plugins/na-splatky-tb/vendor/building-blocks/WoocommerceLogger.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function Webikon\\Woocommerce_Payment_Gateway\\Tatrabanka\asplatky\\add_action() in wp-content/plugins/na-splatky-tb/na-splatky-tb.php:24
- > PHP Notice
Undefined variable: data in wp-content/plugins/na-splatky-tb/templates/nasplatky-modal-boxes.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function Webikon\\Woocommerce_Payment_Gateway\\Tatrabanka\asplatky\\__() in wp-content/plugins/na-splatky-tb/templates/nasplatky-modal.php:12
- > PHP Notice
Undefined variable: data in wp-content/plugins/na-splatky-tb/templates/nasplatky-modal-boxes.php on line 127
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 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
4 plugin tags: woocommerce, nasplatky, payments, tatrabanka
na-splatky-tb/na-splatky-tb.php Passed 13 tests
The entry point to "Na splátkyTB" version 1.0.7 is a PHP file that has certain tags in its header comment area
52 characters long description:
Na splátkyTB payment gateway for WooCommerce e-shop
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
There were no executable files found in this plugin1,956 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 177 | 179 | 1,129 |
Sass | 3 | 67 | 7 | 357 |
JavaScript | 3 | 14 | 77 | 197 |
PO File | 1 | 60 | 66 | 189 |
SVG | 5 | 0 | 1 | 79 |
JSON | 1 | 0 | 0 | 4 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 14 | 37.84% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 1 | 4.55% |
▷ Anonymous functions | 21 | 95.45% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/illustration.png | 5.54KB | 4.97KB | ▼ 10.37% |
assets/nasplatky.png | 6.83KB | 5.36KB | ▼ 21.56% |