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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 39.25 ▲2.71 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.28 ▼16.59 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.85 ▼1.82 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.65 ▼8.53 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.63 ▲5.77 |
WP SCSS /wp-admin/options-general.php?page=scss-wp-editor | 3.25 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲116 | 15.92 ▲1.55 | 5.42 ▲3.48 | 41.19 ▼1.63 |
Dashboard /wp-admin | 2,210 ▲36 | 6.59 ▲0.97 | 124.73 ▲16.71 | 40.85 ▼5.27 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 3.38 ▲1.40 | 82.16 ▲46.85 | 38.78 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 24.20 ▲0.42 | 643.51 ▼53.49 | 56.17 ▼0.76 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 5.10 ▲0.84 | 128.61 ▲30.23 | 41.46 ▼4.56 |
WP SCSS /wp-admin/options-general.php?page=scss-wp-editor | 1,130 | 3.21 | 74.79 | 37.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 3,350 | 5,418 | 11,429 |
CSS | 2 | 28 | 11 | 143 |
JSON | 1 | 0 | 0 | 109 |
Markdown | 2 | 28 | 0 | 63 |
JavaScript | 2 | 10 | 55 | 42 |
XML | 1 | 1 | 5 | 6 |
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 code | 0.53 |
Average class complexity | 56.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,460.00 |
Average method complexity | 5.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 199.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 2 | 4.65% |
▷ Concrete classes | 41 | 95.35% |
▷ Final classes | 3 | 7.32% |
Methods | 534 | |
▷ Static methods | 33 | 6.18% |
▷ Public methods | 179 | 33.52% |
▷ Protected methods | 305 | 57.12% |
▷ Private methods | 50 | 9.36% |
Functions | 28 | |
▷ Named functions | 3 | 10.71% |
▷ Anonymous functions | 25 | 89.29% |
Constants | 73 | |
▷ Global constants | 1 | 1.37% |
▷ Class constants | 72 | 98.63% |
▷ Public constants | 72 | 100.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