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.15MB] [CPU: ▼11.40ms] Passed 4 tests
An overview of server-side resources used by Block Layouts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.32 ▼2.17 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.87 ▼2.78 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.05 ▼6.80 |
Add New Post /wp-admin/post-new.php | 5.22 ▼0.66 | 66.56 ▼33.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.97 ▼0.54 |
Block Layouts /wp-admin/edit.php?post_type=block-layout | 3.29 | 34.62 |
Add New /wp-admin/post-new.php?post_type=block-layout | 5.21 | 54.99 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Block Layouts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲73 | 13.35 ▼1.03 | 4.54 ▲2.48 | 41.53 ▼2.94 |
Dashboard /wp-admin | 2,233 ▲48 | 4.85 ▼0.01 | 112.04 ▲9.47 | 40.96 ▼0.98 |
Posts /wp-admin/edit.php | 2,119 ▲30 | 2.01 ▼0.04 | 41.20 ▲1.33 | 34.83 ▼4.17 |
Add New Post /wp-admin/post-new.php | 1,556 ▲14 | 18.52 ▲0.25 | 602.45 ▲4.22 | 68.36 ▲16.48 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.25 ▲0.08 | 97.89 ▼1.82 | 41.77 ▼4.22 |
Block Layouts /wp-admin/edit.php?post_type=block-layout | 1,080 | 1.98 | 31.43 | 29.18 |
Add New /wp-admin/post-new.php?post_type=block-layout | 1,515 | 17.12 | 930.39 | 34.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/post-new.php?post_type=block-layout
- > Notice in wp-content/plugins/block-layouts/lib/register-scripts.php+55
Undefined variable: js_dependencies
- > GET request to /wp-admin/post-new.php?post_type=block-layout
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
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 have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function Derweili\\Block_Layouts\\add_action() in wp-content/plugins/block-layouts/lib/register-scripts.php:74
- > PHP Fatal error
Uncaught Error: Call to undefined function Derweili\\Block_Layouts\\add_filter() in wp-content/plugins/block-layouts/lib/meta.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Derweili\\Block_Layouts\\add_action() in wp-content/plugins/block-layouts/lib/register-post-type.php:19
- > register script file
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=block-layout
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
`wp.data.select( 'core/editor' ).getBlocks` is deprecated since version 5.3 and will be removed in version 6.2. Please use `wp.data.select( 'core/block-editor' ).getBlocks` instead.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: A description for screenshot #3 is required in block-layouts/assets to your readme.txt
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
block-layouts/plugin.php 92% from 13 tests
The main PHP file in "Block Layouts" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("block-layouts.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin512 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 49 | 60 | 258 |
PHP | 4 | 61 | 80 | 156 |
JSON | 1 | 0 | 0 | 37 |
PO File | 1 | 7 | 7 | 27 |
Sass | 1 | 1 | 0 | 20 |
Markdown | 1 | 4 | 0 | 13 |
CSS | 1 | 1 | 1 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
No PNG files were detected