Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.41MB] [CPU: ▼8.23ms] Passed 4 tests
Analyzing server-side resources used by Blocks Detector Finder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.38 | 42.78 ▼2.07 |
Dashboard /wp-admin | 3.75 ▲0.40 | 49.42 ▼20.11 |
Posts /wp-admin/edit.php | 3.78 ▲0.42 | 50.91 ▲3.43 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 81.15 ▼13.60 |
Media Library /wp-admin/upload.php | 3.68 ▲0.46 | 37.58 ▲2.86 |
Installed Blocks /wp-admin/admin.php?page=bpdf | 3.72 | 46.70 |
Blocks used /wp-admin/admin.php?page=bpdf_used_widgets | 3.66 | 40.24 |
Blocks not in use /wp-admin/admin.php?page=bpdf_not_in_use | 3.75 | 34.78 |
Blocks used but deactivated /wp-admin/admin.php?page=bpdf_used_missing | 3.58 | 35.99 |
Server storage [IO: ▲1.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
winter_mvc_active_plugins |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Blocks Detector Finder: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲199 | 13.57 ▼0.64 | 5.13 ▲3.05 | 38.48 ▼5.97 |
Dashboard /wp-admin | 2,258 ▲52 | 5.83 ▲0.93 | 100.18 ▼19.30 | 40.93 ▼1.24 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.06 ▲0.03 | 36.49 ▼1.67 | 34.91 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,557 ▲26 | 23.07 ▼0.12 | 667.41 ▼20.76 | 46.85 ▼3.25 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.25 ▲0.08 | 96.89 ▼8.83 | 47.12 ▲3.61 |
Installed Blocks /wp-admin/admin.php?page=bpdf | 2,476 | 11.59 | 219.17 | 34.68 |
Blocks used /wp-admin/admin.php?page=bpdf_used_widgets | 932 | 2.07 | 25.41 | 32.12 |
Blocks not in use /wp-admin/admin.php?page=bpdf_not_in_use | 2,212 | 2.05 | 23.31 | 30.13 |
Blocks used but deactivated /wp-admin/admin.php?page=bpdf_used_missing | 832 | 2.04 | 24.79 | 26.48 |
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 did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- winter_mvc_active_plugins
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/blocks-detector-finder/application/controllers/Bpdf_used_widgets.php
- > /wp-content/plugins/blocks-detector-finder/admin/partials/blocks-plugin-detector-finder-admin-display.php
- > /wp-content/plugins/blocks-detector-finder/application/controllers/Bpdf_not_in_use.php
- > /wp-content/plugins/blocks-detector-finder/application/controllers/Bpdf.php
- > /wp-content/plugins/blocks-detector-finder/application/controllers/Bpdf_used_missing.php
- > /wp-content/plugins/blocks-detector-finder/public/partials/blocks-plugin-detector-finder-public-display.php
- > /wp-content/plugins/blocks-detector-finder/application/controllers/Bpdf_used_images.php
- 33× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'idfield' of non-object in wp-content/plugins/blocks-detector-finder/application/views/fields_edit/DROPDOWN.php on line 11
- > PHP Notice
Undefined variable: field in wp-content/plugins/blocks-detector-finder/application/views/fields_edit/NUMBER.php on line 11
- > PHP Warning
Creating default object from empty value in wp-content/plugins/blocks-detector-finder/application/views/fields_edit/TEXTAREA.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/blocks-detector-finder/application/views/bpdf_used_missing/index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/blocks-detector-finder/application/views/bpdf_used_images/index.php:5
- > PHP Notice
Undefined property: stdClass::$field_label in wp-content/plugins/blocks-detector-finder/application/views/fields_edit/INPUTBOX.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blocks-detector-finder/vendor/Winter_MVC/init.php:16
- > PHP Notice
Undefined property: stdClass::$field_label in wp-content/plugins/blocks-detector-finder/application/views/fields_edit/DROPDOWN.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/blocks-detector-finder/application/views/bpdf/index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/blocks-detector-finder/application/views/fields_edit/DROPDOWN.php:28
- > PHP Notice
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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== blocks-detector-finder ===
) - Screenshots: Please add images for these screenshots: #1 (Installed Blocks), #2 (Blocks Used Per Page), #3 (Blocks Not in use)
blocks-detector-finder/blocks-detector-finder.php Passed 13 tests
The entry point to "Blocks Detector Finder" version 1.0.0 is a PHP file that has certain tags in its header comment area
112 characters long description:
Detect / Find Gutenberg Blocks used on pages, also detect not used Gutenberg Blocks or Missing Gutenberg Blocks.
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 detected3,845 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,254 | 1,319 | 3,500 |
JavaScript | 5 | 93 | 110 | 253 |
CSS | 3 | 10 | 8 | 83 |
HTML | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 13.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 3 | 3.00% |
▷ Public methods | 92 | 92.00% |
▷ Protected methods | 1 | 1.00% |
▷ Private methods | 7 | 7.00% |
Functions | 82 | |
▷ Named functions | 82 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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 images were found in this plugin