wp_json_api 3.5.13 wp_json_api: ^3.5.13 copied to clipboard
WordPress and WooCommerce JSON API for Flutter Mobile. API allows you to login, register new users, get users info and more.
We analyzed this package 6 hours ago, and awarded it 130 pub points (of a possible 160):
0/10 points: Provide a valid pubspec.yaml
Failed to verify repository URL.
Please provide a valid repository
URL in pubspec.yaml
, such that:
repository
can be cloned,- a clone of the repository contains a
pubspec.yaml
, which:,- contains
name: wp_json_api
, - contains a
version
property, and, - does not contain a
publish_to
property.
- contains
Unable to access git repository: Could not accept branch name: 4.x
.
5/5 points: Provide a valid README.md
5/5 points: Provide a valid CHANGELOG.md
10/10 points: Use an OSI-approved license
Detected license: BSD-2-Clause
.
0/10 points: 20% or more of the public API has dartdoc comments
48 out of 343 API elements (14.0 %) have documentation comments.
Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API. Document at least 20% of the public API elements.
To highlight public API members missing documentation consider enabling the public_member_api_docs
lint.
Some symbols that are missing documentation: empty_username_exception
, empty_username_exception.EmptyUsernameException
, empty_username_exception.EmptyUsernameException.EmptyUsernameException
, empty_username_exception.EmptyUsernameException.message
, existing_user_email_exception
.
10/10 points: Package has an example and has no issues with screenshots
20/20 points: Supports 5 of 6 possible platforms (iOS, Android, Web, Windows, macOS, Linux)
-
✓ Android
-
✓ iOS
-
✓ Windows
-
✓ Linux
-
✓ macOS
These platforms are not supported:
Package not compatible with platform Web
Because:
package:wp_json_api/wp_json_api.dart
that imports:package:wp_json_api/networking/network_manager.dart
that imports:package:wp_json_api/models/wp_user.dart
that imports:package:nylo_support/helpers/helper.dart
that imports:package:nylo_support/nylo.dart
that imports:package:nylo_support/exceptions/validation_exception.dart
that imports:package:nylo_support/validation/rules.dart
that imports:package:nylo_support/helpers/extensions.dart
that imports:package:nylo_support/router/router.dart
that imports:package:nylo_support/router/ui/page_not_found.dart
that imports:package:nylo_support/localization/app_localization.dart
that imports:package:nylo_support/widgets/ny_language_switcher.dart
that imports:package:nylo_support/widgets/ny_state.dart
that imports:package:nylo_support/validation/ny_validator.dart
that imports:package:nylo_support/metro/metro_service.dart
that imports:package:nylo_support/metro/metro_console.dart
that imports:dart:io
0/0 points: WASM compatibility
Package not compatible with runtime wasm
Because:
package:wp_json_api/wp_json_api.dart
that imports:package:wp_json_api/networking/network_manager.dart
that imports:package:wp_json_api/models/wp_user.dart
that imports:package:nylo_support/helpers/helper.dart
that imports:package:nylo_support/nylo.dart
that imports:package:nylo_support/exceptions/validation_exception.dart
that imports:package:nylo_support/validation/rules.dart
that imports:package:nylo_support/helpers/extensions.dart
that imports:package:nylo_support/router/router.dart
that imports:package:nylo_support/router/ui/page_not_found.dart
that imports:package:nylo_support/localization/app_localization.dart
that imports:package:nylo_support/widgets/ny_language_switcher.dart
that imports:package:nylo_support/widgets/ny_state.dart
that imports:package:nylo_support/validation/ny_validator.dart
that imports:package:nylo_support/metro/metro_service.dart
that imports:package:nylo_support/metro/metro_console.dart
that imports:dart:io
This package is not compatible with runtime wasm
, and will not be rewarded full points in a future version of the scoring model.
See https://dart.dev/web/wasm for details.
40/50 points: code has no errors, warnings, lints, or formatting issues
Found 8 issues. Showing the first 2:
INFO: Use 'isEmpty' instead of 'length' to test whether the collection is empty.
lib/models/responses/wc_customer_info_response.dart:114:9
╷
114 │ metaData.value!.length < 1) {
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/models/responses/wc_customer_info_response.dart
INFO: Use 'isEmpty' instead of 'length' to test whether the collection is empty.
lib/models/responses/wp_user_info_response.dart:132:9
╷
132 │ metaData.value!.length < 1) {
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
To reproduce make sure you are using the lints_core and run flutter analyze lib/models/responses/wp_user_info_response.dart
10/10 points: All of the package dependencies are supported in the latest version
Package | Constraint | Compatible | Latest |
---|---|---|---|
collection |
^1.17.0 |
1.18.0 | 1.19.1 |
dio |
^5.4.3+1 |
5.7.0 | 5.7.0 |
flutter |
flutter |
0.0.0 | 0.0.0 |
nylo_support |
^5.81.2 |
5.82.2 | 6.3.0 |
Transitive dependencies
To reproduce run dart pub outdated --no-dev-dependencies --up-to-date --no-dependency-overrides
.
The constraint `^5.81.2` on nylo_support does not support the stable version `6.0.0`, that was published 12 days ago.
When nylo_support is 30 days old, this package will no longer be awarded points in this category.
Try running dart pub upgrade --major-versions nylo_support
to update the constraint.
10/10 points: Package supports latest stable Dart and Flutter SDKs
20/20 points: Compatible with dependency constraint lower bounds
pub downgrade
does not expose any static analysis error.
Analyzed with Pana 0.22.15
, Flutter 3.24.4
, Dart 3.5.4
.
Check the analysis log for details.