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
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.79ms] Passed 4 tests
Analyzing server-side resources used by Code Highlighter Block - Syntax Highlighter Gutenberg Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 47.54 ▲8.05 |
Dashboard /wp-admin | 3.32 ▼0.03 | 47.99 ▼16.90 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 52.49 ▲7.18 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 96.03 ▼11.16 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.03 ▼2.28 |
Code Block /wp-admin/tools.php?page=chb_help | 3.20 | 29.30 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Code Highlighter Block - Syntax Highlighter Gutenberg Block
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 15.19 ▲0.63 | 25.40 ▲23.78 | 42.60 ▲1.23 |
Dashboard /wp-admin | 2,225 ▲19 | 4.85 ▼0.19 | 112.40 ▲7.55 | 42.74 ▲0.94 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.04 | 41.16 ▲2.96 | 37.60 ▲4.96 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,659 | 19.31 ▼3.88 | 928.33 ▲235.89 | 54.77 ▼1.51 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.28 ▲0.03 | 102.22 ▲1.19 | 41.08 ▼3.39 |
Code Block /wp-admin/tools.php?page=chb_help | 850 | 2.01 | 21.36 | 31.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Stable tag: No value
- Donate link: Invalid URI ("")
- Screenshots: Please add descriptions for these screenshots #1, #2 in code-highlighter-block/assets to your readme.txt
code-highlighter-block/plugin.php 85% from 13 tests
This is the main PHP file of "Code Highlighter Block - Syntax Highlighter Gutenberg Block" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("code-highlighter-block.php" instead of "plugin.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,164 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 96 | 31 | 834 |
JavaScript | 4 | 6 | 19 | 171 |
PHP | 2 | 24 | 71 | 126 |
Sass | 3 | 1 | 0 | 29 |
INI | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin