Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼139.62ms] Passed 4 tests
Server-side resources used by Mixer Easy Embed Wall
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.04 | 25.92 ▼8.29 |
Dashboard /wp-admin | 3.17 ▲0.11 | 51.85 ▲5.76 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 42.98 ▲1.51 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 90.24 ▼547.42 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 34.52 ▼4.27 |
Easy Embed for Mixer (WALL) /wp-admin/options-general.php?page=mixer-wall | 3.00 | 19.96 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mixer Easy Embed Wall
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲200 | 16.48 ▲0.89 | 12.57 ▲3.98 | 44.41 ▼1.41 |
Dashboard /wp-admin | 2,975 ▲44 | 6.05 ▲0.11 | 129.93 ▼7.43 | 115.68 ▼0.38 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.68 ▼0.01 | 70.00 ▲4.54 | 88.51 ▼8.40 |
Add New Post /wp-admin/post-new.php | 1,503 ▲3 | 18.64 ▲0.01 | 382.97 ▲35.16 | 107.70 ▲3.39 |
Media Library /wp-admin/upload.php | 1,815 ▲11 | 5.03 ▲0.04 | 142.01 ▼6.71 | 125.34 ▼1.77 |
Easy Embed for Mixer (WALL) /wp-admin/options-general.php?page=mixer-wall | 1,324 | 2.34 | 56.64 | 73.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 15 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mixer-wall
- > Notice in wp-content/plugins/mxr-easy-embed-wall/admin/partials/fields-output.php+36
Trying to access array offset on value of type bool
SRP 0% 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
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/mxr-easy-embed-wall/public/partials/mixer-wall-public-display.php
- > /wp-content/plugins/mxr-easy-embed-wall/admin/partials/mixer-wall-admin-display.php
- > /wp-content/plugins/mxr-easy-embed-wall/templates/mixer-wall.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: defaultTheme in wp-content/plugins/mxr-easy-embed-wall/templates/mixer-wall.php on line 1
- > PHP Notice
Undefined variable: id in wp-content/plugins/mxr-easy-embed-wall/templates/mixer-wall.php on line 1
- > PHP Notice
Undefined variable: id in wp-content/plugins/mxr-easy-embed-wall/templates/mixer-wall.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mxr-easy-embed-wall/public/partials/output.php:2
- > PHP Notice
Undefined variable: id in wp-content/plugins/mxr-easy-embed-wall/templates/mixer-wall.php on line 4
- > PHP Notice
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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
4 plugin tags: twitch, mixercom widget, mixercom, mixercom embed
mxr-easy-embed-wall/mixer-wall.php 85% from 13 tests
"Mixer Easy Embed Wall" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mxr-easy-embed-wall.php" instead of "mixer-wall.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected657 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 145 | 531 | 370 |
JavaScript | 3 | 27 | 45 | 186 |
CSS | 2 | 11 | 5 | 95 |
SVG | 1 | 0 | 1 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 10 | |
▷ Named functions | 10 | 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 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.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/300x169-placeholder.png | 19.55KB | 1.06KB | ▼ 94.60% |
admin/img/twitch-rail.png | 7.07KB | 4.04KB | ▼ 42.93% |
admin/img/twitch-player.png | 6.97KB | 4.26KB | ▼ 38.90% |
admin/img/twitch-wall.png | 7.49KB | 4.16KB | ▼ 44.49% |