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: ▲2.69MB] [CPU: ▲9.13ms] Passed 4 tests
Server-side resources used by PayPal Zettle POS for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.14 ▲2.68 | 50.76 ▲9.20 |
Dashboard /wp-admin | 6.00 ▲2.69 | 56.89 ▲9.20 |
Posts /wp-admin/edit.php | 6.05 ▲2.69 | 61.57 ▲17.96 |
Add New Post /wp-admin/post-new.php | 8.59 ▲2.71 | 95.38 ▲0.16 |
Media Library /wp-admin/upload.php | 5.92 ▲2.69 | 57.88 ▲24.45 |
Server storage [IO: ▲3.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 1,308 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PayPal Zettle POS for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.22 ▼1.39 | 1.87 ▼0.69 | 38.91 ▼10.17 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.96 | 106.31 ▼11.03 | 41.39 ▼5.72 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.10 ▲0.10 | 40.24 ▲4.72 | 38.87 ▲8.57 |
Add New Post /wp-admin/post-new.php | 1,537 ▼7 | 23.17 ▲4.97 | 674.64 ▲18.91 | 52.00 ▼3.54 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.04 | 100.60 ▼1.20 | 43.40 ▼1.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- db_upgraded
- woocommerce_zettle_info
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- woocommerce_zettle_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/zettle-pos-integration/uninstall.php
- 690× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/zettle-pos-integration/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Container\\ContainerInterface' not found in wp-content/plugins/zettle-pos-integration/src/Container/ArrayContainer.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Inpsyde\\Zettle\\Auth\\OAuth\\Token\\TokenInterface' not found in wp-content/plugins/zettle-pos-integration/modules/zettle-auth/src/OAuth/Token/Token.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Dhii\\Collection\\MutableContainerInterface' not found in wp-content/plugins/zettle-pos-integration/vendor/dhii/containers/src/FlashContainer.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Inpsyde\\Queue\\Queue\\Job\\JobRepository' not found in wp-content/plugins/zettle-pos-integration/modules/inpsyde-queue/src/Queue/Job/EphemeralJobRepository.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Inpsyde\\Zettle\\PhpSdk\\DAL\\Provider\\Image\\UrlProviderInterface' not found in wp-content/plugins/zettle-pos-integration/modules/zettle-php-sdk/src/DAL/Provider/Image/WordpressUrlProvider.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Inpsyde\\Zettle\\Onboarding\\Settings\\View\\OnboardingView' not found in wp-content/plugins/zettle-pos-integration/modules/zettle-onboarding/src/Settings/View/WelcomeView.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Inpsyde\\Zettle\\PhpSdk\\Exception\\ValidatorException' not found in wp-content/plugins/zettle-pos-integration/modules/zettle-php-sdk/src/Exception/Validator/MaximumStockException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Inpsyde\\Zettle\\PhpSdk\\Exception\\ValidatorException' not found in wp-content/plugins/zettle-pos-integration/modules/zettle-php-sdk/src/DAL/Exception/Coordinates/InvalidLongitudeException.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Http\\Client\\HttpClient' not found in wp-content/plugins/zettle-pos-integration/vendor/php-http/client-common/src/HttpClientPool/HttpClientPoolItem.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
4 plugin tags: woocommerce, zettle, point-of-sale, payments
zettle-pos-integration/zettle-pos-integration.php 92% from 13 tests
The main PHP file in "PayPal Zettle POS for WooCommerce" ver. 1.5.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected56,831 lines of code in 1,255 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,224 | 13,053 | 24,176 | 52,207 |
JSON | 12 | 0 | 0 | 3,741 |
XML | 5 | 14 | 0 | 485 |
Markdown | 2 | 65 | 0 | 224 |
YAML | 4 | 6 | 0 | 92 |
reStructuredText | 1 | 74 | 78 | 75 |
JavaScript | 4 | 0 | 3 | 4 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 3.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 137.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 254 | |
Interfaces | 244 | |
Traits | 36 | |
Classes | 858 | |
▷ Abstract classes | 15 | 1.75% |
▷ Concrete classes | 843 | 98.25% |
▷ Final classes | 176 | 20.88% |
Methods | 3,810 | |
▷ Static methods | 221 | 5.80% |
▷ Public methods | 3,279 | 86.06% |
▷ Protected methods | 197 | 5.17% |
▷ Private methods | 334 | 8.77% |
Functions | 876 | |
▷ Named functions | 51 | 5.82% |
▷ Anonymous functions | 825 | 94.18% |
Constants | 367 | |
▷ Global constants | 30 | 8.17% |
▷ Class constants | 337 | 91.83% |
▷ Public constants | 300 | 89.02% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected