Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method gtg_audio_player::gtg_ap_install() should not be called statically
Server metrics [RAM: ▼1.92MB] [CPU: ▼54.36ms] Passed 4 tests
This is a short check of server-side resources used by GTG Audio Player
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.62 ▼34.91 |
Dashboard /wp-admin | 2.08 ▼1.22 | 5.84 ▼41.19 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.24 ▼43.83 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.99 ▼97.49 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.90 ▼26.53 |
GTG Audio Player /wp-admin/upload.php?page=gtg_audio_player | 2.08 | 5.05 |
Server storage [IO: ▲1.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_gtg_ap_options |
wp_gtg_ap_songs |
wp_gtg_ap |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
gtg_ap_db_version |
db_upgraded |
Browser metrics Passed 4 tests
GTG Audio Player: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.29 | 4.49 ▲2.73 | 43.05 ▲1.04 |
Dashboard /wp-admin | 2,210 ▲22 | 4.88 ▼0.25 | 111.68 ▲1.10 | 42.64 ▼0.60 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 34.07 ▼7.64 | 34.84 ▼3.24 |
Add New Post /wp-admin/post-new.php | 1,536 ▲13 | 23.08 ▼0.55 | 661.94 ▲24.60 | 53.22 ▼1.29 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.19 ▼0.05 | 98.94 ▼3.43 | 44.56 ▼2.59 |
GTG Audio Player /wp-admin/upload.php?page=gtg_audio_player | 954 | 2.13 | 30.43 | 31.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method gtg_audio_player::gtg_ap_update_db_check() should not be called statically
- Zombie tables were found after uninstall: 3 tables
- wp_gtg_ap_songs
- wp_gtg_ap_options
- wp_gtg_ap
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- gtg_ap_db_version
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method gtg_audio_player::gtg_ap_update_db_check() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-content/plugins/gtg-audio-player/gtg_audio_player.php+1336
Non-static method gtg_audio_player::gtg_ap_install() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method gtg_audio_player::gtg_ap_add_translations() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method gtg_audio_player::gtg_ap_menu() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method gtg_audio_player::gtg_ap_options() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-content/plugins/gtg-audio-player/gtg_audio_player.php+563
Non-static method gtg_audio_player::gtg_ap_admin_css() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-content/plugins/gtg-audio-player/gtg_audio_player.php+564
Non-static method gtg_audio_player::start_admin_wrapper() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-content/plugins/gtg-audio-player/gtg_audio_player.php+859
Non-static method gtg_audio_player::render_album_form() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-content/plugins/gtg-audio-player/gtg_audio_player.php+860
Non-static method gtg_audio_player::show_albums() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-content/plugins/gtg-audio-player/gtg_audio_player.php+861
Non-static method gtg_audio_player::render_form_js() should not be called statically
- > GET request to /wp-admin/upload.php?page=gtg_audio_player
- > Deprecated in wp-content/plugins/gtg-audio-player/gtg_audio_player.php+863
Non-static method gtg_audio_player::end_admin_wrapper() should not be called statically
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gtg-audio-player/uninstall.php
- > /wp-content/plugins/gtg-audio-player/gtg_audio_player.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Contributors: Contributors not specified
gtg-audio-player/gtg_audio_player.php 85% from 13 tests
The principal PHP file in "GTG Audio Player" v. 4.8 is loaded by WordPress automatically on each request
You should first fix the following items:
- Text Domain: Please use dashes and lowercase characters for text domains
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gtg-audio-player.php" instead of "gtg_audio_player.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,288 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 113 | 45 | 1,205 |
PO File | 1 | 32 | 38 | 78 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 63.00 |
▷ Minimum class complexity | 63.00 |
▷ Maximum class complexity | 63.00 |
Average method complexity | 4.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 43.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 56.25% |
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
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/playlist.png | 2.85KB | 0.26KB | ▼ 90.81% |
img/next.png | 3.05KB | 0.55KB | ▼ 82.09% |
img/pause.png | 2.81KB | 0.16KB | ▼ 94.30% |
img/stop.png | 2.78KB | 0.12KB | ▼ 95.58% |
img/prev.png | 3.05KB | 0.52KB | ▼ 82.91% |