Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼6.64ms] Passed 4 tests
Analyzing server-side resources used by API Improver for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 38.09 ▼2.72 |
Dashboard /wp-admin | 3.37 ▲0.07 | 52.11 ▼0.26 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.84 ▲0.37 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.59 ▼20.45 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.71 ▼3.13 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by API Improver for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.20 ▼1.18 | 1.83 ▼0.10 | 38.99 ▼7.85 |
Dashboard /wp-admin | 2,214 ▲26 | 5.82 ▼0.08 | 99.92 ▼21.94 | 37.98 ▼6.71 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.07 ▲0.07 | 36.77 ▲0.77 | 32.66 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 17.62 ▼5.43 | 705.21 ▲22.01 | 58.17 ▲5.78 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.26 ▲0.04 | 96.11 ▼1.42 | 42.08 ▼0.66 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% 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 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
Almost there! Just fix the following items
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/api-improver-for-woocommerce/modules/woocommerce/class-module-woocommerce.php
- > /wp-content/plugins/api-improver-for-woocommerce/modules/dependence/includes/views/html-notice.php
- > /wp-content/plugins/api-improver-for-woocommerce/modules/woocommerce/includes/api/v3/class-products.php
- > /wp-content/plugins/api-improver-for-woocommerce/api-improver-for-woocommerce.php
- > /wp-content/plugins/api-improver-for-woocommerce/modules/dependence/class-module-dependence.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: api, products, rest, woocommerce, mariovalney
api-improver-for-woocommerce/api-improver-for-woocommerce.php 85% from 13 tests
The principal PHP file in "API Improver for WooCommerce" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "4.5")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin323 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 112 | 296 | 323 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 16 | 61.54% |
▷ Protected methods | 1 | 3.85% |
▷ Private methods | 9 | 34.62% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG images were found in this plugin