Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.65MB] [CPU: ▼17.69ms] Passed 4 tests
An overview of server-side resources used by Pars Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 48.14 ▲4.67 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.10 ▼1.87 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.41 ▼5.88 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.75 | 36.95 ▼59.79 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.72 ▼3.20 |
ParsSlider /wp-admin/edit.php?post_type=parsslider | 3.32 | 43.28 |
Add New /wp-admin/post-new.php?post_type=parsslider | 3.14 | 34.54 |
پارس اسلایدر /wp-admin/options-general.php?page=front-page-elements | 3.24 | 32.90 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
parsslider_height |
widget_theysaidso_widget |
widget_recent-posts |
parsslider_direction |
parsslider_width |
theysaidso_admin_options |
can_compress_scripts |
parsslider_limit |
db_upgraded |
Browser metrics Passed 4 tests
Pars Slider: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,859 ▲98 | 14.25 ▼0.19 | 2.74 ▲1.04 | 47.71 ▲3.66 |
Dashboard /wp-admin | 2,226 ▲52 | 5.51 ▼0.16 | 84.78 ▼11.60 | 42.26 ▼0.51 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.96 ▼0.00 | 36.68 ▼5.83 | 36.88 ▼0.91 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.48 ▲0.12 | 665.68 ▼44.37 | 55.76 ▼10.11 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.17 ▲0.00 | 105.87 ▲5.89 | 51.12 ▲4.62 |
ParsSlider /wp-admin/edit.php?post_type=parsslider | 1,101 | 1.99 | 36.30 | 35.20 |
Add New /wp-admin/post-new.php?post_type=parsslider | 1,498 | 2.36 | 52.26 | 74.33 |
پارس اسلایدر /wp-admin/options-general.php?page=front-page-elements | 832 | 1.99 | 26.56 | 38.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 10 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- parsslider_direction
- widget_recent-comments
- can_compress_scripts
- parsslider_height
- parsslider_width
- parsslider_limit
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/post-new.php?post_type=parsslider
- > Notice in wp-content/plugins/pars-slider/pars-slider.php+53
Undefined index: thumb
- > GET request to /wp-admin/post-new.php?post_type=parsslider
- > Notice in wp-content/plugins/pars-slider/pars-slider.php+54
Undefined index: pic
- > GET request to /wp-admin/post-new.php?post_type=parsslider
- > Notice in wp-content/plugins/pars-slider/pars-slider.php+55
Undefined index: url
- > GET request to /wp-admin/post-new.php?post_type=parsslider
- > Notice in wp-content/plugins/pars-slider/pars-slider.php+56
Undefined index: title1
- > GET request to /wp-admin/post-new.php?post_type=parsslider
- > Notice in wp-content/plugins/pars-slider/pars-slider.php+57
Undefined index: title2
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pars-slider/pars-slider.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== pars-slider ===
)
pars-slider/pars-slider.php Passed 13 tests
"Pars Slider" version 0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
by this plugin you can make a Jquery Slider , Simple easy and fast
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
Everything looks great! No dangerous files found in this plugin212 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 10 | 132 |
CSS | 1 | 0 | 0 | 79 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin