Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.59MB] [CPU: ▼155.10ms] Passed 4 tests
This is a short check of server-side resources used by Live css
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 36.15 ▲11.78 |
Dashboard /wp-admin | 3.12 ▲0.06 | 44.86 ▲1.51 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 46.20 ▲0.92 |
Add New Post /wp-admin/post-new.php | 2.90 ▼2.54 | 27.96 ▼621.32 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 30.07 ▼1.52 |
Live CSS /wp-admin/tools.php?page=td_live_css_admin | 3.03 | 25.69 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Live css
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,061 ▲465 | 18.42 ▲2.82 | 42.53 ▲32.81 | 45.37 ▼4.55 |
Dashboard /wp-admin | 2,977 ▲43 | 6.06 ▲0.10 | 136.48 ▼7.39 | 111.10 ▼3.01 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.71 ▲0.01 | 68.14 ▼0.49 | 91.04 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,505 ▲5 | 18.46 ▼0.30 | 352.66 ▼22.77 | 108.52 ▼9.05 |
Media Library /wp-admin/upload.php | 1,814 ▲4 | 5.02 ▼0.02 | 146.38 ▲4.08 | 125.81 ▲7.15 |
Live CSS /wp-admin/tools.php?page=td_live_css_admin | 1,068 | 2.10 | 56.69 | 75.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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 fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/css-live/includes/td_live_css_ajax.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/css-live/css-live.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Editing css and less on a page), #2 (Editing css and less on a category)
css-live/css-live.php Passed 13 tests
The main PHP file in "Live css" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
34 characters long description:
Add CSS and LESS on the front end.
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
There were no executable files found in this plugin13,476 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 32 | 1,320 | 192 | 12,943 |
PHP | 5 | 142 | 68 | 320 |
LESS | 2 | 36 | 4 | 108 |
CSS | 1 | 0 | 0 | 105 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 6 | 100.00% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.55MB with 0.37MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 427.38KB | 131.76KB | ▼ 69.17% |
screenshot-2.png | 135.58KB | 47.89KB | ▼ 64.68% |