Benchmarks
Plugin footprint 5% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Error in wp-content/plugins/advanced-wishlist-for-woocommerce/src/Logger/LoggerImpl.php+20
Uncaught Error: Call to undefined function AlgolWishlist\Logger\wc_get_logger() in wp-content/plugins/advanced-wishlist-for-woocommerce/src/Logger/LoggerImpl.php:20
Stack trace:
#0 wp-content/plugins/advanced-wishlist-for-woocommerce/src/Context.php(35): AlgolWishlist\Logger\LoggerImpl->__construct()
#1 wp-content/plugins/advanced-wishlist-for-woocommerce/awlContext.php(20): AlgolWishlist\Context->__construct()
#2 wp-content/plugins/advanced-wishlist-for-woocommerce/src/VersionFree/WishlistPageApp/WishlistPage.php(16): awlContext()
#3 wp-content/plugins/advanced-wishlist-for-woocommerce/src/VersionFree/PluginActions.php(62): AlgolWishlist\VersionFree\WishlistPageApp\WishlistPage->__construct()
#4 wp-includes/class-wp-hook.php(310): AlgolWishlist\VersionFree\PluginActions->install()
#5 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 wp-includes/
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.60ms] Passed 4 tests
Analyzing server-side resources used by Advanced Wishlist for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.78 ▲0.66 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.07 ▼14.42 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.88 ▲6.45 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 80.91 ▼10.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.12 ▲2.26 |
Server storage [IO: ▲6.67MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 593 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_algol_wishlist_wishlists_and_products |
wp_algol_wishlist_wishlists |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Advanced Wishlist for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.38 | 1.75 ▲0.18 | 44.72 ▲3.49 |
Dashboard /wp-admin | 2,209 ▲18 | 4.88 ▼0.00 | 101.21 ▼1.97 | 38.33 ▼6.10 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.05 | 39.11 ▲2.57 | 35.76 ▲0.41 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.13 ▲4.90 | 637.89 ▼17.60 | 55.94 ▲2.34 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.16 ▼0.08 | 97.64 ▼1.51 | 40.92 ▼6.18 |
Uninstaller [IO: ▲6.67MB] [DB: ▲0.00MB] 0% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attentionZombie tables were found after uninstall: 2 tables This plugin does not fully uninstall, leaving 7 options in the database
- Uninstall procedure had uncaught errors
- > Error in wp-content/plugins/advanced-wishlist-for-woocommerce/src/Logger/LoggerImpl.php+20
Uncaught Error: Call to undefined function AlgolWishlist\Logger\wc_get_logger() in wp-content/plugins/advanced-wishlist-for-woocommerce/src/Logger/LoggerImpl.php:20
Stack trace:
#0 wp-content/plugins/advanced-wishlist-for-woocommerce/src/Context.php(35): AlgolWishlist\Logger\LoggerImpl->__construct()
#1 wp-content/plugins/advanced-wishlist-for-woocommerce/awlContext.php(20): AlgolWishlist\Context->__construct()
#2 wp-content/plugins/advanced-wishlist-for-woocommerce/src/VersionFree/PluginActions.php(72): awlContext()
#3 wp-content/plugins/advanced-wishlist-for-woocommerce/uninstall.php(10): AlgolWishlist\VersionFree\PluginActions->uninstall()
#4 wp-admin/includes/plugin.php(1245): include_once('/var/www/wordpr...')
#5 wp-admin/includes/plugin.php(960): uninstall_plugin() - The plugin did not uninstall correctly, leaving 593 files (6.67MB) in the plugin directory
- (new file) README.md
- (new file) src/API/Controllers/AdminPopularItems.php
- (new file) readme.txt
- (new file) advanced-wishlist-for-woocommerce.php
- (new file) awlContext.php
- (new file) languages/.gitkeep
- (new file) composer.json
- (new file) composer.lock
- (new file) src/API/Controllers/AdminItemsOfWishlist.php
- (new file) package-lock.json
- ...
- wp_algol_wishlist_wishlists_and_products
- wp_algol_wishlist_wishlists
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- recovery_mode_email_last_sent
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 131× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'OpenApi\\Annotations\\Operation' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/zircote/swagger-php/src/Annotations/Options.php:12
- > PHP Fatal error
Trait 'OpenApi\\Processors\\Concerns\\DocblockTrait' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/zircote/swagger-php/src/Processors/AugmentProperties.php on line 17
- > PHP Parse error
syntax error, unexpected '|', expecting variable (T_VARIABLE) in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/zircote/swagger-php/src/Attributes/Examples.php on line 22
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/symfony/yaml/Exception/DumpException.php:19
- > PHP Fatal error
Uncaught Error: Class 'OpenApi\\Annotations\\Parameter' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/zircote/swagger-php/src/Attributes/Parameter.php:10
- > PHP Fatal error
Uncaught Error: Interface 'AlgolWishlist\\Logger\\ILogger' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/src/Logger/LoggerImpl.php:5
- > PHP Fatal error
Uncaught Error: Class 'OpenApi\\Annotations\\AbstractAnnotation' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/zircote/swagger-php/src/Annotations/Info.php:20
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/symfony/yaml/Exception/RuntimeException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Finder\\Iterator\\MultiplePcreFilterIterator' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/symfony/finder/Iterator/PathFilterIterator.php:22
- > PHP Fatal error
Uncaught Error: Interface 'OpenApi\\Analysers\\AnalyserInterface' not found in wp-content/plugins/advanced-wishlist-for-woocommerce/vendor/zircote/swagger-php/src/Analysers/ReflectionAnalyser.php:22
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: woocommerce, wishlist
advanced-wishlist-for-woocommerce/advanced-wishlist-for-woocommerce.php 85% from 13 tests
Analyzing the main PHP file in "Advanced Wishlist for WooCommerce" version 1.0.0
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("6.1" instead of "6.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin121,415 lines of code in 565 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 26 | 0 | 0 | 89,384 |
PHP | 357 | 5,057 | 11,671 | 22,287 |
JavaScript | 84 | 799 | 29 | 5,911 |
TypeScript | 60 | 178 | 3,130 | 2,463 |
Markdown | 19 | 287 | 0 | 685 |
CSS | 10 | 52 | 0 | 338 |
reStructuredText | 4 | 221 | 340 | 250 |
HTML | 2 | 0 | 0 | 36 |
Bourne Shell | 1 | 13 | 8 | 31 |
XML | 2 | 4 | 3 | 30 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 130)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 11.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 299.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 130.00 |
Code structure | ||
---|---|---|
Namespaces | 64 | |
Interfaces | 20 | |
Traits | 9 | |
Classes | 310 | |
▷ Abstract classes | 10 | 3.23% |
▷ Concrete classes | 300 | 96.77% |
▷ Final classes | 20 | 6.67% |
Methods | 1,165 | |
▷ Static methods | 164 | 14.08% |
▷ Public methods | 944 | 81.03% |
▷ Protected methods | 95 | 8.15% |
▷ Private methods | 126 | 10.82% |
Functions | 130 | |
▷ Named functions | 33 | 25.38% |
▷ Anonymous functions | 97 | 74.62% |
Constants | 171 | |
▷ Global constants | 7 | 4.09% |
▷ Class constants | 164 | 95.91% |
▷ Public constants | 140 | 85.37% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin