Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.51MB] [CPU: ▼2.20ms] Passed 4 tests
This is a short check of server-side resources used by HB AUDIO GALLERY
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 40.52 ▲4.28 |
Dashboard /wp-admin | 3.86 ▲0.51 | 51.25 ▼10.26 |
Posts /wp-admin/edit.php | 3.90 ▲0.55 | 50.98 ▲0.58 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.47 | 97.43 ▼3.40 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 43.97 ▲9.50 |
Add New /wp-admin/post-new.php?post_type=hbag_audio_gallery | 3.87 | 59.69 |
Categories /wp-admin/edit-tags.php?taxonomy=hb_ag_category&post_type=hbag_audio_gallery | 3.71 | 42.29 |
HB Audio Gallery /wp-admin/options-general.php?page=hb-ag-setting | 3.68 | 37.85 |
HB Audio Gallery /wp-admin/edit.php?post_type=hbag_audio_gallery | 3.77 | 41.62 |
Server storage [IO: ▲10.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 196 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_hbag_audios |
wp_hbag_audio_favourites |
wp_hbag_audio_track_record |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
hb_ag_options |
widget_theysaidso_widget |
count |
Browser metrics Passed 4 tests
A check of browser resources used by HB AUDIO GALLERY
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,390 ▲655 | 17.32 ▲2.94 | 7.16 ▲5.47 | 38.27 ▼6.79 |
Dashboard /wp-admin | 2,588 ▲400 | 7.42 ▲1.57 | 192.49 ▲63.72 | 115.64 ▲57.97 |
Posts /wp-admin/edit.php | 2,232 ▲143 | 4.36 ▲2.37 | 49.41 ▲10.52 | 63.06 ▲26.25 |
Add New Post /wp-admin/post-new.php | 1,637 ▲123 | 24.86 ▲7.26 | 614.91 ▼15.44 | 120.11 ▲68.63 |
Media Library /wp-admin/upload.php | 1,521 ▲133 | 5.92 ▲1.71 | 92.82 ▼10.72 | 80.29 ▲31.86 |
Add New /wp-admin/post-new.php?post_type=hbag_audio_gallery | 2,031 | 5.40 | 80.82 | 115.00 |
Categories /wp-admin/edit-tags.php?taxonomy=hb_ag_category&post_type=hbag_audio_gallery | 1,387 | 4.17 | 40.11 | 67.69 |
HB Audio Gallery /wp-admin/options-general.php?page=hb-ag-setting | 1,298 | 4.80 | 56.44 | 56.13 |
HB Audio Gallery /wp-admin/edit.php?post_type=hbag_audio_gallery | 1,220 | 4.33 | 40.64 | 61.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method hbag_wp_Loader::hbag_plugin_uninstall() should not be called statically
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- count
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=hbag_audio_gallery
- > Notice in wp-content/plugins/hb-audio-gallery/gallery/gallery.php+162
Undefined variable: colums
- > GET request to /wp-admin/edit.php?post_type=hbag_audio_gallery
- > Warning in wp-content/plugins/hb-audio-gallery/gallery/gallery.php+162
count(): Parameter must be an array or an object that implements Countable
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/hb-audio-gallery/templates/single_audio.php
- 63× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/hb-audio-gallery/templates/single_audio.php on line 13
- > PHP Notice
Undefined variable: args in wp-content/plugins/hb-audio-gallery/templates/single_audio.php on line 13
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/hb-audio-gallery/lib/audioDB.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/hb-audio-gallery/vendor/geoip2/geoip2/src/Exception/OutOfQueriesException.php:10
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\Country' not found in wp-content/plugins/hb-audio-gallery/vendor/geoip2/geoip2/src/Record/RepresentedCountry.php:18
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/hb-audio-gallery/vendor/geoip2/geoip2/src/Exception/AddressNotFoundException.php:10
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Record\\AbstractRecord' not found in wp-content/plugins/hb-audio-gallery/vendor/geoip2/geoip2/src/Record/MaxMind.php:15
- > 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/hb-audio-gallery/gallery/gallery-function.php on line 900
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/hb-audio-gallery/vendor/geoip2/geoip2/src/Model/Domain.php:21
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/hb-audio-gallery/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php:7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Demo Page.), #2 (Settings page.), #3 (Main page.), #4 (Editing Page.)
hb-audio-gallery/hb-audio-gallery.php 92% from 13 tests
"HB AUDIO GALLERY" version 3.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 169 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 detected71,951 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 76 | 41,270 | 27,694 | 44,381 |
JavaScript | 31 | 6,386 | 7,969 | 22,703 |
CSS | 11 | 1,502 | 336 | 2,450 |
Markdown | 7 | 390 | 0 | 932 |
C | 1 | 117 | 24 | 665 |
JSON | 5 | 0 | 0 | 426 |
SVG | 22 | 0 | 0 | 255 |
XML | 1 | 4 | 0 | 59 |
Bourne Shell | 1 | 20 | 0 | 40 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 3 | 5.56% |
▷ Concrete classes | 51 | 94.44% |
▷ Final classes | 0 | 0.00% |
Methods | 204 | |
▷ Static methods | 28 | 13.73% |
▷ Public methods | 155 | 75.98% |
▷ Protected methods | 1 | 0.49% |
▷ Private methods | 48 | 23.53% |
Functions | 48 | |
▷ Named functions | 44 | 91.67% |
▷ Anonymous functions | 4 | 8.33% |
Constants | 36 | |
▷ Global constants | 18 | 50.00% |
▷ Class constants | 18 | 50.00% |
▷ Public constants | 2 | 11.11% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/default.png | 2.04KB | 2.17KB | 0.00% |
lib/leaflet/js/images/marker-icon-2x.png | 2.41KB | 2.52KB | 0.00% |
images/not-favourite_16.png | 0.67KB | 0.81KB | 0.00% |
gallery/images/music_icon.png | 8.87KB | 4.66KB | ▼ 47.46% |
lib/leaflet/js/images/layers.png | 0.68KB | 1.05KB | 0.00% |