Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/music-seller/functions.php+14
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼57.73ms] Passed 4 tests
A check of server-side resources used by Music Seller
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.72 ▼33.84 |
Dashboard /wp-admin | 2.05 ▼1.30 | 6.72 ▼66.21 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.58 ▼45.23 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.25 ▼85.64 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.29 ▼25.37 |
Add New /wp-admin/post-new.php?post_type=music_seller_order | 2.05 | 7.60 |
Orders /wp-admin/edit.php?post_type=music_seller_order | 2.05 | 6.16 |
Server storage [IO: ▲2.43MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 124 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Music Seller
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲117 | 13.38 ▼1.03 | 1.68 ▼0.18 | 42.22 ▼1.22 |
Dashboard /wp-admin | 2,263 ▲72 | 5.05 ▼0.84 | 101.89 ▲1.04 | 40.12 ▼0.16 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.32 ▲0.31 | 36.86 ▼2.58 | 34.83 ▼3.10 |
Add New Post /wp-admin/post-new.php | 6,297 ▲4,778 | 21.71 ▼1.41 | 865.09 ▲282.87 | 54.19 ▲3.67 |
Media Library /wp-admin/upload.php | 1,448 ▲63 | 4.44 ▲0.23 | 111.64 ▲9.97 | 43.39 ▼0.91 |
Add New /wp-admin/post-new.php?post_type=music_seller_order | 1,503 | 2.81 | 57.65 | 32.11 |
Music Seller /wp-admin/music_seller_options.php | 26 | 0.44 | 0.06 | 17.82 |
Orders /wp-admin/edit.php?post_type=music_seller_order | 1,119 | 2.25 | 34.03 | 25.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/music-seller/functions.php+839
Undefined index: task
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=music_seller_order
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/music-seller/functions.php+839
Undefined index: task
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=music_seller_order
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/music-seller/functions.php+1253
Undefined index: music_seller_download
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=music_seller_order
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/music-seller/functions.php+1288
Undefined index: music_seller_free_download
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=music_seller_order
- > Notice in wp-content/plugins/music-seller/functions.php+254
Undefined index: music_seller_price
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=music_seller_order
- > Notice in wp-content/plugins/music-seller/functions.php+256
Undefined index: music_seller_title
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=music_seller_order
- > Notice in wp-content/plugins/music-seller/functions.php+258
Undefined index: music_seller_order
- > GET request to /wp-admin/post-new.php?post_type=music_seller_order
- > Notice in wp-content/plugins/music-seller/functions.php+261
Undefined index: music_seller_delete
SRP 50% 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
Almost there! Just fix the following items
- 69× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.graphic.efax.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.audio-video.flv.php:76
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.misc.pdf.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.archive.tar.php:23
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.audio-video.nsv.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.audio.aac.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.audio.shorten.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.audio.bonk.php:18
- > PHP Fatal error
Uncaught Error: Class 'getid3_lib' not found in wp-content/plugins/music-seller/includes/getid3/write.id3v2.php:17
- > PHP Fatal error
Uncaught Error: Class 'getid3_handler' not found in wp-content/plugins/music-seller/includes/getid3/module.audio.midi.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/music_seller_options.php
- > Network (severe)
wp-admin/music_seller_options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: Too many tags (26 tag instead of maximum 10); only the first 5 tags are used in your directory listing
music-seller/music_seller.php 92% from 13 tests
"Music Seller" version 3.8.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("music-seller.php" instead of "music_seller.php")
Code Analysis 3% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/music-seller/payment_gateways/paypal/cert/api_cert_chain.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 5,008 | 7,458 | 26,150 |
JavaScript | 9 | 388 | 480 | 4,361 |
CSS | 7 | 371 | 142 | 1,630 |
HTML | 5 | 0 | 1 | 197 |
Markdown | 1 | 44 | 0 | 135 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 346)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 65.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 588.00 |
Average method complexity | 10.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 346.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 83 | |
▷ Abstract classes | 1 | 1.20% |
▷ Concrete classes | 82 | 98.80% |
▷ Final classes | 0 | 0.00% |
Methods | 580 | |
▷ Static methods | 186 | 32.07% |
▷ Public methods | 540 | 93.10% |
▷ Protected methods | 12 | 2.07% |
▷ Private methods | 28 | 4.83% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 240 | |
▷ Global constants | 219 | 91.25% |
▷ Class constants | 21 | 8.75% |
▷ Public constants | 21 | 100.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
5 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/player/skin/circle.skin/buffer.png | 5.26KB | 3.62KB | ▼ 31.19% |
js/player/skin/pink.flag/jplayer.pink.flag.video.play.png | 17.28KB | 4.28KB | ▼ 75.21% |
js/player/skin/blue.monday/image/jplayer.blue.monday.video.play.png | 17.28KB | 4.28KB | ▼ 75.21% |
js/player/skin/circle.skin/progress.png | 7.20KB | 3.06KB | ▼ 57.49% |
js/player/skin/blue.monday/jplayer.blue.monday.video.play.png | 17.28KB | 4.28KB | ▼ 75.21% |