83% syntaxhighlighter-evolved-vhdl-brush

Code Review | SyntaxHighlighter Evolved: VHDL Brush

WordPress plugin SyntaxHighlighter Evolved: VHDL Brush scored 83% from 54 tests.

About plugin

  • Plugin page: syntaxhighlighter...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.3
  • WordPress version: 6.3.1
  • First release: Aug 25, 2012
  • Latest release: Aug 21, 2015
  • Number of updates: 10
  • Update frequency: every 109.1 days
  • Top authors: UnboundDarkness (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,417 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by SyntaxHighlighter Evolved: VHDL Brush
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.04 ▲3.49
Dashboard /wp-admin3.31 ▲0.0144.35 ▼6.08
Posts /wp-admin/edit.php3.37 ▲0.0148.65 ▲2.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.88 ▼7.71
Media Library /wp-admin/upload.php3.24 ▲0.0133.81 ▼0.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for SyntaxHighlighter Evolved: VHDL Brush
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.031.73 ▲0.1840.85 ▼0.95
Dashboard /wp-admin2,206 ▲175.80 ▲0.8996.91 ▼17.3337.79 ▼3.27
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0336.48 ▼3.6230.57 ▼8.67
Add New Post /wp-admin/post-new.php1,535 ▲1623.38 ▲0.45644.52 ▼23.2753.00 ▼8.20
Media Library /wp-admin/upload.php1,391 ▲34.17 ▼0.0396.80 ▼1.9742.84 ▼2.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/syntaxhighlighter-evolved-vhdl-brush/syntaxhighlighter-VhdlBrush.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (An example of the VHDL brush for SyntaxHighlighter Evolved.), #2 (An example of the Verilog brush for SyntaxHighlighter Evolved.), #3 (An example of the Xilinx UCF brush for SyntaxHighlighter Evolved.)
Please take inspiration from this readme.txt

syntaxhighlighter-evolved-vhdl-brush/syntaxhighlighter-VhdlBrush.php 85% from 13 tests

This is the main PHP file of "SyntaxHighlighter Evolved: VHDL Brush" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("syntaxhighlighter-evolved-vhdl-brush.php" instead of "syntaxhighlighter-VhdlBrush.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin91 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3122874
PHP141717

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png6.36KB3.11KB▼ 51.10%
screenshot-1.png18.35KB9.06KB▼ 50.62%
screenshot-2.png13.93KB5.78KB▼ 58.47%