Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼136.52ms] Passed 4 tests
Analyzing server-side resources used by Audio Tube
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 39.91 ▲19.02 |
Dashboard /wp-admin | 3.07 ▲0.02 | 47.28 ▲1.18 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 47.30 ▲3.67 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.00 | 95.60 ▼550.33 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 44.09 ▼0.61 |
AudioTube /wp-admin/tools.php?page=audio_tube | 2.96 | 29.69 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 1 new option
New WordPress options |
---|
AudioTubePlayerOptions |
Browser metrics Passed 4 tests
Audio Tube: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.86 ▲0.00 | 11.25 ▲0.89 | 54.28 ▲6.95 |
Dashboard /wp-admin | 2,975 ▲44 | 6.06 ▲0.04 | 143.11 ▼9.85 | 115.71 ▼8.28 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 66.76 ▼3.22 | 95.34 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.82 ▲0.01 | 413.53 ▲18.87 | 116.82 ▼0.41 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▲0.03 | 165.74 ▲4.65 | 123.53 ▼2.39 |
AudioTube /wp-admin/tools.php?page=audio_tube | 1,555 | 2.15 | 59.45 | 122.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 25% 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
- > GET request to /wp-admin/tools.php?page=audio_tube
- > Deprecated in wp-content/plugins/audio-tube/inc/page-admin.php+8
Function get_magic_quotes_gpc() is deprecated
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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/audio-tube/inc/page-admin.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/audio-tube/audio-tube.php:38
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: music, youtube, audio, mp3, audio player...
audio-tube/audio-tube.php 92% from 13 tests
The primary PHP file in "Audio Tube" version 1.2.2 is used by WordPress to initiate all plugin functionality
It is important to 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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin714 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 85 | 135 | 403 |
PO File | 2 | 71 | 105 | 226 |
JavaScript | 1 | 7 | 0 | 61 |
CSS | 1 | 6 | 3 | 24 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.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 | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/7-large-no-tc.png | 4.05KB | 2.66KB | ▼ 34.29% |
images/play-tub.png | 4.88KB | 1.74KB | ▼ 64.43% |
images/2-no-bar.png | 2.30KB | 1.35KB | ▼ 41.19% |
images/8-large-tc.png | 7.55KB | 4.38KB | ▼ 42.03% |
images/5-medium-no-tc.png | 3.79KB | 2.60KB | ▼ 31.38% |