Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.60MB] [CPU: ▼17.94ms] Passed 4 tests
An overview of server-side resources used by Vitt Attribute Hierarchy for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.10 ▲4.86 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.35 ▼4.73 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 45.91 ▼8.24 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.63 | 37.66 ▼61.03 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.90 ▲2.23 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
attribute_connection |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Vitt Attribute Hierarchy for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.28 ▼1.02 | 1.92 ▲0.16 | 48.79 ▲9.07 |
Dashboard /wp-admin | 2,222 ▲34 | 4.86 ▼0.01 | 109.29 ▲8.55 | 37.76 ▼10.33 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 2.02 ▼0.04 | 38.84 ▼1.90 | 34.81 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,425 ▼117 | 17.81 ▼0.52 | 621.50 ▲18.44 | 54.00 ▼11.75 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▲0.05 | 95.82 ▼0.73 | 41.92 ▼1.34 |
Sub Level Menu /wp-admin/vittfiles-sub-menu-attribute-config.php | 26 | 0.44 | 0.13 | 14.50 |
Del attr conn /wp-admin/vittfiles-delete-attribute-connection-page.php | 26 | 0.44 | 0.12 | 5.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- attribute_connection
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vitt-attribute-hierarchy-for-woocommerce/include/responses.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vitt-attribute-hierarchy-for-woocommerce/vitt-attribute-hierarchy.php:18
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/vittfiles-sub-menu-attribute-config.php
- > Network (severe)
wp-admin/vittfiles-sub-menu-attribute-config.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/vittfiles-delete-attribute-connection-page.php
- > Network (severe)
wp-admin/vittfiles-delete-attribute-connection-page.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #10, #11, #3, #4, #5, #6, #7, #8, #9 in vitt-attribute-hierarchy-for-woocommerce/assets to your readme.txt
vitt-attribute-hierarchy-for-woocommerce/vitt-attribute-hierarchy.php 92% from 13 tests
The main PHP file in "Vitt Attribute Hierarchy for WooCommerce" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vitt-attribute-hierarchy-for-woocommerce.php" instead of "vitt-attribute-hierarchy.php")
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
No dangerous file extensions were detected554 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 38 | 34 | 505 |
Markdown | 1 | 24 | 0 | 49 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin