100% block-editor-assets-filter

Code Review | Block editor assets filter

WordPress plugin Block editor assets filter scored 100% from 54 tests.

About plugin

  • Plugin page: block-editor-asse...
  • Plugin version: 0.9.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 5.8.1
  • First release: Sep 25, 2020
  • Latest release: Sep 28, 2020
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: enomoto celtislab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 165 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1231.93 ▲9.92
Dashboard /wp-admin3.07 ▲0.0247.14 ▲4.80
Posts /wp-admin/edit.php3.12 ▲0.0246.20 ▲1.87
Add New Post /wp-admin/post-new.php5.44 ▲0.0187.09 ▼667.92
Media Library /wp-admin/upload.php3.01 ▲0.0132.12 ▼3.94
Block editor assets filter /wp-admin/options-general.php?page=block_editor_assets_filter2.9833.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

Browser metrics Passed 4 tests

A check of browser resources used by Block editor assets filter
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.94 ▲0.358.78 ▼0.6749.33 ▼1.17
Dashboard /wp-admin2,974 ▲405.88 ▼0.17142.10 ▼7.15111.09 ▼2.60
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0166.94 ▲0.9198.72 ▲22.30
Add New Post /wp-admin/post-new.php1,751 ▲25118.75 ▲0.11368.44 ▼26.24121.12 ▲6.66
Media Library /wp-admin/upload.php1,812 ▲55.04 ▼0.01148.73 ▲4.53126.16 ▲4.83
Block editor assets filter /wp-admin/options-general.php?page=block_editor_assets_filter1,3212.2454.8976.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


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:
LanguageFilesBlank linesComment linesLines of code
PO File1283184

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 code0.47
Average class complexity47.50
▷ Minimum class complexity26.00
▷ Maximum class complexity69.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods419.05%
▷ Public methods2095.24%
▷ Protected methods00.00%
▷ Private methods14.76%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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