84% syntaxhighlighter-evolved-dynamics-nav-cside-brush

Code Review | SyntaxHighlighter Evolved: Cside Brush

WordPress plugin SyntaxHighlighter Evolved: Cside Brush scored84%from 54 tests.

About plugin

  • Plugin page: syntaxhighlighter...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2015
  • Latest release: Jun 21, 2015
  • Number of updates: 3
  • Update frequency: every 29.3 days
  • Top authors: Adeptris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /817 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by SyntaxHighlighter Evolved: Cside Brush
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.42 ▼6.42
Dashboard /wp-admin3.31 ▲0.0045.44 ▼3.73
Posts /wp-admin/edit.php3.36 ▲0.0045.40 ▼4.37
Add New Post /wp-admin/post-new.php5.89 ▲0.00107.16 ▲15.84
Media Library /wp-admin/upload.php3.23 ▲0.0038.96 ▲2.32

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

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

Browser metrics Passed 4 tests

Checking browser requirements for SyntaxHighlighter Evolved: Cside Brush
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.101.70 ▼0.2137.36 ▼8.77
Dashboard /wp-admin2,209 ▲215.88 ▲1.0097.77 ▼20.3940.47 ▼3.45
Posts /wp-admin/edit.php2,089 ▲212.06 ▲0.0136.30 ▼0.3933.89 ▲2.15
Add New Post /wp-admin/post-new.php1,513 ▼2417.71 ▼5.59645.07 ▼18.1052.26 ▲0.55
Media Library /wp-admin/upload.php1,385 ▼34.23 ▼0.02100.42 ▼13.9542.10 ▼5.37

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 were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 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-dynamics-nav-cside-brush/syntaxhighlighter-cside.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Example code.)
Please take inspiration from this readme.txt

syntaxhighlighter-evolved-dynamics-nav-cside-brush/syntaxhighlighter-cside.php 92% from 13 tests

"SyntaxHighlighter Evolved: Cside Brush" version 0.2'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: The principal plugin file should be the same as the plugin slug ("syntaxhighlighter-evolved-dynamics-nav-cside-brush.php" instead of "syntaxhighlighter-cside.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin32 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript152019
PHP151113

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png19.62KB9.24KB▼ 52.92%