Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/dc-artists/libraries/lib.widgets.php+120
Function create_function() is deprecated
Server metrics [RAM: ▼1.57MB] [CPU: ▼60.05ms] Passed 4 tests
Analyzing server-side resources used by DC Artists
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.43 ▼1.03 | 6.68 ▼38.85 |
Dashboard /wp-admin | 2.45 ▼0.89 | 7.50 ▼59.49 |
Posts /wp-admin/edit.php | 2.45 ▼0.90 | 8.45 ▼41.94 |
Add New Post /wp-admin/post-new.php | 2.45 ▼3.43 | 8.26 ▼99.92 |
Media Library /wp-admin/upload.php | 2.45 ▼0.78 | 9.61 ▼28.38 |
Artists /wp-admin/edit.php?post_type=dca_artist | 2.45 | 8.09 |
Labels /wp-admin/edit.php?post_type=dca_labels | 2.45 | 9.54 |
Music /wp-admin/edit.php?post_type=dca_music | 2.45 | 7.48 |
Settings /wp-admin/admin.php?page=dcartists_settings | 2.45 | 7.61 |
Info /wp-admin/admin.php?page=dcartists_info | 2.45 | 7.75 |
Server storage [IO: ▲0.17MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 36 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_recent-comments |
post_type_rules_flased_dca_labels |
widget_recent-posts |
theysaidso_admin_options |
post_type_rules_flased_dca_artist |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_dcaallinone_widget |
widget_dcamusic_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by DC Artists
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,003 ▲242 | 14.22 ▼0.14 | 8.65 ▲6.69 | 41.30 ▼2.44 |
Dashboard /wp-admin | 2,247 ▲70 | 5.70 ▲0.13 | 90.76 ▼4.96 | 40.99 ▲0.46 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 2.30 ▲0.27 | 38.59 ▼0.52 | 35.38 ▼1.74 |
Add New Post /wp-admin/post-new.php | 1,569 ▲41 | 23.11 ▼0.00 | 610.58 ▼21.14 | 52.37 ▲3.33 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.31 ▲0.11 | 109.49 ▲9.68 | 45.23 ▲1.43 |
Artists /wp-admin/edit.php?post_type=dca_artist | 1,135 | 2.25 | 37.49 | 30.87 |
Labels /wp-admin/edit.php?post_type=dca_labels | 1,127 | 2.26 | 35.03 | 30.65 |
Music /wp-admin/edit.php?post_type=dca_music | 1,148 | 2.22 | 35.02 | 30.31 |
Settings /wp-admin/admin.php?page=dcartists_settings | 911 | 1.84 | 28.09 | 28.54 |
Info /wp-admin/admin.php?page=dcartists_info | 897 | 1.80 | 27.40 | 26.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 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
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/dc-artists/libraries/lib.widgets.php+120
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 11 options
- can_compress_scripts
- post_type_rules_flased_dca_artist
- widget_dcamusic_widget
- widget_recent-comments
- post_type_rules_flased_dca_music
- widget_theysaidso_widget
- widget_dcaallinone_widget
- theysaidso_admin_options
- db_upgraded
- post_type_rules_flased_dca_labels
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dcartists_info
- > Deprecated in wp-content/plugins/dc-artists/libraries/lib.widgets.php+242
Function create_function() is deprecated
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dcartists_info
- > Notice in wp-content/plugins/dc-artists/dcartists.php+57
Undefined index: dca_edit
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
Please fix the following
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dc-artists/libraries/lib.shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dc-artists/libraries/lib.posttype.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dc-artists/libraries/lib.shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dc-artists/libraries/lib.metabox.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dc-artists/libraries/lib.widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dc-artists/libraries/lib.shortcodes.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dcartists_info
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,thickbox,underscore,shortcode,media-upload,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/dc-artists/js/dca_admin.js?ver=6.3.1:5:22)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,thickbox,underscore,shortcode,media-upload,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,thickbox,underscore,shortcode,media-upload,utils&ver=6.3.1:2:27292)" undefined
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dcartists_info
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,thickbox,underscore,shortcode,media-upload,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: links, music artwork, artist, label, music manager...
dc-artists/dcartists.php 85% from 13 tests
The main PHP file in "DC Artists" ver. 1.4.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("dc-artists.php" instead of "dcartists.php")
- Description: The description should be shorter than 140 characters (currently 231 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected3,044 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 239 | 185 | 1,604 |
JavaScript | 8 | 184 | 99 | 958 |
CSS | 2 | 9 | 35 | 482 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 44 | |
▷ Named functions | 44 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
12 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/border.png | 0.11KB | 0.10KB | ▼ 7.14% |
images/ie6/borderTopLeft.png | 0.21KB | 0.20KB | ▼ 4.63% |
images/controls.png | 2.83KB | 1.28KB | ▼ 54.82% |
images/overlay.png | 0.18KB | 0.15KB | ▼ 15.93% |
images/ie6/borderBottomLeft.png | 0.21KB | 0.20KB | ▼ 4.19% |