Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.36MB] [CPU: ▼0.47ms] Passed 4 tests
This is a short check of server-side resources used by Options for Block Themes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 47.83 ▲7.99 |
Dashboard /wp-admin | 3.66 ▲0.36 | 49.02 ▼0.69 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 50.23 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 87.21 ▼9.22 |
Media Library /wp-admin/upload.php | 3.59 ▲0.36 | 38.27 ▲7.01 |
Manage Templates /wp-admin/themes.php?page=template_editor | 5.20 | 56.69 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
te_options |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Options for Block Themes: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.72 ▲0.46 | 1.63 ▲0.10 | 40.11 ▲2.29 |
Dashboard /wp-admin | 2,203 ▲26 | 5.52 ▼0.15 | 86.86 ▼16.39 | 37.98 ▼6.27 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 1.98 ▲0.01 | 36.26 ▼0.66 | 33.78 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 24.63 ▲1.62 | 674.07 ▲26.14 | 51.34 ▼24.23 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.25 ▲0.07 | 94.38 ▼7.96 | 42.14 ▲0.32 |
Manage Templates /wp-admin/themes.php?page=template_editor | 8,249 | 1.64 | 30.42 | 32.98 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- te_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/template-editor/template-editor.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: global styles, block theme, google fonts, template parts, templates
template-editor/template-editor.php Passed 13 tests
The principal PHP file in "Options for Block Themes" v. 1.2.4 is loaded by WordPress automatically on each request
139 characters long description:
Import / Export tempaltes and template parts and add locally hosted Google Fonts to Full Site Editing / Block Themes without a child theme!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,003 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 906 | 35 | 1,990 |
JavaScript | 1 | 5 | 3 | 12 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 112.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 245.00 |
Average method complexity | 7.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 47 | 88.68% |
▷ Public methods | 52 | 98.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.89% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin