90% code-block-for-elementor

Code Review | Code Block Syntax Highlighter for Elementor

WordPress plugin Code Block Syntax Highlighter for Elementor scored 90% from 54 tests.

About plugin

  • Plugin page: code-block-for-el...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2021
  • Latest release: Sep 14, 2023
  • Number of updates: 7
  • Update frequency: every 143.0 days
  • Top authors: netninja2202 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

700+ active / 3,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.76ms] Passed 4 tests

Server-side resources used by Code Block Syntax Highlighter for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.62 ▼2.51
Dashboard /wp-admin3.31 ▲0.0150.73 ▲1.86
Posts /wp-admin/edit.php3.36 ▲0.0044.07 ▼8.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.50 ▼10.15
Media Library /wp-admin/upload.php3.23 ▲0.0037.95 ▲3.40

Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Code Block Syntax Highlighter for Elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8314.48 ▲0.051.73 ▼0.5543.09 ▼4.43
Dashboard /wp-admin2,224 ▲334.88 ▲0.00103.77 ▼2.6241.02 ▼4.79
Posts /wp-admin/edit.php2,106 ▲172.03 ▼0.0136.23 ▼4.2035.67 ▼1.89
Add New Post /wp-admin/post-new.php1,546 ▲3223.18 ▲5.47595.92 ▼23.1958.97 ▲4.32
Media Library /wp-admin/upload.php1,403 ▲154.25 ▲0.0099.97 ▲3.4143.49 ▲0.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention: The official readme.txt might help

code-block-for-elementor/code-block-for-elementor.php Passed 13 tests

The main file in "Code Block Syntax Highlighter for Elementor" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
34 characters long description:
A syntax highlighter for Elementor

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
There were no executable files found in this plugin1,997 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS9234981,226
PHP38179532
JavaScript207239

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity6.50
▷ Minimum class complexity4.00
▷ Maximum class complexity9.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods20
▷ Static methods15.00%
▷ Public methods1785.00%
▷ Protected methods315.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.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
No PNG files were detected