Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.36MB] [CPU: ▲1.46ms] Passed 4 tests
Server-side resources used by VK Block Patterns
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 43.76 ▲1.44 |
Dashboard /wp-admin | 3.70 ▲0.40 | 198.49 ▲147.67 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 54.49 ▲6.24 |
Add New Post /wp-admin/post-new.php | 6.58 ▲0.70 | 91.98 ▼5.69 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 37.54 ▲3.83 |
VK Block Patterns /wp-admin/options-general.php?page=vk_block_patterns_options | 3.57 | 222.79 |
Server storage [IO: ▲8.62MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
vk_block_patterns_options |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for VK Block Patterns
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲115 | 13.32 ▼1.43 | 1.66 ▼0.68 | 41.86 ▼0.37 |
Dashboard /wp-admin | 2,281 ▲99 | 4.91 ▼1.10 | 96.13 ▼12.16 | 83.05 ▲40.18 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.04 ▼0.01 | 38.64 ▼1.77 | 34.08 ▼2.68 |
Add New Post /wp-admin/post-new.php | 1,559 ▲17 | 17.62 ▼0.67 | 650.44 ▲23.76 | 58.42 ▲2.56 |
Media Library /wp-admin/upload.php | 1,428 ▲46 | 4.18 ▼0.04 | 96.11 ▼7.20 | 42.58 ▼1.01 |
VK Block Patterns /wp-admin/options-general.php?page=vk_block_patterns_options | 1,289 | 8.33 | 191.64 | 101.48 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function VKBlockPatterns\\add_action() in wp-content/plugins/vk-block-patterns/inc/vk-block-patterns/package/class-add-meta-box.php:16
- > PHP Fatal error
Uncaught Error: Class 'VektorInc\\VK_Swiper\\VkSwiper' not found in wp-content/plugins/vk-block-patterns/vendor/vektor-inc/vk-admin/config.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_content\\plugins\\vk_block_patterns\\patterns_data\\add_action() in wp-content/plugins/vk-block-patterns/patterns-data/class-register-patterns-from-json.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-block-patterns/favorite-patterns/favorite-patterns.php:85
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
vk-block-patterns/vk-block-patterns.php Passed 13 tests
Analyzing the main PHP file in "VK Block Patterns" version 1.31.0
62 characters long description:
You can make and register your original custom block patterns.
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin5,833 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 0 | 0 | 2,564 |
PHP | 22 | 360 | 754 | 1,770 |
Sass | 13 | 123 | 18 | 925 |
JavaScript | 5 | 34 | 50 | 422 |
SVG | 1 | 0 | 1 | 120 |
PO File | 1 | 7 | 12 | 26 |
CSS | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 49 | 66.22% |
▷ Public methods | 71 | 95.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.05% |
Functions | 21 | |
▷ Named functions | 19 | 90.48% |
▷ Anonymous functions | 2 | 9.52% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.42MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
patterns-data/images/x-t9-icon-large-trans.png | 14.18KB | 8.91KB | ▼ 37.14% |
patterns-data/images/woocommerce-placeholder.png | 100.24KB | 73.05KB | ▼ 27.12% |
patterns-data/images/logo_Lightning.png | 9.44KB | 4.57KB | ▼ 51.54% |
patterns-data/images/logo_VK_Block_Patterns.png | 18.22KB | 8.11KB | ▼ 55.48% |
patterns-data/images/pr-img.png | 8.10KB | 8.06KB | ▼ 0.53% |