Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼0.79ms] Passed 4 tests
An overview of server-side resources used by Croatian payment slip generator for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.37 ▼1.45 |
Dashboard /wp-admin | 3.31 ▲0.00 | 58.17 ▲3.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.17 ▲2.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.30 ▼5.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.26 ▲2.05 |
Server storage [IO: ▲2.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 300 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Croatian payment slip generator for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.29 ▲0.06 | 1.89 ▲0.13 | 42.06 ▼0.20 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.04 | 93.78 ▲2.34 | 38.22 ▼5.60 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.03 | 39.65 ▼5.29 | 35.38 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,534 ▼11 | 23.26 ▲0.10 | 646.79 ▲27.14 | 53.84 ▼2.66 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.23 ▲0.05 | 93.31 ▼14.17 | 42.90 ▼1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/Wooplatnica_Initializer.php
- 139× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'BigFish\\PDF417\\EncoderInterface' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/bigfish/pdf417/src/Encoders/NumberEncoder.php:13
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\File' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Image.php:56
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\AbstractEncoder' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Gd/Encoder.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Exception\\ImageException' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Exception/NotWritableException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/guzzlehttp/psr7/src/LimitStream.php:12
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Gd/Commands/InvertCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Gd/Commands/ResetCommand.php:8
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Imagick/Commands/BrightnessCommand.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/guzzlehttp/psr7/src/DroppingStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/croatian-payment-slip-generator-for-woocommerce/vendor/intervention/image/src/Intervention/Image/Gd/Commands/MaskCommand.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
9 plugin tags: hrvatska, opa uplatnica, woocommerce, virman, croatia...
croatian-payment-slip-generator-for-woocommerce/Wooplatnica_Initializer.php 92% from 13 tests
Analyzing the main PHP file in "Croatian payment slip generator for WooCommerce" version 1.7.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("croatian-payment-slip-generator-for-woocommerce.php" instead of "Wooplatnica_Initializer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin16,570 lines of code in 260 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 220 | 3,027 | 6,845 | 14,259 |
Markdown | 10 | 519 | 0 | 906 |
JSON | 13 | 0 | 0 | 688 |
PO File | 1 | 78 | 5 | 257 |
CSS | 2 | 0 | 0 | 182 |
JavaScript | 5 | 67 | 600 | 147 |
YAML | 8 | 26 | 3 | 116 |
XML | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 337.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 16 | |
Traits | 2 | |
Classes | 175 | |
▷ Abstract classes | 8 | 4.57% |
▷ Concrete classes | 167 | 95.43% |
▷ Final classes | 9 | 5.39% |
Methods | 981 | |
▷ Static methods | 83 | 8.46% |
▷ Public methods | 805 | 82.06% |
▷ Protected methods | 79 | 8.05% |
▷ Private methods | 97 | 9.89% |
Functions | 72 | |
▷ Named functions | 39 | 54.17% |
▷ Anonymous functions | 33 | 45.83% |
Constants | 45 | |
▷ Global constants | 1 | 2.22% |
▷ Class constants | 44 | 97.78% |
▷ Public constants | 44 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/payment-slip-template-hub-3a.png | 52.66KB | 42.82KB | ▼ 18.68% |
assets/images/payment-slip-template-hub-3.png | 59.88KB | 50.20KB | ▼ 16.16% |