90% code-block-pro

Code Review | Code Block Pro - Beautiful Syntax Highlighting

WordPress plugin Code Block Pro - Beautiful Syntax Highlighting scored90%from 54 tests.

About plugin

  • Plugin page: code-block-pro
  • Plugin version: 1.25.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 22, 2022
  • Latest release: Nov 14, 2023
  • Number of updates: 81
  • Update frequency: every 5.5 days
  • Top authors: kbat82 (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

5,000+ active /47,812 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.81 ▼6.57
Dashboard /wp-admin3.36 ▲0.0548.87 ▼3.00
Posts /wp-admin/edit.php3.47 ▲0.1149.08 ▲4.45
Add New Post /wp-admin/post-new.php5.91 ▲0.0191.95 ▲0.89
Media Library /wp-admin/upload.php3.28 ▲0.0533.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

Browser metrics Passed 4 tests

An overview of browser requirements for Code Block Pro - Beautiful Syntax Highlighting
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4614.20 ▼0.141.56 ▼0.2636.67 ▼6.02
Dashboard /wp-admin2,195 ▲175.58 ▼0.1190.88 ▼27.0541.06 ▼7.26
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0538.88 ▲2.3134.88 ▼3.81
Add New Post /wp-admin/post-new.php6,372 ▲4,84628.34 ▲5.41847.15 ▲181.6961.69 ▲8.13
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.0099.92 ▲1.8940.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


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:
LanguageFilesBlank linesComment linesLines of code
Bourne Again Shell13322

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 code0.26
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods675.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions111.11%
▷ Anonymous functions888.89%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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