Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.23MB] [CPU: ▼41.83ms] Passed 4 tests
Analyzing server-side resources used by SASS Compiler
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 14.41 ▼28.90 |
Dashboard /wp-admin | 2.78 ▼0.52 | 16.97 ▼29.39 |
Posts /wp-admin/edit.php | 2.79 ▼0.57 | 16.38 ▼28.98 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.10 | 16.74 ▼80.04 |
Media Library /wp-admin/upload.php | 2.78 ▼0.44 | 16.83 ▼21.68 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
It is recommended to fix the following issues
- Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/sass-compiler/" and "wp-content/uploads/"
- (new file) wp-content/cache/.empty
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
sass_variables_defaults |
can_compress_scripts |
sass_compiler |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by SASS Compiler
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.24 ▼0.31 | 1.86 ▼0.15 | 44.44 ▼1.76 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▲0.02 | 96.18 ▲4.55 | 78.90 ▲34.93 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.00 ▲0.04 | 36.86 ▲1.63 | 33.37 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.57 ▲0.54 | 666.87 ▼29.58 | 63.07 ▲10.48 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.22 ▼0.02 | 96.54 ▼18.35 | 73.84 ▲25.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/sass-compiler/plugin.php+131
array_filter() expects parameter 1 to be array, bool given
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- sass_compiler
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- sass_variables_defaults
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sass-compiler/plugin.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sass-compiler/libs/wm-settings/wm-settings.php:395
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== sass-compiler ===
)
sass-compiler/plugin.php 85% from 13 tests
The main file in "SASS Compiler" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sass-compiler.php" instead of "plugin.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin11,485 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 772 | 943 | 7,058 |
PHP | 3 | 743 | 415 | 4,108 |
CSS | 3 | 39 | 24 | 319 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 123.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 467.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 245 | |
▷ Static methods | 17 | 6.94% |
▷ Public methods | 54 | 22.04% |
▷ Protected methods | 184 | 75.10% |
▷ Private methods | 7 | 2.86% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/seal-black-reversed-b19dd117.png | 18.40KB | 8.40KB | ▼ 54.36% |
img/menu-icon.png | 0.73KB | 0.79KB | 0.00% |