Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.35MB] [CPU: ▼0.83ms] Passed 4 tests
A check of server-side resources used by Custom Blocks Templates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.64 | 57.62 ▲18.16 |
Dashboard /wp-admin | 3.93 ▲0.62 | 59.72 ▲8.66 |
Posts /wp-admin/edit.php | 3.99 ▲0.63 | 58.57 ▲7.65 |
Add New Post /wp-admin/post-new.php | 5.50 ▼0.39 | 63.19 ▼30.86 |
Media Library /wp-admin/upload.php | 3.79 ▲0.55 | 46.27 ▲11.25 |
Create Template /wp-admin/post-new.php?post_type=block-template | 5.46 | 55.37 |
Assign templates /wp-admin/edit.php?post_type=block-template&page=cbt-settings | 3.77 | 50.95 |
Blocks Templates /wp-admin/edit.php?post_type=block-template | 3.90 | 54.36 |
Server storage [IO: ▲5.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Blocks Templates
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,108 ▲347 | 26.31 ▲11.95 | 5.03 ▲3.12 | 41.73 ▼4.05 |
Dashboard /wp-admin | 2,426 ▲249 | 16.32 ▲10.65 | 330.64 ▲238.26 | 43.08 ▲1.06 |
Posts /wp-admin/edit.php | 2,368 ▲265 | 15.37 ▲13.37 | 128.19 ▲93.57 | 39.64 ▲1.80 |
Add New Post /wp-admin/post-new.php | 6,253 ▲4,725 | 28.25 ▲5.15 | 788.51 ▲84.65 | 35.87 ▼25.56 |
Media Library /wp-admin/upload.php | 1,264 ▼136 | 11.95 ▲7.84 | 185.84 ▲61.00 | 43.43 ▼3.23 |
Create Template /wp-admin/post-new.php?post_type=block-template | 6,188 | 28.00 | 880.33 | 30.77 |
Assign templates /wp-admin/edit.php?post_type=block-template&page=cbt-settings | 1,134 | 15.02 | 122.33 | 24.80 |
Blocks Templates /wp-admin/edit.php?post_type=block-template | 1,253 | 15.59 | 133.65 | 35.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=block-template
- > User deprecated in wp-includes/functions.php+5828
Hook block_categories is deprecated since version 5.8.0! Use block_categories_all instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\add_action() in wp-content/plugins/custom-blocks-templates/lib/template-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\add_filter() in wp-content/plugins/custom-blocks-templates/lib/block-templates.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\add_filter() in wp-content/plugins/custom-blocks-templates/lib/create-block-category.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\Accordion\\add_action() in wp-content/plugins/custom-blocks-templates/blocks/accordion/index.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\add_filter() in wp-content/plugins/custom-blocks-templates/lib/admin-cbt-edit.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\add_action() in wp-content/plugins/custom-blocks-templates/lib/enqueue-scripts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\PrivateBlock\\add_action() in wp-content/plugins/custom-blocks-templates/blocks/private-block/index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\Countdown\\add_action() in wp-content/plugins/custom-blocks-templates/blocks/countdown/index.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\add_filter() in wp-content/plugins/custom-blocks-templates/lib/admin-cbt-list.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function Sirvelia\\CBT\\CsvTables\\add_action() in wp-content/plugins/custom-blocks-templates/blocks/csv-tables/index.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/edit.php?post_type=block-template
- > Console-api (warning) in wp-includes/js/dist/deprecated.min.js?ver=73ad3591e7bc95f4777a+1:627
`position` prop in wp.components.Dropdown is deprecated since version 6.2. Please use `popoverProps.placement` prop instead. Note: Note that the `position` prop will override any values passed through the `popoverProps.placement` prop.
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: fontawesome, gutenberg, dynamic, template, block
custom-blocks-templates/custom-blocks-templates.php Passed 13 tests
The main PHP file in "Custom Blocks Templates" ver. 1.3.2 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
Create and set Gutenberg blocks templates for any post type.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin12,387 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,299 |
PHP | 15 | 584 | 629 | 2,905 |
JavaScript | 4 | 6 | 22 | 169 |
CSS | 5 | 3 | 15 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 193.50 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 1 | 1.11% |
▷ Public methods | 75 | 83.33% |
▷ Protected methods | 15 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 52 | |
▷ Named functions | 41 | 78.85% |
▷ Anonymous functions | 11 | 21.15% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin