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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 39.46 ▲4.16 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.13 ▼11.14 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 45.23 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.52 ▼4.97 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.37 ▲1.71 |
WP-SCSS /wp-admin/options-general.php?page=wpscss_options | 3.22 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲16 | 14.33 ▲0.06 | 1.64 ▼0.19 | 43.66 ▲6.43 |
Dashboard /wp-admin | 2,205 ▲31 | 5.59 ▼0.01 | 97.40 ▲10.13 | 43.70 ▲4.42 |
Posts /wp-admin/edit.php | 2,116 ▲19 | 1.96 ▼0.06 | 37.06 ▲2.35 | 37.58 ▲3.65 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.63 ▲0.32 | 626.98 ▲22.09 | 53.23 ▲0.69 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.17 ▼0.03 | 103.58 ▲5.47 | 46.14 ▲3.28 |
WP-SCSS /wp-admin/options-general.php?page=wpscss_options | 975 | 2.14 | 26.26 | 31.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 237 | 7,704 | 14,015 | 26,337 |
Markdown | 3 | 78 | 0 | 215 |
JSON | 2 | 1 | 0 | 130 |
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 code | 0.55 |
Average class complexity | 24.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,461.00 |
Average method complexity | 3.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 194.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 31 | |
Traits | 0 | |
Classes | 204 | |
▷ Abstract classes | 15 | 7.35% |
▷ Concrete classes | 189 | 92.65% |
▷ Final classes | 180 | 95.24% |
Methods | 1,985 | |
▷ Static methods | 189 | 9.52% |
▷ Public methods | 1,346 | 67.81% |
▷ Protected methods | 94 | 4.74% |
▷ Private methods | 545 | 27.46% |
Functions | 111 | |
▷ Named functions | 10 | 9.01% |
▷ Anonymous functions | 101 | 90.99% |
Constants | 122 | |
▷ Global constants | 5 | 4.10% |
▷ Class constants | 117 | 95.90% |
▷ Public constants | 106 | 90.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