Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/lessphp/less-php/less.php+5410
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▲0.44MB] [CPU: ▼180.98ms] Passed 4 tests
Analyzing server-side resources used by Less PHP Compiler
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲1.35 | 10.59 ▼11.14 |
Dashboard /wp-admin | 4.09 ▲1.03 | 14.58 ▼18.18 |
Posts /wp-admin/edit.php | 4.09 ▲0.98 | 9.87 ▼35.98 |
Add New Post /wp-admin/post-new.php | 4.09 ▼1.34 | 11.07 ▼642.76 |
Media Library /wp-admin/upload.php | 4.09 ▲1.08 | 13.48 ▼26.99 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Less PHP Compiler: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.18 ▲0.65 | 9.18 ▼0.06 | 54.25 ▲7.09 |
Dashboard /wp-admin | 2,970 ▲39 | 5.88 ▼0.10 | 160.38 ▲18.48 | 120.54 ▲5.53 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.02 | 71.65 ▲3.47 | 91.01 ▲2.81 |
Add New Post /wp-admin/post-new.php | 1,500 ▼372 | 18.66 ▼0.47 | 362.39 ▼6.93 | 109.94 ▲1.65 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.06 ▲0.02 | 150.53 ▲0.37 | 118.67 ▼0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/lessphp/less-php/less.php+5410
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/less-php/less.php on line 9794
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/less-php/less.php on line 9794
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/less-php/less.php on line 9768
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/less-php/less.php on line 9745
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/less-php/less.php on line 9801
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/less-php/less.php on line 9716
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/less-php/less.php on line 9735
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/includes/Less.php on line 8539
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/less-php/less.php on line 9745
- > PHP Warning
"continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/lessphp/includes/Less.php on line 8560
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: less, preprocessor, compiler
lessphp/less-plugin.php 92% from 13 tests
"Less PHP Compiler" version 2.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lessphp.php" instead of "less-plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin15,915 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 5,022 | 4,022 | 15,915 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 29.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 467.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 104.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 121 | |
▷ Abstract classes | 2 | 1.65% |
▷ Concrete classes | 119 | 98.35% |
▷ Final classes | 0 | 0.00% |
Methods | 1,262 | |
▷ Static methods | 77 | 6.10% |
▷ Public methods | 864 | 68.46% |
▷ Protected methods | 215 | 17.04% |
▷ Private methods | 183 | 14.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin