Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼2.04ms] Passed 4 tests
This is a short check of server-side resources used by Gutenberg Customizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 40.36 ▲0.01 |
Dashboard /wp-admin | 3.38 ▲0.07 | 47.09 ▲0.32 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 45.02 ▼0.58 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.12 ▼7.72 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.44 ▲0.15 |
Gutenberg Customizer /wp-admin/options-general.php?page=iris_color_pick | 3.27 | 31.02 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Gutenberg Customizer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲179 | 13.72 ▼0.58 | 5.02 ▲3.23 | 42.71 ▼2.89 |
Dashboard /wp-admin | 2,237 ▲52 | 5.12 ▼0.72 | 115.62 ▲15.66 | 42.58 ▼3.21 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.36 ▲0.32 | 39.98 ▼1.07 | 34.36 ▲1.31 |
Add New Post /wp-admin/post-new.php | 1,539 ▲6 | 23.24 ▲0.30 | 671.77 ▼10.39 | 36.23 ▼23.86 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.40 ▲0.23 | 100.14 ▼4.43 | 40.85 ▼3.04 |
Gutenberg Customizer /wp-admin/options-general.php?page=iris_color_pick | 1,035 | 2.58 | 41.69 | 62.58 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/blocks-editor-customizer/admin/partials/gutenberg-customizer-admin-display.php
- > /wp-content/plugins/blocks-editor-customizer/public/partials/gutenberg-customizer-public-display.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blocks-editor-customizer/admin/class-gutenberg-customizer-admin.php:120
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
7 plugin tags: gutenberg, blocks, style, appearance, customize...
blocks-editor-customizer/blocks-editor-customizer.php Passed 13 tests
This is the main PHP file of "Gutenberg Customizer" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
81 characters long description:
Plugin for changing the default style values of the gutenberg block editor.
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
Good job! No executable or dangerous file extensions detected471 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 140 | 582 | 397 |
JavaScript | 2 | 16 | 27 | 73 |
CSS | 2 | 0 | 4 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 3.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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