Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.84ms] Passed 4 tests
An overview of server-side resources used by Custom Block Patterns
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.51 ▼4.01 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.67 ▼1.38 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.19 ▼2.27 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 97.07 ▲4.67 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.94 ▲0.30 |
Pattern Category /wp-admin/edit-tags.php?taxonomy=loos-cbp-category&post_type=loos-cbp | 3.29 | 34.75 |
Block Patterns /wp-admin/edit.php?post_type=loos-cbp | 3.34 | 35.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Block Patterns
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲77 | 13.35 ▼0.81 | 1.66 ▼0.48 | 44.41 ▼1.94 |
Dashboard /wp-admin | 2,237 ▲46 | 5.85 ▲0.97 | 107.54 ▲4.30 | 41.90 ▲2.67 |
Posts /wp-admin/edit.php | 2,120 ▲34 | 2.04 ▼0.01 | 40.12 ▲3.68 | 34.78 ▲3.99 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 17.58 ▼5.65 | 622.54 ▼72.15 | 64.10 ▲6.16 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.15 ▼0.06 | 95.66 ▼5.34 | 42.05 ▼3.24 |
Pattern Category /wp-admin/edit-tags.php?taxonomy=loos-cbp-category&post_type=loos-cbp | 1,290 | 2.13 | 27.80 | 28.18 |
Block Patterns /wp-admin/edit.php?post_type=loos-cbp | 1,110 | 1.95 | 41.41 | 31.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: guternberg, block pattern
custom-block-patterns/custom-block-patterns.php 92% from 13 tests
The primary PHP file in "Custom Block Patterns" version 1.4.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin196 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 32 | 45 | 131 |
PO File | 1 | 8 | 9 | 37 |
JSON | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
There were not PNG files found in your plugin