Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.63MB] [CPU: ▼4.98ms] Passed 4 tests
Server-side resources used by WP PAY dla WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.64 | 41.42 ▲4.84 |
Dashboard /wp-admin | 3.93 ▲0.63 | 47.24 ▼1.59 |
Posts /wp-admin/edit.php | 3.98 ▲0.62 | 47.59 ▼0.55 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.62 | 85.73 ▼18.30 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 38.58 ▲0.53 |
Server storage [IO: ▲3.82MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,096 new files
Database: no new tables, 7 new options
New WordPress options |
---|
plugin_activation_pay-wp/pay-wp.php |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP PAY dla WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.44 ▲0.01 | 2.04 ▲0.18 | 44.54 ▲7.07 |
Dashboard /wp-admin | 2,213 ▲27 | 4.84 ▼0.23 | 100.94 ▼21.77 | 40.18 ▼7.14 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.02 ▲0.02 | 35.98 ▲0.91 | 34.08 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 17.52 ▼5.52 | 701.72 ▲41.18 | 55.16 ▲1.98 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▲0.04 | 106.16 ▲10.58 | 47.62 ▲4.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- plugin_activation_pay-wp/pay-wp.php
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 571× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WPPayVendor\\Psr\\Log\\AbstractLogger' not found in wp-content/plugins/pay-wp/vendor_prefixed/symfony/console/Logger/ConsoleLogger.php:25
- > PHP Fatal error
Uncaught Error: Class 'WPPayVendor\\JMS\\Serializer\\Metadata\\Driver\\AbstractDoctrineTypeDriver' not found in wp-content/plugins/pay-wp/vendor_prefixed/jms/serializer/src/Metadata/Driver/DoctrinePHPCRTypeDriver.php:13
- > PHP Fatal error
Uncaught Error: Interface 'WPPayVendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/pay-wp/vendor_prefixed/symfony/css-selector/Parser/Handler/IdentifierHandler.php:28
- > PHP Fatal error
Uncaught Error: Interface 'WPPayVendor\\Symfony\\Component\\CssSelector\\Parser\\ParserInterface' not found in wp-content/plugins/pay-wp/vendor_prefixed/symfony/css-selector/Parser/Shortcut/HashParser.php:27
- > PHP Fatal error
Uncaught Error: Interface 'WPPayVendor\\Symfony\\Component\\CssSelector\\Parser\\Handler\\HandlerInterface' not found in wp-content/plugins/pay-wp/vendor_prefixed/symfony/css-selector/Parser/Handler/NumberHandler.php:27
- > PHP Fatal error
Uncaught Error: Class 'WPPayVendor\\JMS\\Serializer\\Exception\onCastableTypeException' not found in wp-content/plugins/pay-wp/vendor_prefixed/jms/serializer/src/Exception/NonIntCastableTypeException.php:6
- > PHP Fatal error
Uncaught Error: Interface 'WPPayVendor\\JMS\\Serializer\\Exception\\Exception' not found in wp-content/plugins/pay-wp/vendor_prefixed/jms/serializer/src/Type/Exception/Exception.php:7
- > PHP Fatal error
Uncaught Error: Class 'WPPayVendor\\Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/pay-wp/vendor_prefixed/monolog/monolog/src/Monolog/Handler/ElasticSearchHandler.php:34
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/pay-wp/vendor_prefixed/wpdesk/bm-sdk/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/pay-wp/vendor_prefixed/wpdesk/bm-sdk/index.php on line 5
- > PHP Fatal error
Uncaught Error: Interface 'WPPayVendor\\GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/pay-wp/vendor_prefixed/guzzlehttp/promises/src/EachPromise.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% 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: bluemedia, blik, platnosci, payments, wp pay...
pay-wp/pay-wp.php 77% from 13 tests
This is the main PHP file of "WP PAY dla WooCommerce" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 145 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.8")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin60,951 lines of code in 1,080 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,023 | 2,604 | 32,878 | 58,002 |
JSON | 44 | 0 | 0 | 2,229 |
JavaScript | 5 | 45 | 2 | 307 |
Markdown | 5 | 82 | 0 | 273 |
CSS | 3 | 32 | 4 | 140 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 160)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 9.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 259.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 160.00 |
Code structure | ||
---|---|---|
Namespaces | 188 | |
Interfaces | 147 | |
Traits | 21 | |
Classes | 811 | |
▷ Abstract classes | 49 | 6.04% |
▷ Concrete classes | 762 | 93.96% |
▷ Final classes | 206 | 27.03% |
Methods | 4,886 | |
▷ Static methods | 492 | 10.07% |
▷ Public methods | 3,818 | 78.14% |
▷ Protected methods | 400 | 8.19% |
▷ Private methods | 668 | 13.67% |
Functions | 426 | |
▷ Named functions | 189 | 44.37% |
▷ Anonymous functions | 237 | 55.63% |
Constants | 443 | |
▷ Global constants | 9 | 2.03% |
▷ Class constants | 434 | 97.97% |
▷ Public constants | 389 | 89.63% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/octolize.com.png | 88.91KB | 39.07KB | ▼ 56.06% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/logo.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.pl.png | 2.36KB | 2.43KB | 0.00% |
vendor_prefixed/wpdesk/wp-wpdesk-tracker/src/assets/images/wpdesk.net.png | 2.36KB | 2.43KB | 0.00% |
assets/images/icon-blik.png | 7.87KB | 1.43KB | ▼ 81.83% |