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
Install script ran successfully
Server metrics [RAM: ▼0.08MB] [CPU: ▼9.10ms] Passed 4 tests
An overview of server-side resources used by Gutenberg Templates
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 47.19 ▲4.24 |
Dashboard /wp-admin | 3.47 ▲0.17 | 47.66 ▼4.71 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 51.75 ▲4.63 |
Add New Post /wp-admin/post-new.php | 5.06 ▼0.83 | 53.13 ▼37.87 |
Media Library /wp-admin/upload.php | 3.40 ▲0.16 | 35.27 ▲1.96 |
All Gutenberg Templates /wp-admin/edit.php?post_type=gutenberg-template | 3.44 | 37.04 |
Add New /wp-admin/post-new.php?post_type=gutenberg-template | 5.02 | 46.46 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Gutenberg Templates
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 13.29 ▼1.13 | 1.68 ▼0.24 | 43.79 ▼0.60 |
Dashboard /wp-admin | 2,227 ▲39 | 5.91 ▲1.04 | 108.80 ▼3.62 | 39.64 ▼6.83 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.05 ▲0.04 | 39.85 ▲2.22 | 35.13 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6,253 ▲4,711 | 21.58 ▲3.36 | 823.69 ▲161.91 | 53.36 ▼5.17 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.27 ▲0.02 | 99.22 ▲0.49 | 42.54 ▲0.01 |
All Gutenberg Templates /wp-admin/edit.php?post_type=gutenberg-template | 1,093 | 2.00 | 32.28 | 29.61 |
Add New /wp-admin/post-new.php?post_type=gutenberg-template | 6,234 | 20.73 | 871.23 | 32.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% 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 server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gutenberg-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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant GBT_PATH - assumed 'GBT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/block-templates/application/bootstrap.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'GBT_PATH/inc/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/block-templates/application/bootstrap.php on line 9
- > PHP Warning
require_once(GBT_PATH/inc/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/block-templates/application/bootstrap.php on line 9
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: templates, gutenberg
block-templates/gutenberg_templates.php 85% from 13 tests
This is the main PHP file of "Gutenberg Templates" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("block-templates.php" instead of "gutenberg_templates.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 plugin629 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 179 | 271 | 627 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of 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.50 |
Average class complexity | 19.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 4.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 8 | |
▷ Global constants | 3 | 37.50% |
▷ Class constants | 5 | 62.50% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin