Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.72ms] Passed 4 tests
A check of server-side resources used by Block Catalog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 38.71 ▼4.00 |
Dashboard /wp-admin | 3.34 ▼0.01 | 46.26 ▼15.95 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.94 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 95.41 ▲4.06 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.77 ▲1.06 |
Block Catalog /wp-admin/edit-tags.php?taxonomy=block-catalog | 3.34 | 34.71 |
Block Catalog /wp-admin/edit-tags.php?taxonomy=block-catalog&post_type=page | 3.25 | 38.24 |
Block Catalog /wp-admin/tools.php?page=block-catalog-tools | 3.23 | 30.80 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
block_catalog_indexed |
block_catalog_notice_shown |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Block Catalog
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲59 | 14.67 ▼0.04 | 1.65 ▼0.10 | 39.50 ▼3.91 |
Dashboard /wp-admin | 2,212 ▲35 | 5.62 ▲0.03 | 96.01 ▼5.91 | 43.07 ▼1.36 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.99 ▲0.05 | 39.58 ▼1.61 | 35.33 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 23.25 ▼0.02 | 710.53 ▲74.11 | 55.74 ▲8.03 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.13 ▼0.00 | 102.58 ▼7.12 | 42.76 ▼1.02 |
Block Catalog /wp-admin/edit-tags.php?taxonomy=block-catalog | 1,288 | 2.12 | 27.88 | 33.17 |
Block Catalog /wp-admin/edit-tags.php?taxonomy=block-catalog&post_type=page | 1,288 | 2.12 | 30.15 | 31.34 |
Block Catalog /wp-admin/tools.php?page=block-catalog-tools | 900 | 1.73 | 24.82 | 26.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- block_catalog_notice_shown
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- block_catalog_indexed
- db_upgraded
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/edit-tags.php?taxonomy=block-catalog
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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 fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/block-catalog/block-catalog.php:20
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/block-catalog/includes/classes/CatalogCommand.php:13
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: custom blocks, gutenberg, blocks, developer
block-catalog/block-catalog.php Passed 13 tests
The entry point to "Block Catalog" version 1.5.3 is a PHP file that has certain tags in its header comment area
70 characters long description:
Easily keep track of which Gutenberg Blocks are used across your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,304 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 402 | 809 | 1,302 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.43 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 79.66% |
▷ Protected methods | 2 | 3.39% |
▷ Private methods | 10 | 16.95% |
Functions | 26 | |
▷ Named functions | 20 | 76.92% |
▷ Anonymous functions | 6 | 23.08% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/icon-512.png | 2.82KB | 2.25KB | ▼ 20.04% |
dist/images/icon-192.png | 1.13KB | 1.12KB | ▼ 0.95% |
dist/images/icon-128.png | 0.75KB | 0.76KB | 0.00% |