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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.58ms] Passed 4 tests
Analyzing server-side resources used by Code Block Pro - Beautiful Syntax Highlighting
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.81 ▼6.57 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.87 ▼3.00 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.08 ▲4.45 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.01 | 91.95 ▲0.89 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.67 ▼5.63 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 101 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
code_block_pro_settings_2 |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
code_block_pro_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for Code Block Pro - Beautiful Syntax Highlighting
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲46 | 14.20 ▼0.14 | 1.56 ▼0.26 | 36.67 ▼6.02 |
Dashboard /wp-admin | 2,195 ▲17 | 5.58 ▼0.11 | 90.88 ▼27.05 | 41.06 ▼7.26 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.05 | 38.88 ▲2.31 | 34.88 ▼3.81 |
Add New Post /wp-admin/post-new.php | 6,372 ▲4,846 | 28.34 ▲5.41 | 847.15 ▲181.69 | 61.69 ▲8.13 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.18 ▼0.00 | 99.92 ▲1.89 | 40.90 ▼1.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- code_block_pro_settings
- code_block_pro_settings_2
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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
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
9 plugin tags: js, snippet, syntax, php, vs code...
code-block-pro/code-block-pro.php Passed 13 tests
"Code Block Pro - Beautiful Syntax Highlighting" version 1.25.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Code highlighting powered by the VS Code engine
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin266,633 lines of code in 516 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 212 | 0 | 0 | 260,597 |
TypeScript | 58 | 175 | 507 | 4,215 |
JavaScript | 223 | 18 | 17 | 531 |
Markdown | 6 | 99 | 0 | 494 |
CSS | 4 | 6 | 25 | 339 |
XML | 2 | 18 | 2 | 167 |
PHP | 6 | 12 | 21 | 120 |
Prolog | 1 | 28 | 47 | 104 |
Bourne Again Shell | 1 | 3 | 3 | 22 |
Perl | 1 | 3 | 3 | 18 |
awk | 1 | 1 | 6 | 18 |
zsh | 1 | 6 | 6 | 8 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 6 | 75.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 1 | 11.11% |
▷ Anonymous functions | 8 | 88.89% |
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