Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.35ms] Passed 4 tests
This is a short check of server-side resources used by Custom HTML Block Extension
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 39.22 ▼0.97 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.52 ▲1.29 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.38 ▲1.84 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 84.86 ▼11.57 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.52 ▲4.48 |
Custom HTML Block Extension /wp-admin/options-general.php?page=custom-html-block-extension | 3.31 | 33.69 |
Server storage [IO: ▲19.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 530 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom HTML Block Extension
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲78 | 14.32 ▼0.26 | 1.77 ▼0.08 | 43.38 ▼3.18 |
Dashboard /wp-admin | 2,242 ▲68 | 5.77 ▲0.21 | 87.71 ▲1.96 | 37.26 ▼6.10 |
Posts /wp-admin/edit.php | 2,150 ▲50 | 2.30 ▲0.26 | 47.33 ▲12.65 | 33.77 ▼2.53 |
Add New Post /wp-admin/post-new.php | 1,721 ▲193 | 23.57 ▲0.68 | 667.11 ▼23.36 | 36.95 ▼13.45 |
Media Library /wp-admin/upload.php | 1,450 ▲53 | 4.40 ▲0.21 | 104.39 ▲2.40 | 44.06 ▲0.13 |
Custom HTML Block Extension /wp-admin/options-general.php?page=custom-html-block-extension | 1,806 | 16.98 | 583.74 | 108.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant CHBE_URL - assumed 'CHBE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-html-block-extension/classes/class-settings.php on line 626
- > PHP Fatal error
Uncaught Error: Call to undefined function Custom_Html_Block_Extension\\add_action() in wp-content/plugins/custom-html-block-extension/classes/class-api.php:17
- > PHP Warning
Use of undefined constant CHBE_URL - assumed 'CHBE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-html-block-extension/classes/class-settings.php on line 626
- > PHP Warning
Use of undefined constant CHBE_URL - assumed 'CHBE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-html-block-extension/classes/class-settings.php on line 626
- > PHP Fatal error
Uncaught Error: Class 'Custom_Html_Block_Extension\\Settings' not found in wp-content/plugins/custom-html-block-extension/classes/class-block-editor.php:17
- > PHP Warning
Use of undefined constant CHBE_URL - assumed 'CHBE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-html-block-extension/classes/class-settings.php on line 626
- > PHP Warning
Use of undefined constant CHBE_URL - assumed 'CHBE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-html-block-extension/classes/class-settings.php on line 626
- > PHP Fatal error
Uncaught Error: Class 'Custom_Html_Block_Extension\\Settings' not found in wp-content/plugins/custom-html-block-extension/classes/class-classic-editor.php:17
- > PHP Fatal error
Uncaught Error: Class 'Custom_Html_Block_Extension\\Settings' not found in wp-content/plugins/custom-html-block-extension/classes/class-theme-plugin-editor.php:17
- > PHP Warning
Use of undefined constant CHBE_URL - assumed 'CHBE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-html-block-extension/classes/class-settings.php on line 626
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: highlighting, emmet, block, gutenberg, html
custom-html-block-extension/custom-html-block-extension.php Passed 13 tests
Analyzing the main PHP file in "Custom HTML Block Extension" version 3.4.0
65 characters long description:
Extend Custom HTML block to evolve into the advanced code editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected47,521 lines of code in 323 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 237 | 5,021 | 12,191 | 31,737 |
JSON | 47 | 0 | 0 | 13,639 |
PHP | 12 | 152 | 205 | 1,206 |
Sass | 15 | 179 | 22 | 750 |
CSS | 12 | 24 | 5 | 189 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 7 | 21.21% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin