Benchmarks
Plugin footprint 83% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.81ms] Passed 4 tests
This is a short check of server-side resources used by WP Less Compiler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 35.69 ▼1.91 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.31 ▼4.86 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 44.69 ▲1.47 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.02 ▼17.43 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.42 ▼3.03 |
Less Compiler /wp-admin/options-general.php?page=less-compiler-menu | 3.19 | 29.05 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Less Compiler
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.13 | 1.54 ▼0.10 | 41.06 ▼2.52 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.02 | 81.46 ▼7.60 | 37.73 ▼4.44 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.97 ▼0.05 | 37.70 ▲1.20 | 33.56 ▼6.74 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.29 ▲0.02 | 691.29 ▲0.54 | 58.74 ▲2.18 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.16 ▼0.06 | 92.72 ▼8.85 | 44.79 ▼0.89 |
Less Compiler /wp-admin/options-general.php?page=less-compiler-menu | 931 | 2.05 | 25.17 | 53.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=less-compiler-menu
- > Notice in wp-content/plugins/wp-less-compiler/Asset.php+38
hash_file(): read of 8192 bytes failed with errno=21 Is a directory
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-less-compiler/lib/ajax-file-browser/browser.class.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'PluginObject' not found in wp-content/plugins/wp-less-compiler/SettingsStyle.php:5
- > PHP Fatal error
Uncaught Error: Class 'PluginObject' not found in wp-content/plugins/wp-less-compiler/Processor.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-less-compiler/Controller.php:15
- > PHP Fatal error
Uncaught Error: Class 'PluginObject' not found in wp-content/plugins/wp-less-compiler/Compiler.php:12
- > PHP Fatal error
Uncaught Error: Class 'PluginObject' not found in wp-content/plugins/wp-less-compiler/CssStyle.php:5
- > PHP Fatal error
Uncaught Error: Class 'PluginObject' not found in wp-content/plugins/wp-less-compiler/Controller.php:3
- > PHP Fatal error
Uncaught Error: Class 'PluginObject' not found in wp-content/plugins/wp-less-compiler/Asset.php:10
- > PHP Fatal error
Uncaught Error: Class 'PluginObject' not found in wp-content/plugins/wp-less-compiler/SettingsHtml.php:3
- > PHP Fatal error
Uncaught Error: Class 'PluginObject' not found in wp-content/plugins/wp-less-compiler/LessStyle.php:3
- > 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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: less, less compiler, css, css preprocessor
wp-less-compiler/wp-less-compiler.php Passed 13 tests
The main file in "WP Less Compiler" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
106 characters long description:
Compiles LESS into CSS. Allows the administrator to output LESS to Admin users, and CSS to everyone else.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,401 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 337 | 235 | 978 |
JavaScript | 4 | 54 | 10 | 173 |
Markdown | 2 | 101 | 0 | 163 |
CSS | 2 | 10 | 0 | 87 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 88 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 40.91% |
▷ Protected methods | 2 | 2.27% |
▷ Private methods | 50 | 56.82% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 1 | 10.00% |
▷ Class constants | 9 | 90.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/ajax-file-browser/directory.png | 1.23KB | 0.40KB | ▼ 67.38% |
lib/ajax-file-browser/file.png | 1.31KB | 0.42KB | ▼ 67.56% |