84% wp-less-to-css

Code Review | WP LESS to CSS

WordPress plugin WP LESS to CSS scored 84% from 54 tests.

About plugin

  • Plugin page: wp-less-to-css
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.7.1
  • WordPress version: 5.9.2
  • First release: Dec 7, 2013
  • Latest release: Dec 7, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: bassjobsen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,270 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0860.35 ▲10.32
Dashboard /wp-admin3.46 ▲0.0437.21 ▲3.38
Posts /wp-admin/edit.php3.68 ▲0.0437.60 ▼1.34
Add New Post /wp-admin/post-new.php6.92 ▼0.06100.35 ▼1,171.78
Media Library /wp-admin/upload.php3.33 ▲0.0323.39 ▲0.52
WP LESS to CSS /wp-admin/options-general.php?page=wp-less-to-css3.3023.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲3816.24 ▲0.626.27 ▼0.402.32 ▼0.18
Dashboard /wp-admin2,890 ▲296.02 ▼0.18119.33 ▼18.23154.80 ▼10.77
Posts /wp-admin/edit.php2,693 ▲23.23 ▼0.0164.00 ▲0.60138.87 ▼3.39
Add New Post /wp-admin/post-new.php1,664 ▲417.20 ▼0.65421.25 ▲19.55156.70 ▼2.19
Media Library /wp-admin/upload.php1,703 ▲25.47 ▼0.06143.84 ▲3.92183.74 ▼7.76
WP LESS to CSS /wp-admin/options-general.php?page=wp-less-to-css1,0322.3753.55112.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

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)
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP41,4491,0234,107
PO File191127

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 code0.46
Average class complexity21.31
▷ Minimum class complexity1.00
▷ Maximum class complexity302.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes45
▷ Abstract classes00.00%
▷ Concrete classes45100.00%
▷ Final classes00.00%
Methods368
▷ Static methods9726.36%
▷ Public methods30983.97%
▷ Protected methods00.00%
▷ Private methods5916.03%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
FileSize - originalSize - compressedSavings
screenshot-1.png24.12KB8.05KB▼ 66.62%