Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.86ms] Passed 4 tests
A check of server-side resources used by Live Theme Preview
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.14 ▲0.14 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.83 ▼6.46 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.01 ▼4.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.65 ▲6.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.52 ▲7.44 |
Themes 3 /wp-admin/themes.php?live_themes=1 | 3.22 | 26.78 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Live Theme Preview
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 13.31 ▼1.50 | 1.85 ▼0.29 | 41.02 ▼2.71 |
Dashboard /wp-admin | 2,225 ▲22 | 5.86 ▼0.03 | 100.68 ▼0.82 | 41.73 ▼1.87 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.05 | 35.23 ▼1.42 | 34.02 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,543 ▼2 | 18.24 ▼4.86 | 656.43 ▼6.94 | 65.46 ▼5.07 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.26 ▲0.03 | 112.26 ▲12.31 | 47.22 ▲4.78 |
Themes 3 /wp-admin/themes.php?live_themes=1 | 1,153 | 2.62 | 45.02 | 62.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?live_themes=1
- > Notice in wp-admin/includes/class-wp-site-health.php+94
Trying to get property 'id' of non-object
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/live-theme-preview/lib/live-admin/live-admin-template.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== live-theme-preview ===
)
live-theme-preview/live-theme-preview.php Passed 13 tests
The main PHP file in "Live Theme Preview" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
Live Theme Preview allows users to preview themes on their website before customizing or activating them.
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected1,439 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 382 | 320 | 974 |
JavaScript | 4 | 74 | 28 | 250 |
CSS | 4 | 48 | 4 | 215 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 4 | 5.41% |
▷ Public methods | 58 | 78.38% |
▷ Protected methods | 11 | 14.86% |
▷ Private methods | 5 | 6.76% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 19 | 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
No PNG files were detected