Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.64ms] Passed 4 tests
This is a short check of server-side resources used by Product Attribute Global Order and Visibility
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.47 ▼0.14 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.91 ▲1.07 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.05 ▼3.70 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.01 ▲14.24 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.73 ▲0.23 |
Product Attribute Order /wp-admin/edit.php?post_type=product&page=product_attribute_order | 3.01 | 30.08 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Product Attribute Global Order and Visibility: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▼7 | 13.21 ▼0.06 | 1.68 ▼0.12 | 41.75 ▼0.27 |
Dashboard /wp-admin | 2,213 ▲10 | 4.85 ▼0.94 | 96.13 ▲2.07 | 42.04 ▲0.49 |
Posts /wp-admin/edit.php | 2,095 ▲9 | 1.98 ▼0.04 | 35.82 ▲1.35 | 31.79 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 18.25 ▼5.08 | 592.33 ▼75.49 | 48.21 ▼5.13 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.23 ▲0.08 | 93.37 ▼14.42 | 45.08 ▲0.12 |
Product Attribute Order /wp-admin/edit.php?post_type=product&page=product_attribute_order | 28 | 0.44 | 0.10 | 3.57 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/product-attribute-global-order-and-visibility/woo-attribute-global-order-visibility.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/product-attribute-global-order-and-visibility/inc/class.product-attribute-order.php:68
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=product&page=product_attribute_order
- > Network (severe)
wp-admin/edit.php?post_type=product&page=product_attribute_order - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: product attribute order setting, product attribute visibility, product attribute order visibility, product attribute, product attribute dynamic...
product-attribute-global-order-and-visibility/woo-attribute-global-order-visibility.php 77% from 13 tests
The entry point to "Product Attribute Global Order and Visibility" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("product-attribute-global-order-and-visibility.php" instead of "woo-attribute-global-order-visibility.php")
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 plugin264 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 85 | 264 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 25.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There are no PNG files in this plugin