Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-artists-lite/libraries/lib.widgets.php+120
Function create_function() is deprecated
Server metrics [RAM: ▼1.55MB] [CPU: ▼59.69ms] Passed 4 tests
Server-side resources used by WPArtists
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.44 ▼1.02 | 8.08 ▼34.16 |
Dashboard /wp-admin | 2.46 ▼0.88 | 9.69 ▼54.90 |
Posts /wp-admin/edit.php | 2.46 ▼0.89 | 8.10 ▼47.41 |
Add New Post /wp-admin/post-new.php | 2.46 ▼3.42 | 8.28 ▼102.28 |
Media Library /wp-admin/upload.php | 2.46 ▼0.77 | 9.51 ▼28.63 |
Artists /wp-admin/edit.php?post_type=wpa_artist | 2.46 | 9.13 |
Premium /wp-admin/admin.php?page=wpartists_preimum | 2.46 | 8.18 |
Music /wp-admin/edit.php?post_type=wpa_music | 2.46 | 8.54 |
Labels /wp-admin/edit.php?post_type=wpa_labels | 2.46 | 8.13 |
Settings /wp-admin/admin.php?page=wpartists_settings | 2.46 | 10.22 |
Server storage [IO: ▲0.37MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_wpaallinone_widget |
widget_recent-comments |
widget_wpamusic_widget |
post_type_rules_flased_wpa_music |
db_upgraded |
post_type_rules_flased_wpa_labels |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WPArtists
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,989 ▲243 | 14.37 ▲0.07 | 9.00 ▲7.22 | 42.01 ▼0.83 |
Dashboard /wp-admin | 2,258 ▲70 | 4.93 ▼0.97 | 113.49 ▼4.82 | 45.49 ▼0.57 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.31 ▲0.28 | 39.04 ▼0.74 | 34.35 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,571 ▲57 | 23.52 ▲5.90 | 689.73 ▲13.98 | 53.01 ▲0.15 |
Media Library /wp-admin/upload.php | 1,444 ▲56 | 4.27 ▲0.07 | 103.50 ▼16.48 | 42.55 ▼5.76 |
Artists /wp-admin/edit.php?post_type=wpa_artist | 1,124 | 2.27 | 35.00 | 32.04 |
Premium /wp-admin/admin.php?page=wpartists_preimum | 928 | 1.84 | 28.94 | 31.79 |
Music /wp-admin/edit.php?post_type=wpa_music | 1,140 | 2.27 | 35.57 | 29.04 |
Labels /wp-admin/edit.php?post_type=wpa_labels | 1,116 | 2.27 | 35.24 | 29.39 |
Settings /wp-admin/admin.php?page=wpartists_settings | 919 | 1.87 | 28.90 | 29.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-artists-lite/libraries/lib.widgets.php+120
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- post_type_rules_flased_wpa_labels
- widget_recent-comments
- widget_recent-posts
- widget_wpamusic_widget
- post_type_rules_flased_wpa_artist
- post_type_rules_flased_wpa_music
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 16 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpartists_settings
- > Deprecated in wp-content/plugins/wp-artists-lite/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=wpartists_settings
- > Notice in wp-content/plugins/wp-artists-lite/wpartists.php+53
Undefined index: wpa_edit
- > GET request to /wp-admin/admin.php?page=wpartists_settings
- > Notice in wp-content/plugins/wp-artists-lite/libraries/core.php+78
Undefined index: wpa_artist_nonce
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
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-artists-lite/libraries/lib.shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-artists-lite/libraries/lib.shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-artists-lite/libraries/lib.shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-artists-lite/libraries/lib.widgets.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-artists-lite/libraries/lib.frontend.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-artists-lite/libraries/lib.metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-artists-lite/libraries/lib.posttype.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wpartists_settings
- > 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/wp-artists-lite/js/wpa_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=wpartists_settings
- > 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
- > GET request to /wp-admin/admin.php?page=wpartists_preimum
- > Network (severe)
http://demo.b4ucode.com/wpartist/wp-content/uploads/2012/11/screenshot_music_admin.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpartists_preimum
- > Network (severe)
http://demo.b4ucode.com/wpartist/wp-content/uploads/2012/11/screenshot_video_admin.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=wpartists_preimum
- > Network (severe)
http://demo.b4ucode.com/wpartist/wp-content/uploads/2012/11/widget.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== wp-artists-lite ===
) - Screenshots: No descriptions were found for these screenshots #0, #0, #0 in wp-artists-lite/assets to your readme.txt
wp-artists-lite/wpartists.php 85% from 13 tests
Analyzing the main PHP file in "WPArtists" version 0.0.2
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 230 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-artists-lite.php" instead of "wpartists.php")
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
Success! There were no dangerous files found in this plugin3,806 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 333 | 221 | 2,366 |
JavaScript | 8 | 184 | 99 | 958 |
CSS | 2 | 9 | 35 | 482 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in 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 | 56 | |
▷ Named functions | 56 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ie6/borderTopRight.png | 0.21KB | 0.20KB | ▼ 2.34% |
images/ie6/borderTopLeft.png | 0.21KB | 0.20KB | ▼ 4.63% |
images/loading_background.png | 0.15KB | 0.15KB | ▼ 0.64% |
images/ie6/borderBottomCenter.png | 0.11KB | 0.10KB | ▼ 8.11% |
images/overlay.png | 0.18KB | 0.15KB | ▼ 15.93% |