Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/wp-audio-gallery/wp-audio-gallery.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; wpag_wp_Loader has a deprecated constructor
Server metrics [RAM: ▼1.81MB] [CPU: ▼55.99ms] Passed 4 tests
Analyzing server-side resources used by WP AUDIO GALLERY
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 4.99 ▼36.91 |
Dashboard /wp-admin | 2.20 ▼1.10 | 6.51 ▼43.72 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 7.28 ▼46.16 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 6.01 ▼97.18 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 6.43 ▼30.11 |
WP Audio Gallery /wp-admin/edit.php?post_type=wpag_audio_gallery | 2.20 | 8.65 |
Add New /wp-admin/post-new.php?post_type=wpag_audio_gallery | 2.20 | 6.43 |
Categories /wp-admin/edit-tags.php?taxonomy=wp_ag_category&post_type=wpag_audio_gallery | 2.20 | 6.66 |
WP Audio Gallery /wp-admin/options-general.php?page=wp-ag-setting | 2.20 | 5.60 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wpag_audios |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
wp_ag_options |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP AUDIO GALLERY
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲210 | 14.84 ▲0.55 | 6.13 ▲3.60 | 44.46 ▲1.99 |
Dashboard /wp-admin | 2,263 ▲75 | 5.49 ▼0.40 | 119.85 ▲16.48 | 77.98 ▲28.97 |
Posts /wp-admin/edit.php | 2,160 ▲68 | 2.28 ▲0.23 | 42.51 ▼2.14 | 37.52 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,576 ▲48 | 23.28 ▲5.00 | 669.64 ▲17.06 | 34.38 ▼16.58 |
Media Library /wp-admin/upload.php | 1,445 ▲57 | 4.49 ▲0.25 | 90.38 ▼14.32 | 86.05 ▲43.00 |
WP Audio Gallery /wp-admin/edit.php?post_type=wpag_audio_gallery | 1,146 | 2.45 | 40.09 | 32.58 |
Add New /wp-admin/post-new.php?post_type=wpag_audio_gallery | 1,972 | 3.81 | 69.11 | 89.39 |
Categories /wp-admin/edit-tags.php?taxonomy=wp_ag_category&post_type=wpag_audio_gallery | 1,313 | 2.29 | 30.60 | 31.53 |
WP Audio Gallery /wp-admin/options-general.php?page=wp-ag-setting | 1,015 | 2.20 | 26.44 | 30.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-audio-gallery/wp-audio-gallery.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; wpag_wp_Loader has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
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
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-ag-setting
- > Deprecated in wp-content/plugins/wp-audio-gallery/wp-audio-gallery.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; wpag_wp_Loader has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-ag-setting
- > Deprecated in wp-content/plugins/wp-audio-gallery/gallery/gallery.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; wpag_wp_gallery has a deprecated constructor
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-ag-setting
- > Deprecated in wp-content/plugins/wp-audio-gallery/gallery/gallery-function.php+455
Methods with the same name as their class will not be constructors in a future version of PHP; wp_Audio_List_Table has a deprecated constructor
- > GET request to /wp-admin/edit.php?post_type=wpag_audio_gallery
- > Notice in wp-content/plugins/wp-audio-gallery/gallery/gallery.php+136
Undefined variable: colums
- > GET request to /wp-admin/edit.php?post_type=wpag_audio_gallery
- > Warning in wp-content/plugins/wp-audio-gallery/gallery/gallery.php+136
count(): Parameter must be an array or an object that implements Countable
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
Almost there! Just fix the following items
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-audio-gallery/wp-audio-gallery.php on line 177
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-audio-gallery/gallery/gallery-function.php on line 453
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-audio-gallery/gallery/gallery-function.php on line 453
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/wp-audio-gallery/lib/audioDB.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-audio-gallery/gallery/gallery-function.php on line 453
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-audio-gallery/wp-audio-gallery.php:181
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-audio-gallery/gallery/gallery-function.php on line 453
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-audio-gallery/gallery/gallery-function.php on line 453
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-audio-gallery/gallery/single-ag_reviews.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-audio-gallery/gallery/archive-ag_reviews.php:2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: music, audio player, mp3, playlist, audio...
wp-audio-gallery/wp-audio-gallery.php 92% from 13 tests
Analyzing the main PHP file in "WP AUDIO GALLERY" version 2.0
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 174 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8,472 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 1,168 | 1,019 | 6,175 |
PHP | 9 | 756 | 70 | 1,744 |
CSS | 3 | 717 | 62 | 553 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
17 PNG files occupy 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gallery/images/music_icon_16.png | 3.30KB | 0.69KB | ▼ 78.97% |
lib/jPlayer/skin/blue.monday/jplayer.blue.monday.png | 34.35KB | 9.59KB | ▼ 72.09% |
lib/jPlayer/skin/blue.monday/jplayer.blue.monday.video.play.png | 17.28KB | 4.28KB | ▼ 75.21% |
images/audio-down-16.png | 3.19KB | 0.83KB | ▼ 73.91% |
images/forward.png | 17.30KB | 11.28KB | ▼ 34.77% |