Benchmarks
Plugin footprint 23% 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
- The plugin did not install without errors
- > Notice in wp-content/plugins/pslider/lib/PL_BaseLoad.php+70
Only variables should be passed by reference
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.99ms] Passed 4 tests
Analyzing server-side resources used by WP PSlider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.91 ▼40.27 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.83 ▼42.15 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.38 ▼40.34 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.42 ▼89.19 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.14 ▼28.01 |
Add New Group /wp-admin/admin.php?page=add_new_group_slide | 2.05 | 5.63 |
Option /wp-admin/admin.php?page=option | 2.05 | 5.88 |
PSlider /wp-admin/admin.php?page=p_slider | 2.05 | 7.65 |
Add New Photos /wp-admin/admin.php?page=add_new_photos | 2.05 | 5.31 |
Manage Photos /wp-admin/admin.php?page=manage_slides | 2.05 | 6.18 |
Server storage [IO: ▲0.95MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 105 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_pslider_group |
wp_pslider |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WP PSlider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,148 ▲413 | 16.22 ▲1.58 | 12.24 ▲10.06 | 48.58 ▲2.52 |
Dashboard /wp-admin | 2,369 ▲181 | 6.59 ▲1.68 | 131.11 ▲28.61 | 89.07 ▲42.93 |
Posts /wp-admin/edit.php | 2,298 ▲206 | 3.53 ▲1.53 | 56.50 ▲20.83 | 72.80 ▲41.58 |
Add New Post /wp-admin/post-new.php | 1,562 ▲27 | 18.29 ▼4.78 | 655.96 ▼10.16 | 41.11 ▼16.61 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.29 ▲0.17 | 82.16 ▼23.95 | 85.01 ▲40.67 |
Add New Group /wp-admin/admin.php?page=add_new_group_slide | 1,430 | 3.20 | 43.09 | 66.56 |
Option /wp-admin/admin.php?page=option | 1,015 | 3.23 | 41.85 | 64.52 |
PSlider /wp-admin/admin.php?page=p_slider | 1,001 | 3.18 | 47.12 | 78.67 |
Add New Photos /wp-admin/admin.php?page=add_new_photos | 1,071 | 3.20 | 40.15 | 70.34 |
Manage Photos /wp-admin/admin.php?page=manage_slides | 1,009 | 3.20 | 40.57 | 66.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/pslider/lib/PL_BaseLoad.php+70
Only variables should be passed by reference
- The uninstall procedure failed, leaving 2 tables in the database
- wp_pslider_group
- wp_pslider
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 20 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > Notice in wp-content/plugins/pslider/lib/PL_BaseLoad.php+17
Only variables should be passed by reference
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jQuery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-sortable handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-draggable handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui-droppable handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the admin-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the admin-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ajax_handler handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > Deprecated in wp-content/plugins/pslider/pslider-load.php+32
Non-static method PL_BaseAdd::localize_script() should not be called statically
- > GET request to /wp-admin/admin.php?page=add_new_group_slide
- > Deprecated in wp-content/plugins/pslider/views/add-new-group.php+345
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pslider/views/shortcode.php
- > /wp-content/plugins/pslider/views/shortcode-copy.php
- 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PL_BaseHTML' not found in wp-content/plugins/pslider/views/settings.php:1
- > PHP Fatal error
Uncaught Error: Class 'PL_BaseHTML' not found in wp-content/plugins/pslider/views/pslider.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/pslider/lib/PL_BaseLoad.php:76
- > PHP Fatal error
Uncaught Error: Class 'PL_BaseInput' not found in wp-content/plugins/pslider/views/add-new-photos.php:3
- > PHP Fatal error
Uncaught Error: Class 'PL_BaseHTML' not found in wp-content/plugins/pslider/views/option.php:6
- > PHP Fatal error
Uncaught Error: Class 'PL_Bootstrap' not found in wp-content/plugins/pslider/pslider-load.php:3
- > PHP Notice
Only variables should be passed by reference in wp-content/plugins/pslider/lib/PL_BaseLoad.php on line 70
- > PHP Fatal error
Uncaught Error: Class 'PL_BaseInput' not found in wp-content/plugins/pslider/views/add-new-group.php:3
- > PHP Fatal error
Uncaught Error: Class 'PL_BaseHTML' not found in wp-content/plugins/pslider/views/manage-slides.php:1
- > PHP Fatal error
Uncaught Error: Class 'PL_BaseHTML' not found in wp-content/plugins/pslider/views/documentation.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&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/pslider/js/admin-script.js?ver=6.3.1:68:42)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=manage_slides
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== pslider ===
) - Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
pslider/pslider.php Passed 13 tests
Analyzing the main PHP file in "WP PSlider" version 1.0.0
82 characters long description:
This particular plugin has the ability to group, manage and upload mulitple image.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected8,571 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 23 | 626 | 874 | 3,688 |
PHP | 25 | 1,511 | 248 | 3,492 |
CSS | 9 | 203 | 153 | 1,313 |
Markdown | 1 | 35 | 0 | 78 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 36.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 4.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 77 | 64.71% |
▷ Public methods | 119 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
35 PNG files occupy 0.35MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/1390896087_page_white_edit.png | 0.60KB | 0.60KB | 0.00% |
images/1390816354_slides.png | 0.54KB | 0.68KB | 0.00% |
images/sprite-plugin.png | 1.97KB | 1.01KB | ▼ 48.88% |
images/flexs/nav_style2_arrows-prev.png | 1.30KB | 0.35KB | ▼ 72.80% |
styles/rewind.png | 56.61KB | 1.55KB | ▼ 97.27% |