Benchmarks
Plugin footprint 82% 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.03MB] [CPU: ▼1.36ms] Passed 4 tests
Server-side resources used by SCSS-Library
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.27 ▼1.47 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.82 ▼4.16 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.50 ▲1.94 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.92 ▼1.76 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.64 ▲2.07 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/scss-library/" and "wp-content/uploads/"
- (new file) wp-content/build/scss_library/.empty
Filesystem: 92 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
SCSS-Library: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 14.47 ▲0.09 | 1.65 ▼0.39 | 40.10 ▲0.77 |
Dashboard /wp-admin | 2,222 ▲34 | 4.81 ▼0.15 | 109.30 ▲6.94 | 39.11 ▼3.67 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.06 ▲0.05 | 40.19 ▲4.21 | 35.52 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,543 ▲29 | 22.98 ▲5.48 | 690.25 ▼4.12 | 58.66 ▲7.20 |
Media Library /wp-admin/upload.php | 1,407 ▲22 | 4.17 ▼0.02 | 106.48 ▲4.82 | 45.08 ▼1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 33× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Trait 'Baxtian\\SingletonTrait' not found in wp-content/plugins/scss-library/src/Settings/ScssLibrary.php on line 27
- > PHP Fatal error
Trait 'Baxtian\\SingletonTrait' not found in wp-content/plugins/scss-library/src/Libs/CheckDirectory.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/scss-library/vendor/scssphp/scssphp/src/Block/EachBlock.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/scss-library/vendor/scssphp/scssphp/src/Exception/ServerException.php:24
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/scss-library/vendor/scssphp/scssphp/src/Formatter/Debug.php:26
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Block' not found in wp-content/plugins/scss-library/vendor/scssphp/scssphp/src/Block/ForBlock.php:21
- > PHP Fatal error
Uncaught Error: Interface 'ScssPhp\\ScssPhp\\Exception\\SassException' not found in wp-content/plugins/scss-library/vendor/scssphp/scssphp/src/Exception/ParserException.php:22
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\ode' not found in wp-content/plugins/scss-library/vendor/scssphp/scssphp/src/Node/Number.php:36
- > PHP Fatal error
Uncaught Error: Class 'ScssPhp\\ScssPhp\\Formatter' not found in wp-content/plugins/scss-library/vendor/scssphp/scssphp/src/Formatter/Compressed.php:24
- > PHP Fatal error
Trait 'Baxtian\\Singleton' not found in wp-content/plugins/scss-library/src/ScssLibrary.php on line 29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: sass, compiler, scss
scss-library/scss-library.php 92% from 13 tests
The entry point to "SCSS-Library" version 0.4.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected14,018 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 3,824 | 6,585 | 13,440 |
JSON | 3 | 0 | 0 | 297 |
PO File | 2 | 32 | 40 | 142 |
Markdown | 3 | 62 | 0 | 139 |
PHP code 0% from 2 tests
A short 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,493)
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 41.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,493.00 |
Average method complexity | 5.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 3 | 4.76% |
Methods | 625 | |
▷ Static methods | 55 | 8.80% |
▷ Public methods | 248 | 39.68% |
▷ Protected methods | 326 | 52.16% |
▷ Private methods | 51 | 8.16% |
Functions | 27 | |
▷ Named functions | 1 | 3.70% |
▷ Anonymous functions | 26 | 96.30% |
Constants | 75 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 75 | 100.00% |
▷ Public constants | 75 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected