Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼166.30ms] Passed 4 tests
Analyzing server-side resources used by Block editor assets filter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 31.93 ▲9.92 |
Dashboard /wp-admin | 3.07 ▲0.02 | 47.14 ▲4.80 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 46.20 ▲1.87 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 87.09 ▼667.92 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.12 ▼3.94 |
Block editor assets filter /wp-admin/options-general.php?page=block_editor_assets_filter | 2.98 | 33.71 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
beaf_option |
Browser metrics Passed 4 tests
A check of browser resources used by Block editor assets filter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.94 ▲0.35 | 8.78 ▼0.67 | 49.33 ▼1.17 |
Dashboard /wp-admin | 2,974 ▲40 | 5.88 ▼0.17 | 142.10 ▼7.15 | 111.09 ▼2.60 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.01 | 66.94 ▲0.91 | 98.72 ▲22.30 |
Add New Post /wp-admin/post-new.php | 1,751 ▲251 | 18.75 ▲0.11 | 368.44 ▼26.24 | 121.12 ▲6.66 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▼0.01 | 148.73 ▲4.53 | 126.16 ▲4.83 |
Block editor assets filter /wp-admin/options-general.php?page=block_editor_assets_filter | 1,321 | 2.24 | 54.89 | 76.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: conflict, performance, enqueue_block_editor_assets, gutenberg, remove_action
block-editor-assets-filter/block-editor-assets-filter.php 92% from 13 tests
The primary PHP file in "Block editor assets filter" version 0.9.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected557 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 83 | 473 |
PO File | 1 | 28 | 31 | 84 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 47.50 |
▷ Minimum class complexity | 26.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 5.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 4 | 19.05% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected