Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.34ms] Passed 4 tests
This is a short check of server-side resources used by Simple SCSS Compiler
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.05 ▼5.21 |
Dashboard /wp-admin | 3.31 ▲0.01 | 50.03 ▼3.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.95 ▲2.48 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 86.30 ▼14.79 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.43 ▲2.03 |
Simple SCSS Compiler /wp-admin/options-general.php?page=sscssc-settings | 3.20 | 29.37 |
Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple SCSS Compiler
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.31 ▼1.06 | 1.73 ▲0.01 | 41.05 ▼2.81 |
Dashboard /wp-admin | 2,211 ▲26 | 5.88 ▲0.86 | 123.20 ▲8.60 | 47.14 ▲3.32 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.07 ▲0.02 | 35.79 ▲0.75 | 31.70 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.26 ▲2.16 | 626.46 ▼61.86 | 57.11 ▼0.88 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.20 ▼0.00 | 94.29 ▼8.06 | 39.46 ▼6.31 |
Simple SCSS Compiler /wp-admin/options-general.php?page=sscssc-settings | 799 | 2.08 | 25.58 | 28.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Exception/CompilerException.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Node/Number.php:36
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Block/ElseBlock.php:21
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Block/AtRootBlock.php:21
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Block/ContentBlock.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Formatter/Debug.php:26
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Exception/RangeException.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Block/ElseifBlock.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Logger\\LoggerInterface' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Logger/StreamLogger.php:18
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/simple-scss-compiler/vendors/scssphp-1.10.0/src/Exception/ServerException.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: scss, simple, css, development, compiler
simple-scss-compiler/simple-scss-compiler.php Passed 13 tests
The principal PHP file in "Simple SCSS Compiler" v. 1.0 is loaded by WordPress automatically on each request
66 characters long description:
Adds a simple way to compile your scss files to css automatically.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin11,712 lines of code in 63 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 3,325 | 5,276 | 11,415 |
JSON | 1 | 0 | 0 | 111 |
JavaScript | 1 | 15 | 8 | 80 |
Markdown | 2 | 28 | 0 | 63 |
CSS | 1 | 0 | 0 | 37 |
XML | 1 | 1 | 5 | 6 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Class cyclomatic complexity should be reduced to less than 1000 (currently 1,488)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 199)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 48.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,488.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 199.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 3 | 6.12% |
Methods | 527 | |
▷ Static methods | 31 | 5.88% |
▷ Public methods | 176 | 33.40% |
▷ Protected methods | 305 | 57.87% |
▷ Private methods | 46 | 8.73% |
Functions | 25 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 25 | 100.00% |
Constants | 75 | |
▷ Global constants | 3 | 4.00% |
▷ Class constants | 72 | 96.00% |
▷ Public constants | 72 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin