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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼294.45ms] Passed 4 tests
This is a short check of server-side resources used by WP Live.php
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 52.58 ▲2.15 |
Dashboard /wp-admin | 3.43 ▲0.03 | 31.23 ▼1.31 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 34.08 ▼1.97 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 95.38 ▼1,176.66 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 25.14 ▲2.47 |
WP Live.php /wp-admin/options-general.php?page=wp-livephp | 3.32 | 21.80 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
wp-livephp |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Live.php
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,838 ▲84 | 15.90 ▲0.23 | 6.00 ▼0.19 | 2.64 ▼0.16 |
Dashboard /wp-admin | 2,911 ▲53 | 6.17 ▼0.05 | 115.48 ▼18.60 | 156.05 ▼8.63 |
Posts /wp-admin/edit.php | 2,713 ▲56 | 3.25 ▲0.01 | 62.27 ▼1.91 | 137.36 ▼7.83 |
Add New Post /wp-admin/post-new.php | 1,679 ▲18 | 16.33 ▲0.13 | 427.22 ▲13.89 | 299.90 ▲146.15 |
Media Library /wp-admin/upload.php | 1,714 ▲13 | 5.54 ▲0.01 | 143.07 ▲9.12 | 216.95 ▲35.43 |
WP Live.php /wp-admin/options-general.php?page=wp-livephp | 1,323 | 2.40 | 55.72 | 118.03 |
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
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/wp-livephp/wp-live.php+213
unlink(wp-content/uploads/wp-live-contentcheck.txt): No such file or directory
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wp-livephp
- > User deprecated in wp-includes/functions.php+5326
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp-livephp
- > User deprecated in wp-includes/functions.php+5326
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/wp-livephp/wp-live-settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-livephp/wp-live.php:42
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/options-general.php?page=wp-livephp
- > Network (severe)
https://button.flattr.com/flattr-badge-large.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings page), #2 (Admin bar integration)
wp-livephp/wp-live.php 92% from 13 tests
The main file in "WP Live.php" v. 1.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-livephp.php" instead of "wp-live.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin593 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 118 | 505 |
JavaScript | 1 | 17 | 18 | 88 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 62.50% |
▷ Protected methods | 6 | 37.50% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 1.05KB | 1.01KB | ▼ 4.00% |
images/live-logo.png | 1.08KB | 0.96KB | ▼ 10.91% |
images/iphone_switch_container_off.png | 1.76KB | 0.26KB | ▼ 85.24% |
images/iphone_switch.png | 2.66KB | 2.01KB | ▼ 24.54% |
screenshot-1.png | 75.41KB | 37.41KB | ▼ 50.40% |