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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼292.31ms] Passed 4 tests
This is a short check of server-side resources used by WP LESS to CSS
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.08 | 60.35 ▲10.32 |
Dashboard /wp-admin | 3.46 ▲0.04 | 37.21 ▲3.38 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 37.60 ▼1.34 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.06 | 100.35 ▼1,171.78 |
Media Library /wp-admin/upload.php | 3.33 ▲0.03 | 23.39 ▲0.52 |
WP LESS to CSS /wp-admin/options-general.php?page=wp-less-to-css | 3.30 | 23.22 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
WP LESS to CSS: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲38 | 16.24 ▲0.62 | 6.27 ▼0.40 | 2.32 ▼0.18 |
Dashboard /wp-admin | 2,890 ▲29 | 6.02 ▼0.18 | 119.33 ▼18.23 | 154.80 ▼10.77 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.23 ▼0.01 | 64.00 ▲0.60 | 138.87 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,664 ▲4 | 17.20 ▼0.65 | 421.25 ▲19.55 | 156.70 ▼2.19 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.47 ▼0.06 | 143.84 ▲3.92 | 183.74 ▼7.76 |
WP LESS to CSS /wp-admin/options-general.php?page=wp-less-to-css | 1,032 | 2.37 | 53.55 | 112.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/wp-less-to-css/wp-less-to-css.php+122
unlink(wp-content/uploads/wpless2css/wpless2css.css): No such file or directory
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-less-to-css/wp-less-to-css.php:218
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-less-to-css/templates/settings.php:37
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (WP LESS to CSS)
wp-less-to-css/wp-less-to-css.php Passed 13 tests
The main file in "WP LESS to CSS" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
This plugin helps you to build and maintain your website with LESS.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,134 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 1,449 | 1,023 | 4,107 |
PO File | 1 | 9 | 11 | 27 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 21.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 302.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 45 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 45 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 368 | |
▷ Static methods | 97 | 26.36% |
▷ Public methods | 309 | 83.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 59 | 16.03% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.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
1 PNG file occupies 0.02MB 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 | 24.12KB | 8.05KB | ▼ 66.62% |