89% syntax-highlighter-for-elementor

Code Review | Elementor Syntax Highlighter

WordPress plugin Elementor Syntax Highlighter scored89%from 54 tests.

About plugin

  • Plugin page: syntax-highlighte...
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2020
  • Latest release: Apr 5, 2021
  • Number of updates: 30
  • Update frequency: every 14.2 days
  • Top authors: soliddigital (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /4,372 total downloads

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
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Elementor Syntax Highlighter
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.52 ▲1.99
Dashboard /wp-admin3.31 ▲0.0145.16 ▼3.83
Posts /wp-admin/edit.php3.36 ▲0.0149.00 ▲1.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.50 ▼5.51
Media Library /wp-admin/upload.php3.24 ▲0.0134.25 ▼0.24

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Elementor Syntax Highlighter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.371.59 ▲0.0439.57 ▲1.93
Dashboard /wp-admin2,195 ▲185.62 ▲0.0085.59 ▼5.3340.90 ▼2.53
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0738.91 ▲4.7436.57 ▲1.22
Add New Post /wp-admin/post-new.php1,528 ▼023.33 ▲0.18671.93 ▼7.8753.43 ▼5.47
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0796.51 ▼7.6943.97 ▼1.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: prism, code, elementors, syntax highlight

syntax-highlighter-for-elementor/solid-syntax-higlighter.php 85% from 13 tests

"Elementor Syntax Highlighter" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("syntax-highlighter-for-elementor.php" instead of "solid-syntax-higlighter.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin273 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22516128
CSS119998
JavaScript10247

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods457.14%
▷ Protected methods228.57%
▷ Private methods114.29%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants1100.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