Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.65MB] [CPU: ▲35.67ms] Passed 4 tests
A check of server-side resources used by audioCase
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.69 ▲4.22 | 72.10 ▲32.56 |
Dashboard /wp-admin | 8.08 ▲4.78 | 89.84 ▲38.84 |
Posts /wp-admin/edit.php | 8.14 ▲4.78 | 76.10 ▲26.68 |
Add New Post /wp-admin/post-new.php | 10.96 ▲5.07 | 135.56 ▲45.77 |
Media Library /wp-admin/upload.php | 8.04 ▲4.81 | 78.64 ▲44.61 |
Taxonomies /wp-admin/edit.php?post_type=acf-taxonomy | 8.06 | 89.32 |
Post Types /wp-admin/edit.php?post_type=acf-post-type | 8.06 | 74.26 |
All audioCases /wp-admin/edit.php?post_type=acase | 7.99 | 62.87 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 8.06 | 69.66 |
Add New /wp-admin/post-new.php?post_type=acase | 8.24 | 80.56 |
Server storage [IO: ▲18.88MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 494 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
acf_version |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for audioCase
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲123 | 15.60 ▲1.23 | 25.77 ▲23.79 | 41.39 ▼3.97 |
Dashboard /wp-admin | 2,238 ▲47 | 4.85 ▼0.99 | 98.72 ▼19.20 | 38.55 ▼8.51 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.04 ▲0.05 | 37.94 ▼2.84 | 31.89 ▼3.09 |
Add New Post /wp-admin/post-new.php | 6,691 ▲5,177 | 24.64 ▲6.85 | 1,054.11 ▲325.70 | 39.72 ▼9.12 |
Media Library /wp-admin/upload.php | 1,969 ▲581 | 8.33 ▲4.06 | 228.65 ▲122.65 | 51.81 ▲11.31 |
Taxonomies /wp-admin/edit.php?post_type=acf-taxonomy | 1,707 | 2.33 | 36.71 | 67.56 |
Post Types /wp-admin/edit.php?post_type=acf-post-type | 1,709 | 2.13 | 37.38 | 43.12 |
All audioCases /wp-admin/edit.php?post_type=acase | 1,093 | 2.02 | 31.24 | 33.17 |
Field Groups /wp-admin/edit.php?post_type=acf-field-group | 1,673 | 2.26 | 35.95 | 42.73 |
Add New /wp-admin/post-new.php?post_type=acase | 2,388 | 8.01 | 159.96 | 47.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- acf_version
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 117× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/fields/class-acf-field-tab.php:5
- > PHP Notice
Undefined variable: rule in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/admin/views/html-location-rule.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/fields/class-acf-field-output.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/admin/views/upgrade/upgrade.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_get_location_rule_types() in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/admin/views/html-location-rule.php:12
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/fields/class-acf-field-link.php:5
- > PHP Notice
Undefined variable: rule in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/admin/views/acf-field-group/location-rule.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_get_combined_taxonomy_settings_tabs() in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/admin/views/acf-taxonomy/advanced-settings.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/admin/views/acf-field-group/field.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/audiocase/lib/advanced-custom-fields/includes/acf-value-functions.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
6 plugin tags: song player, single song, music, music player, audio...
audiocase/audioCase.php 92% from 13 tests
Analyzing the main PHP file in "audioCase" version 1.2.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("audiocase.php" instead of "audioCase.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin209,196 lines of code in 371 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 46 | 46,027 | 69,921 | 110,462 |
JavaScript | 30 | 9,825 | 15,388 | 56,854 |
PHP | 179 | 10,093 | 22,108 | 28,755 |
CSS | 20 | 713 | 1,524 | 12,820 |
SVG | 95 | 0 | 0 | 291 |
Markdown | 1 | 11 | 0 | 14 |
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.37 |
Average class complexity | 19.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 117 | |
▷ Abstract classes | 3 | 2.56% |
▷ Concrete classes | 114 | 97.44% |
▷ Final classes | 2 | 1.75% |
Methods | 1,013 | |
▷ Static methods | 2 | 0.20% |
▷ Public methods | 989 | 97.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 2.37% |
Functions | 571 | |
▷ Named functions | 561 | 98.25% |
▷ Anonymous functions | 10 | 1.75% |
Constants | 14 | |
▷ Global constants | 12 | 85.71% |
▷ Class constants | 2 | 14.29% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
43 PNG files occupy 0.86MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-taxonomy.png | 11.45KB | 6.06KB | ▼ 47.07% |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-accordion.png | 25.91KB | 12.25KB | ▼ 52.71% |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-clone.png | 44.19KB | 20.25KB | ▼ 54.17% |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-checkbox.png | 12.59KB | 6.28KB | ▼ 50.12% |
lib/advanced-custom-fields/assets/images/field-type-previews/field-preview-true-false.png | 6.06KB | 3.05KB | ▼ 49.61% |