Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.82MB] [CPU: ▼4.25ms] Passed 4 tests
Server-side resources used by Sassify
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.27 ▲0.81 | 44.23 ▲4.77 |
Dashboard /wp-admin | 4.12 ▲0.82 | 47.76 ▲2.04 |
Posts /wp-admin/edit.php | 4.23 ▲0.88 | 50.13 ▲3.32 |
Add New Post /wp-admin/post-new.php | 6.70 ▲0.82 | 82.56 ▼27.13 |
Media Library /wp-admin/upload.php | 4.04 ▲0.82 | 40.29 ▲4.81 |
Sassify /wp-admin/options-general.php?page=sassify | 4.01 | 34.92 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Sassify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.74 ▲0.47 | 1.74 ▲0.19 | 43.46 ▲3.83 |
Dashboard /wp-admin | 2,210 ▲19 | 5.81 ▲0.94 | 107.23 ▼0.23 | 37.45 ▼2.06 |
Posts /wp-admin/edit.php | 2,093 ▲22 | 1.99 ▼0.05 | 40.19 ▲5.13 | 34.73 ▲3.76 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.72 ▼5.71 | 657.07 ▲11.33 | 57.94 ▲0.37 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.14 ▼0.13 | 105.11 ▲7.82 | 45.18 ▼1.44 |
Sassify /wp-admin/options-general.php?page=sassify | 870 | 2.06 | 26.93 | 45.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Leafo_ScssPhp_Formatter' not found in wp-content/plugins/sassify/vendor/scssphp/src/Formatter/Expanded.php:22
- > PHP Warning
require_once(SASSIFY_PLUGIN_DIRclass-sassify-admin.php): failed to open stream: No such file or directory in wp-content/plugins/sassify/class-sassify-plugin.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Leafo_ScssPhp_Formatter' not found in wp-content/plugins/sassify/vendor/scssphp/src/Formatter/Compact.php:22
- > PHP Fatal error
Uncaught Error: Class 'Leafo_ScssPhp_Compiler' not found in wp-content/plugins/sassify/vendor/scssphp/classmap.php:18
- > PHP Fatal error
Uncaught Error: Class 'Leafo_ScssPhp_Formatter' not found in wp-content/plugins/sassify/vendor/scssphp/src/Formatter/Crunched.php:22
- > PHP Warning
Use of undefined constant SASSIFY_PLUGIN_DIR - assumed 'SASSIFY_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/sassify/class-sassify-plugin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sassify/sassify.php:14
- > PHP Fatal error
require_once(): Failed opening required 'SASSIFY_PLUGIN_DIRclass-sassify-admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/sassify/class-sassify-plugin.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Leafo_ScssPhp_Formatter' not found in wp-content/plugins/sassify/vendor/scssphp/src/Formatter/Compressed.php:22
- > PHP Fatal error
Uncaught Error: Class 'Leafo_ScssPhp_Formatter' not found in wp-content/plugins/sassify/vendor/scssphp/src/Formatter/Nested.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: scss, sass, css
sassify/sassify.php Passed 13 tests
The main PHP file in "Sassify" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
Adds support for SCSS stylesheets to wp_enqueue_style.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected5,315 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 1,299 | 856 | 4,738 |
Markdown | 2 | 144 | 0 | 564 |
Bourne Shell | 1 | 2 | 3 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 49.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 509.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 1 | 5.00% |
▷ Concrete classes | 19 | 95.00% |
▷ Final classes | 0 | 0.00% |
Methods | 279 | |
▷ Static methods | 3 | 1.08% |
▷ Public methods | 63 | 22.58% |
▷ Protected methods | 216 | 77.42% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 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
There are no PNG files in this plugin