Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Parse error in wp-content/plugins/wayne-audio-player/wayne-song-post-type.php+277
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.11ms] Passed 4 tests
A check of server-side resources used by Wayne Audio Player
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.69 ▼4.61 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.09 ▼10.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.89 ▲2.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.36 ▼2.48 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.21 ▼2.99 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wayne Audio Player
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.64 ▼0.73 | 3.94 ▲2.37 | 44.20 ▲4.17 |
Dashboard /wp-admin | 2,200 ▲23 | 5.80 ▲0.92 | 101.51 ▼7.36 | 38.72 ▼0.33 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.06 ▲0.09 | 32.58 ▼4.76 | 36.09 ▲3.04 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.64 ▼5.58 | 613.11 ▼67.42 | 57.16 ▲0.64 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.39 ▲0.18 | 98.10 ▼1.43 | 42.96 ▼2.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wayne-audio-player/mobile-detect/demo.php
- > /wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/test.php
- 22× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/mobile_useragents_vendorTest.inc.php on line 17
- > PHP Notice
Undefined variable: nonmobile_userAgents in wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/nonmobile_useragents_nonmobileTest.inc.php on line 18
- > PHP Notice
Undefined variable: mobilePerVendor_userAgents in wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/mobile_useragents_vendorTest.inc.php on line 17
- > PHP Notice
Undefined variable: html in wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/mobile_useragents_Nexus.inc.php on line 16
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/wayne-audio-player/wayne-song-post-type.php on line 277
- > PHP Notice
Undefined variable: detect in wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/mobile_useragents_osVersionTest.inc.php on line 13
- > PHP Notice
Undefined variable: detect in wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/mobile_useragents_Nexus.inc.php on line 32
- > PHP Notice
Undefined variable: html in wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/mobile_useragents_gradeTest.inc.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wayne-audio-player/mobile-detect/tests/VendorsTest.php:30
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/wayne-audio-player/mobile-detect/manual_tests/nonmobile_useragents_nonmobileTest.inc.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add images for these screenshots: #1 (Options), #2 (Songs), #3 (Player), #4 (Edit Song)
wayne-audio-player/wayne-audio-player-plugin.php 92% from 13 tests
Analyzing the main PHP file in "Wayne Audio Player" version 1.0
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wayne-audio-player.php" instead of "wayne-audio-player-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin10,123 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,398 | 915 | 5,382 |
PHP | 18 | 543 | 556 | 3,114 |
CSS | 3 | 102 | 50 | 1,444 |
Markdown | 1 | 30 | 0 | 143 |
JSON | 1 | 0 | 0 | 22 |
XML | 7 | 2 | 0 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 36.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.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 | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 86.67% |
▷ Protected methods | 2 | 6.67% |
▷ Private methods | 2 | 6.67% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.38MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/down-music-arrow.png | 6.65KB | 2.17KB | ▼ 67.28% |
screenshot-2.png | 81.26KB | 24.79KB | ▼ 69.50% |
screenshot-1.png | 43.08KB | 11.69KB | ▼ 72.87% |
screenshot-3.png | 27.21KB | 8.14KB | ▼ 70.09% |
images/wayne-icon.png | 3.14KB | 0.48KB | ▼ 84.72% |