Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.36MB] [CPU: ▼5.66ms] Passed 4 tests
Server-side resources used by Products and Variations Visibility PRO For WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 41.77 ▲2.26 |
Dashboard /wp-admin | 3.68 ▲0.33 | 51.93 ▼7.99 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 45.72 ▲1.18 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 82.71 ▼16.11 |
Media Library /wp-admin/upload.php | 3.60 ▲0.37 | 37.96 ▲0.29 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 166 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Products and Variations Visibility PRO For WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.35 ▲0.00 | 1.68 ▼0.01 | 44.11 ▲0.67 |
Dashboard /wp-admin | 2,209 ▲29 | 5.62 ▼0.03 | 93.73 ▲2.50 | 42.16 ▼0.12 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 2.02 ▲0.00 | 35.77 ▲1.37 | 33.81 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.60 ▲0.59 | 706.57 ▼46.52 | 51.99 ▼1.30 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.20 ▲0.02 | 94.48 ▼15.70 | 40.64 ▼7.49 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 93× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'OneTeamSoftware\\WC\\Rule\\ConditionDefinition\\ConditionDefinitionInterface' not found in wp-content/plugins/wc-products-visibility/includes/WC/Rule/ConditionDefinition/StockStatus.php:10
- > PHP Fatal error
Uncaught Error: Class 'OneTeamSoftware\\Logger\\AbstractLogger' not found in wp-content/plugins/wc-products-visibility/includes/Logger/NullLogger.php:7
- > PHP Fatal error
Uncaught Error: Class 'OneTeamSoftware\\Rule\\Matcher\\ItemsMatcher' not found in wp-content/plugins/wc-products-visibility/includes/WC/Rule/Matcher/Product.php:12
- > PHP Fatal error
Uncaught Error: Class 'OneTeamSoftware\\WC\\Admin\\PageForm\\AbstractPageForm' not found in wp-content/plugins/wc-products-visibility/includes/WC/ProductsVisibility/Admin/GeneralForm.php:11
- > PHP Fatal error
Uncaught Error: Class 'OneTeamSoftware\\WC\\Rule\\ConditionDefinition\\AbstractOptionsConditionDefinition' not found in wp-content/plugins/wc-products-visibility/includes/WC/Rule/ConditionDefinition/Attributes.php:12
- > PHP Fatal error
Uncaught Error: Class 'OneTeamSoftware\\Logger\\AbstractLogger' not found in wp-content/plugins/wc-products-visibility/includes/Logger/EchoLogger.php:7
- > PHP Fatal error
Uncaught Error: Interface 'OneTeamSoftware\\Rule\\Matcher\\ItemOptionMatcherInterface' not found in wp-content/plugins/wc-products-visibility/includes/WC/Rule/Matcher/ItemOptionMatcher/Product.php:12
- > PHP Fatal error
Uncaught Error: Interface 'OneTeamSoftware\\WC\\Rule\\ConditionDefinition\\ConditionDefinitionInterface' not found in wp-content/plugins/wc-products-visibility/includes/WC/Rule/ConditionDefinition/AbstractOptionsConditionDefinition.php:10
- > PHP Fatal error
Uncaught Error: Interface 'OneTeamSoftware\\WC\\ProductsVisibility\\ItemsFilter\\ItemsFilterInterface' not found in wp-content/plugins/wc-products-visibility/includes/WC/ProductsVisibility/ItemsFilter/ItemsSorter.php:7
- > PHP Fatal error
Uncaught Error: Interface 'OneTeamSoftware\\WC\\Options\\TaxonomyArrayBuilderInterface' not found in wp-content/plugins/wc-products-visibility/includes/WC/Options/TaxonomyArrayBuilder.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: woocommerce product variations visibility, product variations visibility, product visibility, woocommerce, visibility...
wc-products-visibility/wc-products-visibility.php Passed 13 tests
"Products and Variations Visibility PRO For WooCommerce" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Define rules when products and variations are visible or hidden.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected8,798 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 148 | 1,898 | 4,648 | 7,322 |
JSON | 1 | 0 | 0 | 1,307 |
CSS | 6 | 14 | 0 | 101 |
JavaScript | 5 | 26 | 72 | 68 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 24 | |
Traits | 0 | |
Classes | 116 | |
▷ Abstract classes | 9 | 7.76% |
▷ Concrete classes | 107 | 92.24% |
▷ Final classes | 0 | 0.00% |
Methods | 603 | |
▷ Static methods | 23 | 3.81% |
▷ Public methods | 468 | 77.61% |
▷ Protected methods | 101 | 16.75% |
▷ Private methods | 34 | 5.64% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 15 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 15 | 100.00% |
▷ Public constants | 11 | 73.33% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/1TeamSoftware-icon.png | 0.59KB | 0.75KB | 0.00% |
assets/images/1TeamSoftware-logo.png | 14.55KB | 4.50KB | ▼ 69.05% |