84% she-lotusscript-brush

Code Review | SyntaxHighlighter Evolved: LotusScript Brush

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

About plugin

  • Plugin page: she-lotusscript-b...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 4, 2019
  • Latest release: Feb 4, 2019
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: eknori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by SyntaxHighlighter Evolved: LotusScript Brush
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.82 ▲0.49
Dashboard /wp-admin3.31 ▲0.0181.76 ▲21.62
Posts /wp-admin/edit.php3.36 ▲0.0156.63 ▼7.24
Add New Post /wp-admin/post-new.php5.89 ▲0.01117.45 ▼157.44
Media Library /wp-admin/upload.php3.24 ▲0.0135.86 ▲0.63

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SyntaxHighlighter Evolved: LotusScript Brush
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲5613.23 ▼1.571.84 ▼0.1049.24 ▼0.46
Dashboard /wp-admin2,203 ▲325.88 ▲0.00133.36 ▼19.9452.39 ▼7.16
Posts /wp-admin/edit.php2,089 ▼51.98 ▼0.0163.98 ▲19.6753.72 ▲9.03
Add New Post /wp-admin/post-new.php1,540 ▲2023.16 ▲0.10738.17 ▼115.3866.31 ▼1.21
Media Library /wp-admin/upload.php1,388 ▲34.27 ▲0.04114.17 ▼3.4954.29 ▼2.14

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/she-lotusscript-brush/syntaxhighlighter_lotusscript.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
5 plugin tags: block, sourcecode, lotusscript, code, wp

she-lotusscript-brush/syntaxhighlighter_lotusscript.php 92% from 13 tests

"SyntaxHighlighter Evolved: LotusScript Brush" version 1.0.0'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: Name the main plugin file the same as the plugin slug ("she-lotusscript-brush.php" instead of "syntaxhighlighter_lotusscript.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin228 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript136186
CSS15025
PHP16917

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were 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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin