Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/public-woo-api/includes/class-public-woo-api.php+192
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.09ms] Passed 4 tests
An overview of server-side resources used by Public Woo Api
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.31 ▲2.58 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.35 ▼0.08 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.83 ▲0.91 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.85 ▼11.67 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.67 ▼1.52 |
Public Woo Options /wp-admin/tools.php?page=public_woo_api_options | 3.22 | 30.06 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 7 new options
New WordPress options |
---|
public_woo_api_main_options |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Public Woo Api: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲70 | 13.60 ▼1.15 | 1.74 ▼0.26 | 41.87 ▼22.44 |
Dashboard /wp-admin | 2,230 ▲42 | 5.81 ▲0.93 | 98.91 ▼11.63 | 38.36 ▼5.87 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.02 ▲0.03 | 39.34 ▲3.13 | 36.74 ▲5.55 |
Add New Post /wp-admin/post-new.php | 1,535 ▲15 | 23.21 ▲0.09 | 668.39 ▲42.86 | 67.22 ▲10.07 |
Media Library /wp-admin/upload.php | 1,409 ▲30 | 4.22 ▲0.04 | 97.09 ▼3.68 | 42.39 ▼2.96 |
Public Woo Options /wp-admin/tools.php?page=public_woo_api_options | 858 | 2.18 | 24.76 | 30.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/public-woo-api/vendor/automattic/woocommerce/tests/bootstrap.php
- > /wp-content/plugins/public-woo-api/trunk/vendor/automattic/woocommerce/tests/bootstrap.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/trunk/vendor/automattic/woocommerce/tests/WooCommerce/Tests/ClientTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/RequestTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/trunk/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/RequestTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/HttpClientExceptionTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/trunk/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/trunk/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OptionsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/BasicAuthTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/OptionsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/public-woo-api/trunk/vendor/automattic/woocommerce/tests/WooCommerce/Tests/HttpClient/ResponseTest.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
public-woo-api/public-woo-api.php Passed 13 tests
"Public Woo Api" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
Allows to fetch WooCommerce products, categories, tags, variations and reviews without authentication.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,919 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 529 | 1,339 | 1,613 |
Markdown | 1 | 40 | 0 | 118 |
JSON | 3 | 0 | 0 | 90 |
CSS | 1 | 6 | 4 | 32 |
XML | 2 | 1 | 0 | 26 |
YAML | 2 | 6 | 0 | 21 |
JavaScript | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 52 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 326 | |
▷ Static methods | 10 | 3.07% |
▷ Public methods | 272 | 83.44% |
▷ Protected methods | 40 | 12.27% |
▷ Private methods | 14 | 4.29% |
Functions | 14 | |
▷ Named functions | 10 | 71.43% |
▷ Anonymous functions | 4 | 28.57% |
Constants | 14 | |
▷ Global constants | 2 | 14.29% |
▷ Class constants | 12 | 85.71% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin