Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.54ms] Passed 4 tests
Analyzing server-side resources used by Shopz GraphQL API for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.09 ▲1.33 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.68 ▼4.14 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.79 ▼3.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.87 ▼21.94 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.42 ▼0.81 |
Server storage [IO: ▲10.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2,470 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Shopz GraphQL API for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.07 | 2.23 ▲0.41 | 43.54 ▼2.10 |
Dashboard /wp-admin | 2,203 ▲18 | 5.80 ▼0.09 | 94.52 ▼8.03 | 38.53 ▼0.88 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.04 ▲0.04 | 39.86 ▼3.59 | 36.76 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,535 ▼9 | 22.98 ▲4.78 | 631.94 ▼7.31 | 79.44 ▲28.79 |
Media Library /wp-admin/upload.php | 1,388 ▲9 | 4.25 ▲0.00 | 95.03 ▼5.36 | 42.85 ▼0.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/woo-graphql-api/wc-graphql.php
- > /wp-content/plugins/woo-graphql-api/vendor/automattic/woocommerce/tests/bootstrap.php
- 2195× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'GraphQL\\Executor\\Promise\\PromiseAdapter' not found in wp-content/plugins/woo-graphql-api/vendor/webonyx/graphql-php/src/Executor/Promise/Adapter/SyncPromiseAdapter.php:19
- > PHP Fatal error
Uncaught Error: Class 'WCGQL\\Mobile\\Providers\\MobileDriver' not found in wp-content/plugins/woo-graphql-api/includes/Mobile/Providers/Mobily.php:7
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Exceptions\\TwilioException' not found in wp-content/plugins/woo-graphql-api/vendor/twilio/sdk/src/Twilio/Exceptions/ConfigurationException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/woo-graphql-api/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/Usage/Record/ThisMonthInstance.php:35
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/woo-graphql-api/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/ApplicationOptions.php:85
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/woo-graphql-api/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/AddressOptions.php:59
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/woo-graphql-api/vendor/twilio/sdk/src/Twilio/Rest/Chat/V1/Service/UserList.php:19
- > PHP Fatal error
Uncaught Error: Class 'GraphQL\\Type\\Definition\\ScalarType' not found in wp-content/plugins/woo-graphql-api/vendor/webonyx/graphql-php/tests/Executor/TestClasses.php:46
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/woo-graphql-api/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/UsageList.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twilio\\InstanceResource' not found in wp-content/plugins/woo-graphql-api/vendor/twilio/sdk/src/Twilio/Rest/Sync/V1/Service/SyncMap/SyncMapPermissionInstance.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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: ios, build, shopz, wordpress, graphql...
woo-graphql-api/wc-graphql.php 85% from 13 tests
The main file in "Shopz GraphQL API for WooCommerce" v. 2.1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.6.0")
- Main file name: Name the main plugin file the same as the plugin slug ("woo-graphql-api.php" instead of "wc-graphql.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin160,365 lines of code in 2,449 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,381 | 36,271 | 122,045 | 153,467 |
Markdown | 37 | 1,089 | 0 | 5,751 |
JSON | 9 | 1 | 0 | 563 |
YAML | 8 | 47 | 4 | 210 |
XML | 5 | 15 | 5 | 181 |
GraphQL | 3 | 28 | 12 | 113 |
JavaScript | 3 | 6 | 17 | 69 |
Dockerfile | 1 | 3 | 0 | 8 |
SQL | 1 | 0 | 0 | 2 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 3.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 244 | |
Interfaces | 30 | |
Traits | 15 | |
Classes | 2,810 | |
▷ Abstract classes | 288 | 10.25% |
▷ Concrete classes | 2,522 | 89.75% |
▷ Final classes | 4 | 0.16% |
Methods | 16,195 | |
▷ Static methods | 1,064 | 6.57% |
▷ Public methods | 14,311 | 88.37% |
▷ Protected methods | 1,436 | 8.87% |
▷ Private methods | 448 | 2.77% |
Functions | 1,363 | |
▷ Named functions | 36 | 2.64% |
▷ Anonymous functions | 1,327 | 97.36% |
Constants | 272 | |
▷ Global constants | 11 | 4.04% |
▷ Class constants | 261 | 95.96% |
▷ Public constants | 244 | 93.49% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin