68% scss-wp-editor

Code Review | SCSS WP Editor

WordPress plugin SCSS WP Editor scored68%from 54 tests.

About plugin

  • Plugin page: scss-wp-editor
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 18, 2022
  • Latest release: Sep 6, 2023
  • Number of updates: 21
  • Update frequency: every 28.4 days
  • Top authors: itpathsolutions (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,023 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.06ms] Passed 4 tests

Server-side resources used by SCSS WP Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.25 ▲2.71
Dashboard /wp-admin3.33 ▼0.0244.28 ▼16.59
Posts /wp-admin/edit.php3.38 ▲0.0246.85 ▼1.82
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.65 ▼8.53
Media Library /wp-admin/upload.php3.25 ▲0.0238.63 ▲5.77
WP SCSS /wp-admin/options-general.php?page=scss-wp-editor3.2531.04

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 67 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
swe_box_value_status
can_compress_scripts
theysaidso_admin_options
swe_scss_box_value
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SCSS WP Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲11615.92 ▲1.555.42 ▲3.4841.19 ▼1.63
Dashboard /wp-admin2,210 ▲366.59 ▲0.97124.73 ▲16.7140.85 ▼5.27
Posts /wp-admin/edit.php2,117 ▲173.38 ▲1.4082.16 ▲46.8538.78 ▲0.71
Add New Post /wp-admin/post-new.php1,538 ▲1224.20 ▲0.42643.51 ▼53.4956.17 ▼0.76
Media Library /wp-admin/upload.php1,418 ▲215.10 ▲0.84128.61 ▲30.2341.46 ▼4.56
WP SCSS /wp-admin/options-general.php?page=scss-wp-editor1,1303.2174.7937.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/scss-wp-editor/uninstall.php+39
    unlink(wp-content/uploads/scss-wp/compiled-scss.css): No such file or directory
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/scss-wp-editor/public/partials/scss-wp-editor-public-display.php
    • > /wp-content/plugins/scss-wp-editor/admin/partials/scss-wp-editor-admin-display.php
    • > /wp-content/plugins/scss-wp-editor/admin/partials/scss-wp-editor-admin-sidebar.php
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/scss-wp-editor/admin/class-scss-wp-editor-admin.php:24
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Exception/CompilerException.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Exception/RangeException.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Logger\\LoggerInterface' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Logger/StreamLogger.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Exception/ServerException.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Formatter/Crunched.php:26
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Exception/ParserException.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Formatter/Compact.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Formatter/Nested.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/scss-wp-editor/admin/scssphp/src/Node/Number.php:36

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

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
Please take inspiration from this readme.txt

scss-wp-editor/scss-wp-editor.php Passed 13 tests

The main PHP file in "SCSS WP Editor" ver. 1.1.6 adds more information about the plugin and also serves as the entry point for this plugin
73 characters long description:
Easily Add, Compile and Optimize your SCSS to CSS within WordPress Admin.

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin11,792 lines of code in 61 files:
LanguageFilesBlank linesComment linesLines of code
PHP533,3505,41811,429
CSS22811143
JSON100109
Markdown228063
JavaScript2105542
XML1156

PHP code 0% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,460)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 199)
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity56.78
▷ Minimum class complexity1.00
▷ Maximum class complexity1,460.00
Average method complexity5.55
▷ Minimum method complexity1.00
▷ Maximum method complexity199.00
Code structure
Namespaces9
Interfaces2
Traits0
Classes43
▷ Abstract classes24.65%
▷ Concrete classes4195.35%
▷ Final classes37.32%
Methods534
▷ Static methods336.18%
▷ Public methods17933.52%
▷ Protected methods30557.12%
▷ Private methods509.36%
Functions28
▷ Named functions310.71%
▷ Anonymous functions2589.29%
Constants73
▷ Global constants11.37%
▷ Class constants7298.63%
▷ Public constants72100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin