Benchmarks
Plugin footprint 75% 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
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/pro-slider/proslider.php+52
Undefined variable: charset_collate
Server metrics [RAM: ▼0.14MB] [CPU: ▼150.99ms] Passed 4 tests
A check of server-side resources used by Proslider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.77 ▲0.05 | 23.77 ▲5.09 |
Dashboard /wp-admin | 3.00 ▼0.05 | 38.57 ▼9.57 |
Posts /wp-admin/edit.php | 3.06 ▼0.04 | 36.46 ▼11.78 |
Add New Post /wp-admin/post-new.php | 5.01 ▼0.42 | 80.67 ▼581.38 |
Media Library /wp-admin/upload.php | 2.97 ▼0.03 | 36.37 ▼1.22 |
Proslider /wp-admin/admin.php?page=proslider | 2.99 | 31.11 |
My Sliders /wp-admin/admin.php?page=my-sliders | 2.87 | 20.89 |
Get Premium /wp-admin/admin.php?page=get-premium | 2.87 | 22.97 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, no new options
New tables |
---|
wp_proslider |
Browser metrics Passed 4 tests
Proslider: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,057 ▲461 | 17.71 ▲1.74 | 10.85 ▲2.37 | 51.93 ▼0.39 |
Dashboard /wp-admin | 3,213 ▲279 | 8.01 ▲2.03 | 159.37 ▲11.05 | 111.41 ▼8.50 |
Posts /wp-admin/edit.php | 3,011 ▲272 | 4.21 ▲1.53 | 83.41 ▲19.33 | 102.51 ▲8.42 |
Add New Post /wp-admin/post-new.php | 1,649 ▲149 | 21.04 ▲2.28 | 269.77 ▼114.11 | 124.80 ▲13.47 |
Media Library /wp-admin/upload.php | 1,860 ▲53 | 4.85 ▼0.17 | 134.27 ▼28.10 | 130.95 ▼4.08 |
Proslider /wp-admin/admin.php?page=proslider | 1,467 | 4.08 | 103.49 | 69.59 |
My Sliders /wp-admin/admin.php?page=my-sliders | 1,475 | 3.99 | 81.09 | 90.52 |
Get Premium /wp-admin/admin.php?page=get-premium | 1,477 | 3.80 | 81.11 | 162.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=get-premium
- > User notice in wp-includes/functions.php+5663
WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- 19 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=get-premium
- > Notice in wp-admin/menu-header.php+91
Undefined offset: 2
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=get-premium
- > Notice in wp-admin/menu-header.php+141
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=my-sliders
- > Notice in wp-content/plugins/pro-slider/proview/allsliders.php+74
Undefined variable: id
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
Please take a closer look at the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pro-slider/proview/mainProSlider.php
- > /wp-content/plugins/pro-slider/proview/Premium_virsion.php
- > /wp-content/plugins/pro-slider/proview/allsliders.php
- > /wp-content/plugins/pro-slider/proview/mainProSliderFront.php
- > /wp-content/plugins/pro-slider/proslider.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
Use of undefined constant PROSLIDER_PLUGIN_DIR_PATH - assumed 'PROSLIDER_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pro-slider/proview/Premium_virsion.php on line 1
- > PHP Warning
Use of undefined constant PROSLIDER_PLUGIN_DIR_PATH - assumed 'PROSLIDER_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/pro-slider/proview/Premium_virsion.php on line 8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (This is the screenshot of (Screenshot-1.png).), #2 (This is the screenshot of ( Screenshot-2.png).), #3 (This is the screenshot of (Screenshot-3.png).), #4 (This is the screenshot of (Screenshot-4.png).), #5 (This is the screenshot of (Screenshot-5.png).), #6 (This is the screenshot of (Screenshot-6.png).)
- Contributors: Plugin contributors field is missing
pro-slider/proslider.php 77% from 13 tests
"Proslider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "5.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pro-slider.php" instead of "proslider.php")
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
There were no executable files found in this plugin1,736 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 65 | 12 | 811 |
PHP | 5 | 120 | 29 | 488 |
JavaScript | 4 | 91 | 14 | 437 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 11 | 84.62% |
▷ Anonymous functions | 2 | 15.38% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/proimages/circle-img.png | 153.49KB | 62.06KB | ▼ 59.57% |