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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.27ms] Passed 4 tests
Server-side resources used by Sass To CSS Compiler
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.63 ▼0.06 |
Dashboard /wp-admin | 3.44 ▲0.13 | 44.64 ▼5.60 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 46.14 ▼0.92 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 93.92 ▼6.29 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 33.61 ▼0.25 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
sasstocss_basic_settings |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Sass To CSS Compiler
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼1.31 | 1.81 ▲0.06 | 44.07 ▲4.63 |
Dashboard /wp-admin | 2,210 ▲22 | 4.86 ▼0.96 | 98.25 ▼7.99 | 39.50 ▼2.99 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.01 | 36.31 ▼4.38 | 33.01 ▼2.19 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.55 ▲5.23 | 608.17 ▼3.85 | 53.06 ▼10.26 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.01 | 101.99 ▲5.24 | 43.61 ▲0.94 |
Sass to CSS Compiler /wp-admin/sass-to-css-compiler.php | 26 | 0.44 | 0.12 | 13.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- sasstocss_basic_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant SASSTOCSS_PLUGIN_PATH - assumed 'SASSTOCSS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sass-to-css-compiler/admin/admin_settings.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/sass-to-css-compiler/includes/library/vendor/scssphp/scssphp/src/Formatter/Nested.php:23
- > PHP Fatal error
require(): Failed opening required 'SASSTOCSS_PLUGIN_PATHincludes/class.settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/sass-to-css-compiler/admin/admin_settings.php on line 15
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/sass-to-css-compiler/includes/library/vendor/scssphp/scssphp/src/Formatter/Expanded.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/sass-to-css-compiler/includes/library/vendor/scssphp/scssphp/src/Formatter/Compact.php:21
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/sass-to-css-compiler/includes/library/vendor/scssphp/scssphp/src/Formatter/Compressed.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/sass-to-css-compiler/includes/library/vendor/scssphp/scssphp/src/Formatter/Debug.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/sass-to-css-compiler/includes/library/vendor/scssphp/scssphp/src/Node/Number.php:29
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/sass-to-css-compiler/includes/library/vendor/scssphp/scssphp/src/Formatter/Crunched.php:22
- > PHP Warning
require(SASSTOCSS_PLUGIN_PATHincludes/class.settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/sass-to-css-compiler/admin/admin_settings.php on line 15
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/sass-to-css-compiler.php
- > Network (severe)
wp-admin/sass-to-css-compiler.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: sass-compiler, scss, minify, compiler, enqueue-scripts...
sass-to-css-compiler/sass-to-css-compiler.php 92% from 13 tests
This is the main PHP file of "Sass To CSS Compiler" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis 0% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Please make sure to remedy the following
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/sass-to-css-compiler/includes/library/vendor/bin/pscss.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 2,750 | 3,570 | 9,714 |
JSON | 3 | 0 | 0 | 121 |
Markdown | 2 | 21 | 0 | 45 |
Bourne Shell | 1 | 3 | 1 | 10 |
DOS Batch | 1 | 0 | 0 | 4 |
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 has to be reduced to less than 1000 (currently 1,208)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 195)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 66.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,208.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 195.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 2 | 6.06% |
▷ Concrete classes | 31 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 449 | |
▷ Static methods | 19 | 4.23% |
▷ Public methods | 145 | 32.29% |
▷ Protected methods | 292 | 65.03% |
▷ Private methods | 12 | 2.67% |
Functions | 22 | |
▷ Named functions | 2 | 9.09% |
▷ Anonymous functions | 20 | 90.91% |
Constants | 69 | |
▷ Global constants | 2 | 2.90% |
▷ Class constants | 67 | 97.10% |
▷ Public constants | 67 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/0.png | 5.55KB | 3.55KB | ▼ 36.05% |
admin/assets/images/1.png | 5.22KB | 3.57KB | ▼ 31.58% |
admin/assets/images/4.png | 4.43KB | 3.00KB | ▼ 32.25% |
admin/assets/images/3.png | 5.07KB | 3.40KB | ▼ 33.02% |
admin/assets/images/2.png | 5.03KB | 3.21KB | ▼ 36.16% |