Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.13ms] Passed 4 tests
Server-side resources used by LookBook for WooCommerce - Shoppable with Product Tags
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.93 ▼6.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.66 ▼4.06 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 46.50 ▼0.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.29 ▲3.08 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.54 ▲2.72 |
Server storage [IO: ▲2.38MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 176 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for LookBook for WooCommerce - Shoppable with Product Tags
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 13.34 ▼0.97 | 1.58 ▼0.42 | 39.85 ▼12.03 |
Dashboard /wp-admin | 2,215 ▲27 | 5.82 ▼0.04 | 94.36 ▼19.50 | 39.73 ▼8.96 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.01 ▼0.04 | 39.51 ▲3.10 | 35.68 ▼0.07 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 18.31 ▲0.76 | 602.20 ▼45.67 | 48.92 ▼5.10 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.26 ▲0.15 | 94.17 ▼2.11 | 42.01 ▼3.16 |
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 were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 42× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphCoverPhoto.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/PseudoRandomString/UrandomPseudoRandomStringGenerator.php:28
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\PseudoRandomString\\PseudoRandomStringGeneratorInterface' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/PseudoRandomString/McryptPseudoRandomStringGenerator.php:28
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphGroup.php:31
- > PHP Fatal error
Uncaught Error: Interface 'Facebook\\HttpClients\\FacebookHttpClientInterface' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/HttpClients/FacebookGuzzleHttpClient.php:34
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\Exceptions\\FacebookSDKException' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/Exceptions/FacebookAuthorizationException.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\Collection' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphNode.php:31
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\FacebookRequest' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/FacebookBatchRequest.php:37
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNode' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphAlbum.php:32
- > PHP Fatal error
Uncaught Error: Class 'Facebook\\GraphNodes\\GraphNodeFactory' not found in wp-content/plugins/woo-lookbook/includes/facebook-sdk/GraphNodes/GraphObjectFactory.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: woocommerce lookbook, ecommerce, woo commerce instagram, woocommerce instagram shop, woocommerce instagram shopping...
woo-lookbook/woo-lookbook.php Passed 13 tests
"LookBook for WooCommerce - Shoppable with Product Tags" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
Allows you to create realistic lookbooks of your products. Help your customers visualize what they purchase from you.
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 plugin25,081 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 1,688 | 618 | 12,778 |
PHP | 91 | 1,505 | 6,209 | 8,462 |
CSS | 26 | 325 | 150 | 2,297 |
SVG | 3 | 0 | 4 | 1,261 |
PO File | 1 | 125 | 143 | 283 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 81 | |
▷ Abstract classes | 1 | 1.23% |
▷ Concrete classes | 80 | 98.77% |
▷ Final classes | 0 | 0.00% |
Methods | 664 | |
▷ Static methods | 21 | 3.16% |
▷ Public methods | 601 | 90.51% |
▷ Protected methods | 36 | 5.42% |
▷ Private methods | 27 | 4.07% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 34 | |
▷ Global constants | 12 | 35.29% |
▷ Class constants | 22 | 64.71% |
▷ Public constants | 22 | 100.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
18 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-bg_flat_10_000000_40x100.png | 0.20KB | 0.08KB | ▼ 57.56% |
css/images/ui-icons_228ef1_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_ffd27a_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
images/button.png | 2.99KB | 2.00KB | ▼ 33.31% |
css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |