Benchmarks
Plugin footprint 83% from 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 gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.41ms] Passed 4 tests
Server-side resources used by Mini Live Preview URL
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.09 | 42.14 ▼0.62 |
Dashboard /wp-admin | 3.53 ▲0.18 | 58.48 ▲3.64 |
Posts /wp-admin/edit.php | 3.58 ▲0.18 | 55.24 ▲2.84 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.10 | 82.71 ▼14.03 |
Media Library /wp-admin/upload.php | 3.37 ▲0.10 | 36.84 ▲2.16 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
wpmlpu_basic_settings |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Mini Live Preview URL
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,974 ▲188 | 14.80 ▲0.17 | 1.95 ▼0.22 | 43.06 ▼2.44 |
Dashboard /wp-admin | 2,353 ▲176 | 6.36 ▲0.78 | 123.23 ▲27.87 | 42.47 ▲1.20 |
Posts /wp-admin/edit.php | 2,284 ▲187 | 3.51 ▲1.52 | 49.84 ▲13.20 | 31.78 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,541 ▲13 | 23.69 ▲0.78 | 648.14 ▼56.89 | 36.65 ▼15.89 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.32 ▲0.15 | 85.75 ▼18.01 | 42.76 ▼2.50 |
Mini Live Preview URL /wp-admin/wp-mini-live-preview-url.php | 26 | 0.42 | 0.09 | 14.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- wpmlpu_basic_settings
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/wp-mini-live-preview-url.php
- > Network (severe)
wp-admin/wp-mini-live-preview-url.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 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
9 plugin tags: iframe, live-preview, url, url-preview, popup-url...
mini-live-preview-url/wp-mini-live-url-preview.php 77% from 13 tests
Analyzing the main PHP file in "Mini Live Preview URL" version 1.0.2
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: The principal plugin file should be the same as the plugin slug ("mini-live-preview-url.php" instead of "wp-mini-live-url-preview.php")
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
Success! There were no dangerous files found in this plugin641 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 157 | 233 | 485 |
JavaScript | 2 | 16 | 11 | 98 |
CSS | 1 | 8 | 0 | 58 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There were not PNG files found in your plugin