Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.22ms] Passed 4 tests
Analyzing server-side resources used by Css Live Reload
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.30 ▼1.66 |
Dashboard /wp-admin | 3.35 ▲0.00 | 52.17 ▼13.57 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 50.94 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.92 ▼14.67 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.80 ▲3.04 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Css Live Reload
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.60 ▼1.19 | 5.60 ▲3.71 | 42.87 ▲2.00 |
Dashboard /wp-admin | 2,221 ▲15 | 4.88 ▼1.09 | 110.32 ▲3.97 | 44.89 ▲1.04 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.05 | 39.35 ▲1.96 | 39.38 ▲3.73 |
Add New Post /wp-admin/post-new.php | 1,531 ▼14 | 23.12 ▲0.00 | 664.91 ▼8.64 | 77.62 ▲24.63 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.32 ▲0.11 | 111.34 ▲13.96 | 46.79 ▼2.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/css-live-reload/admin/partials/css-live-reload-admin-display.php
- > /wp-content/plugins/css-live-reload/public/partials/css-live-reload-public-display.php
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
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: Screenshot #1 (Mobile reload by shake the phone screenshot-2.png) image not found
css-live-reload/css-live-reload.php Passed 13 tests
Analyzing the main PHP file in "Css Live Reload" version 1.0.1
82 characters long description:
Reload all CSS files resources on page with one click without refreshing the page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin515 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 30 | 30 | 198 |
PHP | 12 | 119 | 535 | 168 |
JavaScript | 3 | 37 | 43 | 134 |
CSS | 2 | 0 | 4 | 15 |
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.06 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 18 | 78.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 21.74% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 1.53MB with 0.97MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 883.00KB | 305.06KB | ▼ 65.45% |
screenshot-2.png | 678.75KB | 256.23KB | ▼ 62.25% |