Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.24MB] [CPU: ▼47.14ms] Passed 4 tests
Server-side resources used by Lenix scss compiler
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.73 | 20.97 ▼25.28 |
Dashboard /wp-admin | 2.77 ▼0.53 | 16.25 ▼46.74 |
Posts /wp-admin/edit.php | 2.77 ▼0.58 | 19.71 ▼36.76 |
Add New Post /wp-admin/post-new.php | 2.77 ▼3.11 | 15.73 ▼79.75 |
Media Library /wp-admin/upload.php | 2.77 ▼0.46 | 16.68 ▼25.29 |
Lenix scss compiler /wp-admin/options-general.php?page=lenix-scss-compiler | 2.77 | 18.67 |
Server storage [IO: ▲0.55MB] [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: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Lenix scss compiler
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.20 ▼1.17 | 1.82 ▼0.10 | 38.15 ▼9.16 |
Dashboard /wp-admin | 2,225 ▲19 | 5.89 ▲0.08 | 98.93 ▼15.10 | 40.86 ▼12.23 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▼0.08 | 37.26 ▼5.04 | 31.54 ▼6.04 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.04 ▲5.56 | 611.84 ▼119.52 | 71.00 ▲10.38 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.25 ▲0.09 | 113.20 ▼11.85 | 51.79 ▲0.78 |
Lenix scss compiler /wp-admin/options-general.php?page=lenix-scss-compiler | 854 | 2.05 | 29.06 | 36.14 |
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
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/lenix-scss-compiler/class/lenix-scss-compiler.php+38
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lenix-scss-compiler
- > Notice in wp-content/plugins/lenix-scss-compiler/options.php+127
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 16× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/lenix-scss-compiler/scssphp/src/Exception/ParserException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/lenix-scss-compiler/scssphp/src/Exception/ServerException.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/lenix-scss-compiler/lenix-scss-compiler.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lenix-scss-compiler/options.php:300
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/lenix-scss-compiler/scssphp/src/Formatter/Compact.php:26
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/lenix-scss-compiler/scssphp/src/Exception/RangeException.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function ScssPhp\\ScssPhp\\get_option() in wp-content/plugins/lenix-scss-compiler/class/lenix-scss-compiler.php:38
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/lenix-scss-compiler/scssphp/src/Node/Number.php:36
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/lenix-scss-compiler/scssphp/src/Exception/CompilerException.php:22
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Logger\\LoggerInterface' not found in wp-content/plugins/lenix-scss-compiler/scssphp/src/Logger/StreamLogger.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: A description for screenshot #1 is required in lenix-scss-compiler/assets to your readme.txt
lenix-scss-compiler/lenix-scss-compiler.php Passed 13 tests
This is the main PHP file of "Lenix scss compiler" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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
Everything looks great! No dangerous files found in this plugin11,499 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 45 | 3,282 | 4,762 | 11,341 |
JSON | 1 | 0 | 0 | 89 |
Markdown | 2 | 28 | 0 | 63 |
XML | 1 | 1 | 5 | 6 |
PHP code 0% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 1,430)
- 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 | 62.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,430.00 |
Average method complexity | 5.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 199.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 2 | 5.13% |
▷ Concrete classes | 37 | 94.87% |
▷ Final classes | 3 | 8.11% |
Methods | 525 | |
▷ Static methods | 31 | 5.90% |
▷ Public methods | 164 | 31.24% |
▷ Protected methods | 305 | 58.10% |
▷ Private methods | 56 | 10.67% |
Functions | 28 | |
▷ Named functions | 2 | 7.14% |
▷ Anonymous functions | 26 | 92.86% |
Constants | 77 | |
▷ Global constants | 5 | 6.49% |
▷ Class constants | 72 | 93.51% |
▷ 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 25.94KB | 7.00KB | ▼ 73.03% |