Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▼311.01ms] Passed 4 tests
Server-side resources used by WooCommerce SuperFaktura
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.47 | 59.10 ▲2.13 |
Dashboard /wp-admin | 3.88 ▲0.47 | 42.64 ▲2.22 |
Posts /wp-admin/edit.php | 4.10 ▲0.46 | 49.64 ▼3.86 |
Add New Post /wp-admin/post-new.php | 7.40 ▲0.43 | 102.69 ▼1,244.52 |
Media Library /wp-admin/upload.php | 3.82 ▲0.53 | 29.57 ▲4.08 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_wc_sf_log |
New WordPress options |
---|
wc_sf_db_version |
Browser metrics Passed 4 tests
WooCommerce SuperFaktura: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,186 ▼536 | 16.20 ▲0.53 | 0.36 ▼5.86 | 37.46 ▲35.18 |
Dashboard /wp-admin | 2,893 ▲32 | 6.19 ▼0.09 | 117.99 ▼17.78 | 153.85 ▼4.85 |
Posts /wp-admin/edit.php | 2,693 ▼1 | 3.25 ▲0.01 | 63.88 ▼1.81 | 138.15 ▼11.99 |
Add New Post /wp-admin/post-new.php | 1,672 ▲11 | 21.42 ▲4.74 | 370.16 ▼28.48 | 152.49 ▼11.11 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.56 ▲0.03 | 146.64 ▲10.07 | 177.40 ▼4.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_wc_sf_log
- Zombie WordPress options were found after uninstall: 1 option
- wc_sf_db_version
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/woocommerce-superfaktura/vendors/Requests/Transport/fsockopen.php:15
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/woocommerce-superfaktura/includes/class-wc-settings-superfaktura.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Auth' not found in wp-content/plugins/woocommerce-superfaktura/vendors/Requests/Auth/Basic.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Requests_Transport' not found in wp-content/plugins/woocommerce-superfaktura/vendors/Requests/Transport/cURL.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% 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
5 plugin tags: faktura, woocommerce, superfaktura, invoice, proforma
woocommerce-superfaktura/wc-superfaktura.php 69% from 13 tests
Analyzing the main PHP file in "WooCommerce SuperFaktura" version 1.11.8
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 212 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("woocommerce-superfaktura.php" instead of "wc-superfaktura.php")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "3.7.0")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,419 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 1,096 | 2,227 | 5,251 |
PO File | 2 | 448 | 548 | 1,073 |
JavaScript | 2 | 27 | 6 | 95 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 46.95 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 404.00 |
Average method complexity | 4.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 218 | |
▷ Static methods | 39 | 17.89% |
▷ Public methods | 172 | 78.90% |
▷ Protected methods | 17 | 7.80% |
▷ Private methods | 29 | 13.30% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 17 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 17 | 100.00% |
▷ Public constants | 17 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ok.png | 0.98KB | 0.35KB | ▼ 64.45% |
images/fail.png | 1.24KB | 0.43KB | ▼ 65.36% |