84% syntaxhighlighter-evolved-themes

Code Review | SyntaxHighlighter Evolved Themes

WordPress plugin SyntaxHighlighter Evolved Themes scored84%from 54 tests.

About plugin

  • Plugin page: syntaxhighlighter...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Apr 20, 2014
  • Number of updates: 6
  • Update frequency: every 3.3 days
  • Top authors: Kopepasah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /2,548 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

A check of server-side resources used by SyntaxHighlighter Evolved Themes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.35 ▼2.14
Dashboard /wp-admin3.32 ▼0.0350.66 ▼11.52
Posts /wp-admin/edit.php3.37 ▲0.0148.89 ▲1.64
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.31 ▼10.17
Media Library /wp-admin/upload.php3.24 ▲0.0134.73 ▲2.39

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

SyntaxHighlighter Evolved Themes: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲8613.28 ▼1.111.98 ▲0.1337.22 ▼5.63
Dashboard /wp-admin2,213 ▲254.86 ▼1.04109.13 ▲8.4839.01 ▼2.08
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0439.41 ▼1.0635.30 ▼0.33
Add New Post /wp-admin/post-new.php1,549 ▲3018.11 ▼5.11641.59 ▲38.3850.79 ▲2.12
Media Library /wp-admin/upload.php1,395 ▲44.23 ▲0.04101.26 ▲1.1643.34 ▲0.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/syntaxhighlighter-evolved-themes/syntaxhighlighter-themes.php:138

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: solarized, tomorrow theme, syntaxhighlighter, themes

syntaxhighlighter-evolved-themes/syntaxhighlighter-themes.php 92% from 13 tests

The main PHP script in "SyntaxHighlighter Evolved Themes" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("syntaxhighlighter-evolved-themes.php" instead of "syntaxhighlighter-themes.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin412 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS3027330
PHP1207345
PO File14426
Markdown14011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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 are no PNG files in this plugin