Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.57ms] Passed 4 tests
A check of server-side resources used by LivePreview Digital Product Demo Bar for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 46.27 ▼0.63 |
Dashboard /wp-admin | 3.37 ▲0.06 | 58.77 ▲6.23 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.82 ▼6.27 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 87.45 ▼9.89 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.47 ▲2.53 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/livepreview/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
LivePreview Digital Product Demo Bar for WordPress: 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 / | 2,831 ▲70 | 13.31 ▼1.09 | 1.70 ▼0.19 | 43.24 ▲1.79 |
Dashboard /wp-admin | 2,237 ▲31 | 4.85 ▼0.19 | 110.72 ▲3.48 | 44.50 ▼1.32 |
Posts /wp-admin/edit.php | 2,095 ▼8 | 2.02 ▼0.03 | 35.62 ▼10.51 | 34.05 ▼4.55 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 17.46 ▼0.87 | 655.03 ▲21.22 | 61.04 ▲1.40 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.26 ▲0.01 | 106.06 ▲1.70 | 45.16 ▼2.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% 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: No descriptions were found for these screenshots #1, #2, #3 in livepreview/assets to your readme.txt
livepreview/livepreview.php 92% from 13 tests
The entry point to "LivePreview Digital Product Demo Bar for WordPress" version 1.2.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected3,476 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 8 | 94 | 91 | 790 |
JavaScript | 7 | 0 | 9 | 8 |
CSS | 7 | 0 | 33 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/devices-dark.png | 0.34KB | 0.20KB | ▼ 41.93% |
assets/images/logo.png | 1.10KB | 0.85KB | ▼ 22.51% |
assets/images/devices.png | 0.32KB | 0.20KB | ▼ 36.53% |
assets/images/bg.png | 0.12KB | 0.10KB | ▼ 14.17% |