Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.26MB] [CPU: ▼151.47ms] Passed 4 tests
Analyzing server-side resources used by Lightweight Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.08 | 39.40 ▲5.29 |
Dashboard /wp-admin | 3.15 ▲0.10 | 43.68 ▼2.29 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 43.36 ▲9.84 |
Add New Post /wp-admin/post-new.php | 4.13 ▼1.30 | 45.81 ▼608.41 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 31.56 ▼0.47 |
Add New /wp-admin/post-new.php?post_type=lightweight-slider | 3.02 | 33.60 |
Settings /wp-admin/edit.php?post_type=lightweight-slider&page=my-setting-admin | 3.05 | 41.21 |
All Slides /wp-admin/edit.php?post_type=lightweight-slider | 3.13 | 34.03 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
lws_transition |
lws_pagination |
lws_slide_height |
lws_controls |
lws_animation |
lws_delay |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lightweight Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,861 ▲265 | 16.15 ▲0.34 | 12.88 ▲3.20 | 44.95 ▲1.42 |
Dashboard /wp-admin | 3,016 ▲82 | 5.91 ▼0.18 | 134.98 ▼21.62 | 112.27 ▼2.09 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.68 ▲0.01 | 64.76 ▼3.77 | 85.72 ▼6.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▼52 | 18.83 ▼1.83 | 366.40 ▲2.07 | 109.83 ▼5.90 |
Media Library /wp-admin/upload.php | 1,849 ▲42 | 5.02 ▼0.00 | 149.26 ▲8.17 | 117.33 ▲3.10 |
Add New /wp-admin/post-new.php?post_type=lightweight-slider | 2,317 | 4.58 | 104.86 | 81.53 |
Settings /wp-admin/edit.php?post_type=lightweight-slider&page=my-setting-admin | 1,174 | 2.14 | 60.69 | 85.71 |
All Slides /wp-admin/edit.php?post_type=lightweight-slider | 1,463 | 2.63 | 65.28 | 78.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lightweight-slider
- > Notice in wp-content/plugins/lightweight-slider/lightweight-slider.php+71
Undefined index: slide_caption
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lightweight-slider
- > Notice in wp-content/plugins/lightweight-slider/lightweight-slider.php+94
Trying to get property 'ID' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lightweight-slider
- > Notice in wp-content/plugins/lightweight-slider/lightweight-slider.php+80
Undefined index: slide_link
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=lightweight-slider
- > Notice in wp-content/plugins/lightweight-slider/lightweight-slider.php+80
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lightweight-slider/lightweight-slider.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Easy to use settings screen) image not found
- Donate link: Please fix this invalid url: ""
lightweight-slider/lightweight-slider.php Passed 13 tests
This is the main PHP file of "Lightweight Slider" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Simple non-bloated WordPress Image Slider
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 detected731 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 52 | 31 | 363 |
JavaScript | 1 | 16 | 14 | 191 |
CSS | 1 | 2 | 1 | 177 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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
PNG images were not found in this plugin