84% syntaxhighlighter-evolved-h-brush

Code Review | SyntaxHighlighter Evolved: H Brush

WordPress plugin SyntaxHighlighter Evolved: H Brush scored 84% from 54 tests.

About plugin

  • Plugin page: syntaxhighlighter...
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Aug 9, 2015
  • Latest release: Feb 18, 2018
  • Number of updates: 4
  • Update frequency: every 230.8 days
  • Top authors: andychurchill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 808 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.94ms] Passed 4 tests

An overview of server-side resources used by SyntaxHighlighter Evolved: H Brush
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.41 ▼3.27
Dashboard /wp-admin3.31 ▲0.0044.74 ▼4.92
Posts /wp-admin/edit.php3.36 ▲0.0047.00 ▼0.45
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.05 ▼11.12
Media Library /wp-admin/upload.php3.23 ▲0.0035.91 ▲1.48

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SyntaxHighlighter Evolved: H Brush
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.63 ▲0.011.60 ▼0.2741.32 ▼1.49
Dashboard /wp-admin2,206 ▼04.84 ▼0.99109.52 ▲12.6240.96 ▲0.50
Posts /wp-admin/edit.php2,086 ▼32.00 ▼0.0136.82 ▲2.3332.57 ▼0.86
Add New Post /wp-admin/post-new.php1,542 ▲918.69 ▼4.34635.94 ▼24.6554.27 ▲1.71
Media Library /wp-admin/upload.php1,385 ▼34.18 ▲0.0093.87 ▼16.3642.83 ▲1.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/syntaxhighlighter-evolved-h-brush/shBrushHackpad.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
9 plugin tags: hackpad, brush, syntax, theme, hacked...

syntaxhighlighter-evolved-h-brush/shBrushHackpad.php 85% from 13 tests

"SyntaxHighlighter Evolved: H Brush" version 0.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("syntaxhighlighter-evolved-h-brush.php" instead of "shBrushHackpad.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 226 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
There were no executable files found in this plugin141 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS111597
PHP19723
JavaScript12021

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin