Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.21ms] Passed 4 tests
Analyzing server-side resources used by Block Pattern Builder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 34.98 ▼1.22 |
Dashboard /wp-admin | 3.36 ▲0.05 | 43.06 ▼6.23 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.46 ▲0.12 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 80.10 ▼12.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.95 ▼1.13 |
New Pattern /wp-admin/post-new.php?post_type=bpb_pattern | 5.99 | 74.81 |
Patterns /wp-admin/edit.php?post_type=bpb_pattern | 3.32 | 31.58 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Block Pattern Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.22 ▼1.07 | 1.68 ▲0.01 | 41.27 ▼1.69 |
Dashboard /wp-admin | 2,233 ▲45 | 4.84 ▼1.07 | 109.60 ▲3.59 | 38.36 ▼2.87 |
Posts /wp-admin/edit.php | 2,116 ▲48 | 2.02 ▲0.00 | 38.60 ▲2.09 | 33.78 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,544 ▲8 | 18.37 ▼4.95 | 604.85 ▼61.90 | 32.45 ▼18.20 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.22 ▲0.03 | 99.99 ▼4.17 | 42.07 ▼2.28 |
New Pattern /wp-admin/post-new.php?post_type=bpb_pattern | 1,512 | 17.29 | 879.98 | 31.98 |
Patterns /wp-admin/edit.php?post_type=bpb_pattern | 1,077 | 1.98 | 35.35 | 28.53 |
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 detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/block-pattern-builder/uninstall.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Block Patterns management screen.), #2 (Creating a custom block pattern.), #3 (Inserting a block pattern into the post editor.)
block-pattern-builder/plugin.php 85% from 13 tests
"Block Pattern Builder" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path is invalid: folder "/public/lang" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("block-pattern-builder.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected695 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 101 | 317 | 311 |
Markdown | 3 | 77 | 0 | 303 |
JavaScript | 2 | 17 | 3 | 78 |
JSON | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 2 | 15.38% |
▷ Private methods | 1 | 7.69% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 36.21KB | 13.67KB | ▼ 62.26% |
screenshot-2.png | 76.21KB | 24.24KB | ▼ 68.19% |