84% wp-scss

Code Review | WP-SCSS

WordPress plugin WP-SCSS scored84%from 54 tests.

About plugin

  • Plugin page: wp-scss
  • Plugin version: 4.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Nov 25, 2013
  • Latest release: Dec 15, 2022
  • Number of updates: 98
  • Update frequency: every 33.9 days
  • Top authors: connectthink (56.12%)Sky Bolt (44.9%)

Code review

54 tests

User reviews

60 reviews

Install metrics

50,000+ active /390,744 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by WP-SCSS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.46 ▲4.16
Dashboard /wp-admin3.33 ▼0.0146.13 ▼11.14
Posts /wp-admin/edit.php3.38 ▲0.0345.23 ▲0.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.52 ▼4.97
Media Library /wp-admin/upload.php3.25 ▲0.0235.37 ▲1.71
WP-SCSS /wp-admin/options-general.php?page=wpscss_options3.2231.44

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 245 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-SCSS
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲1614.33 ▲0.061.64 ▼0.1943.66 ▲6.43
Dashboard /wp-admin2,205 ▲315.59 ▼0.0197.40 ▲10.1343.70 ▲4.42
Posts /wp-admin/edit.php2,116 ▲191.96 ▼0.0637.06 ▲2.3537.58 ▲3.65
Add New Post /wp-admin/post-new.php1,541 ▲1323.63 ▲0.32626.98 ▲22.0953.23 ▲0.69
Media Library /wp-admin/upload.php1,416 ▲194.17 ▼0.03103.58 ▲5.4746.14 ▲3.28
WP-SCSS /wp-admin/options-general.php?page=wpscss_options9752.1426.2631.34

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 take a closer look at the following
  • 171× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/wp-scss/scssphp/src/Formatter/Compressed.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/wp-scss/scssphp/src/Block/ElseBlock.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Ast\\Css\\ModifiableCssParentNode' not found in wp-content/plugins/wp-scss/scssphp/src/Ast/Css/ModifiableCssSupportsRule.php:22
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Ast\\Sass\\Expression' not found in wp-content/plugins/wp-scss/scssphp/src/Ast/Sass/Expression/VariableExpression.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Value\\SassNumber' not found in wp-content/plugins/wp-scss/scssphp/src/Value/SingleUnitSassNumber.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/wp-scss/scssphp/src/Block/MediaBlock.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Ast\\Sass\\Statement\\ParentStatement' not found in wp-content/plugins/wp-scss/scssphp/src/Ast/Sass/Statement/AtRootRule.php:29
    • > PHP Fatal error
      Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Ast\\Sass\\SupportsCondition' not found in wp-content/plugins/wp-scss/scssphp/src/Ast/Sass/SupportsCondition/SupportsOperation.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Ast\\Css\\ModifiableCssNode' not found in wp-content/plugins/wp-scss/scssphp/src/Ast/Css/ModifiableCssParentNode.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ScssPhp\\ScssPhp\\Ast\\Css\\ModifiableCssParentNode' not found in wp-content/plugins/wp-scss/scssphp/src/Ast/Css/ModifiableCssKeyframeBlock.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: sass, scss, scssphp, css

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

The main PHP script in "WP-SCSS" version 4.0.2 is automatically included on every request by WordPress
38 characters long description:
Compiles scss files live on WordPress.

Code Analysis 95% from 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
Good job! No executable or dangerous file extensions detected26,682 lines of code in 242 files:
LanguageFilesBlank linesComment linesLines of code
PHP2377,70414,01526,337
Markdown3780215
JSON210130

PHP code 0% from 2 tests

An overview of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,461)
  • Method cyclomatic complexity should be reduced to less than 100 (currently 194)
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity24.47
▷ Minimum class complexity1.00
▷ Maximum class complexity1,461.00
Average method complexity3.79
▷ Minimum method complexity1.00
▷ Maximum method complexity194.00
Code structure
Namespaces26
Interfaces31
Traits0
Classes204
▷ Abstract classes157.35%
▷ Concrete classes18992.65%
▷ Final classes18095.24%
Methods1,985
▷ Static methods1899.52%
▷ Public methods1,34667.81%
▷ Protected methods944.74%
▷ Private methods54527.46%
Functions111
▷ Named functions109.01%
▷ Anonymous functions10190.99%
Constants122
▷ Global constants54.10%
▷ Class constants11795.90%
▷ Public constants10690.60%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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