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
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼7.54ms] Passed 4 tests
This is a short check of server-side resources used by Woocommerce Blocks - Woolook
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 39.55 ▼4.38 |
Dashboard /wp-admin | 3.67 ▲0.37 | 49.91 ▲2.27 |
Posts /wp-admin/edit.php | 3.78 ▲0.43 | 52.14 ▲3.82 |
Add New Post /wp-admin/post-new.php | 5.20 ▼0.69 | 58.78 ▼31.85 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 39.52 ▲5.66 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Woocommerce Blocks - Woolook: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲151 | 13.94 ▼0.45 | 8.09 ▲5.68 | 41.15 ▼9.03 |
Dashboard /wp-admin | 2,225 ▲34 | 5.87 ▲0.97 | 111.71 ▲1.07 | 45.70 ▲5.22 |
Posts /wp-admin/edit.php | 2,111 ▲19 | 2.03 ▼0.02 | 41.21 ▼0.61 | 35.23 ▼0.35 |
Add New Post /wp-admin/post-new.php | 6,432 ▲4,899 | 20.57 ▼2.69 | 880.20 ▲202.24 | 55.33 ▲2.30 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.18 ▼0.01 | 96.24 ▼22.23 | 42.52 ▼8.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/woolook/includes/views/tabs/general.php
- > /wp-content/plugins/woolook/includes/views/tabs/changelog.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant WOOLOOK_VERSION - assumed 'WOOLOOK_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/panel.php on line 1
- > PHP Warning
Use of undefined constant WOOLOOK_URL - assumed 'WOOLOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/tabs/general.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woolook/includes/array-font-list.php:6
- > PHP Warning
Use of undefined constant WOOLOOK_URL - assumed 'WOOLOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/tabs/general.php on line 51
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woolook/includes/views/menu.php:7
- > PHP Warning
Use of undefined constant WOOLOOK_URL - assumed 'WOOLOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/tabs/general.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woolook/includes/views/menu.php:7
- > PHP Warning
Use of undefined constant WOOLOOK_URL - assumed 'WOOLOOK_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/woolook/includes/views/tabs/general.php on line 74
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% 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
4 plugin tags: woocommerce blocks, woocommerce, woocommerce layout, woocommerce grid
woolook/plugin.php 92% from 13 tests
The principal PHP file in "Woocommerce Blocks - Woolook" v. 1.7.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("woolook.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected5,707 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 16 | 546 | 51 | 2,244 |
PHP | 19 | 666 | 368 | 1,944 |
Sass | 11 | 253 | 21 | 1,193 |
CSS | 4 | 39 | 6 | 230 |
Markdown | 1 | 44 | 0 | 96 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 6.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 1 | 1.72% |
▷ Public methods | 43 | 74.14% |
▷ Protected methods | 13 | 22.41% |
▷ Private methods | 2 | 3.45% |
Functions | 13 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 13 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.41MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/panel/block.png | 108.51KB | 38.81KB | ▼ 64.24% |
assets/img/layout-1.png | 69.56KB | 23.85KB | ▼ 65.72% |
assets/img/panel/add.png | 59.10KB | 23.21KB | ▼ 60.73% |
assets/img/panel/gutenberg.png | 51.75KB | 19.97KB | ▼ 61.41% |
assets/img/memphis-colorful.png | 21.45KB | 10.21KB | ▼ 52.41% |