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
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼1.80ms] Passed 4 tests
A check of server-side resources used by Highlighting Code Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 40.79 ▲0.10 |
Dashboard /wp-admin | 3.44 ▲0.13 | 50.27 ▼1.30 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.87 ▲4.04 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 83.29 ▼8.65 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.80 ▲2.64 |
[HCB] Settings /wp-admin/options-general.php?page=hcb_settings | 3.33 | 30.01 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
loos_hcb_installed |
db_upgraded |
loos_hcb_settings |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Highlighting Code Block
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲64 | 13.79 ▼0.57 | 11.40 ▲9.66 | 41.33 ▼1.89 |
Dashboard /wp-admin | 2,202 ▲28 | 5.54 ▼0.11 | 87.47 ▼13.76 | 38.94 ▼5.68 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▼0.11 | 33.55 ▼0.86 | 35.46 ▲3.77 |
Add New Post /wp-admin/post-new.php | 6,214 ▲4,688 | 19.11 ▼3.91 | 902.27 ▲268.83 | 38.07 ▼12.22 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.18 ▼0.08 | 98.63 ▼0.79 | 41.34 ▼1.15 |
[HCB] Settings /wp-admin/options-general.php?page=hcb_settings | 980 | 2.05 | 24.03 | 40.92 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Looking good! No server-side errors or output on direct access of PHP files
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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 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
8 plugin tags: syntax highlight, code highlighting, guternberg, highlight, editor...
highlighting-code-block/highlighting-code-block.php 92% from 13 tests
The main file in "Highlighting Code Block" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin14,523 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 1 | 1,725 | 0 | 12,303 |
JavaScript | 14 | 76 | 166 | 718 |
Sass | 14 | 127 | 75 | 634 |
PHP | 8 | 126 | 164 | 511 |
PO File | 1 | 59 | 69 | 152 |
JSON | 5 | 0 | 0 | 144 |
SVG | 5 | 0 | 3 | 55 |
CSS | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 19 | 76.00% |
▷ Public methods | 18 | 72.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 28.00% |
Functions | 5 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 5 | 100.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin