Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.72ms] Passed 4 tests
Analyzing server-side resources used by Better Wishlist
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 35.00 ▼5.82 |
Dashboard /wp-admin | 3.41 ▲0.10 | 44.32 ▼8.72 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 50.15 ▲3.94 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.70 ▼18.35 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.16 ▲2.02 |
Better Wishlist /wp-admin/admin.php?page=betterwishlist | 3.25 | 30.36 |
Server storage [IO: ▲1.32MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 440 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_better_wishlist_lists |
wp_better_wishlist_items |
New WordPress options |
---|
theysaidso_admin_options |
bw_settings |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Better Wishlist
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.37 ▼1.01 | 1.56 ▼0.15 | 41.24 ▼0.41 |
Dashboard /wp-admin | 2,218 ▲30 | 4.88 ▼0.02 | 112.53 ▲8.52 | 44.29 ▲7.28 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 1.99 ▼0.00 | 41.78 ▲4.78 | 39.42 ▲7.02 |
Add New Post /wp-admin/post-new.php | 1,550 ▲36 | 23.19 ▲5.69 | 650.78 ▼10.12 | 57.81 ▲4.86 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.31 ▲0.19 | 92.66 ▼5.11 | 42.56 ▼1.18 |
Better Wishlist /wp-admin/admin.php?page=betterwishlist | 1,329 | 8.24 | 216.73 | 41.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_better_wishlist_items
- wp_better_wishlist_lists
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- bw_settings
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
- 147× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Unary\\AbstractUnary' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/Node/Expression/Unary/NegUnary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/Node/Expression/Binary/LessBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/Node/Expression/Binary/StartsWithBinary.php:16
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\ameExpression' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/Node/Expression/AssignNameExpression.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Extension\\AbstractExtension' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/Extension/StagingExtension.php:27
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/Node/Expression/AbstractExpression.php:22
- > PHP Fatal error
Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/Node/Expression/Binary/BitwiseOrBinary.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/TokenParser/DeprecatedTokenParser.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Twig\\RuntimeLoader\\RuntimeLoaderInterface' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/RuntimeLoader/ContainerRuntimeLoader.php:24
- > PHP Fatal error
Uncaught Error: Class 'Twig\\TokenParser\\AbstractTokenParser' not found in wp-content/plugins/better-wishlist/vendor/twig/twig/src/TokenParser/ExtendsTokenParser.php:24
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, wishlist, ecommerce wishlist, e-commerce, shop
better-wishlist/better-wishlist.php Passed 13 tests
The primary PHP file in "Better Wishlist" version 0.0.3 is used by WordPress to initiate all plugin functionality
50 characters long description:
Wishlist functionality for your WooCommerce store.
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
Good job! No executable or dangerous file extensions detected23,369 lines of code in 429 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 387 | 4,011 | 5,672 | 18,207 |
JavaScript | 14 | 268 | 114 | 2,166 |
CSS | 3 | 127 | 30 | 1,676 |
JSON | 2 | 0 | 0 | 354 |
Sass | 1 | 8 | 8 | 342 |
Twig | 3 | 18 | 0 | 330 |
SVG | 18 | 0 | 9 | 284 |
reStructuredText | 1 | 8 | 5 | 10 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 5.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 14 | |
Traits | 0 | |
Classes | 356 | |
▷ Abstract classes | 11 | 3.09% |
▷ Concrete classes | 345 | 96.91% |
▷ Final classes | 52 | 15.07% |
Methods | 933 | |
▷ Static methods | 86 | 9.22% |
▷ Public methods | 799 | 85.64% |
▷ Protected methods | 59 | 6.32% |
▷ Private methods | 75 | 8.04% |
Functions | 174 | |
▷ Named functions | 158 | 90.80% |
▷ Anonymous functions | 16 | 9.20% |
Constants | 66 | |
▷ Global constants | 16 | 24.24% |
▷ Class constants | 50 | 75.76% |
▷ Public constants | 49 | 98.00% |
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
No PNG images were found in this plugin