Benchmarks
Plugin footprint 83% from 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.47MB] [CPU: ▼2.44ms] Passed 4 tests
Server-side resources used by Simple Pictures Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 44.67 ▲4.44 |
Dashboard /wp-admin | 3.90 ▲0.56 | 48.51 ▼13.90 |
Posts /wp-admin/edit.php | 4.01 ▲0.66 | 51.76 ▲4.64 |
Add New Post /wp-admin/post-new.php | 6.48 ▲0.60 | 92.74 ▼1.47 |
Media Library /wp-admin/upload.php | 3.82 ▲0.59 | 37.04 ▲1.16 |
Add New /wp-admin/post-new.php?post_type=sps_slider | 3.89 | 47.78 |
All Sliders /wp-admin/edit.php?post_type=sps_slider | 3.86 | 40.00 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Simple Pictures Slider: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.05 ▲0.17 | 1.51 ▼0.17 | 41.23 ▼1.10 |
Dashboard /wp-admin | 2,219 ▲39 | 5.62 ▲0.09 | 81.79 ▼11.30 | 38.49 ▼6.04 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▲0.02 | 44.96 ▲7.55 | 37.45 ▲4.73 |
Add New Post /wp-admin/post-new.php | 1,549 ▲20 | 23.07 ▼0.14 | 601.37 ▼67.73 | 49.00 ▼5.91 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.19 ▼0.01 | 98.39 ▲1.23 | 41.25 ▼0.02 |
Add New /wp-admin/post-new.php?post_type=sps_slider | 1,940 | 4.10 | 101.59 | 52.88 |
All Sliders /wp-admin/edit.php?post_type=sps_slider | 1,242 | 1.89 | 33.76 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/simple-pictures-slider/templates/navigation-dot.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-pictures-slider/templates/navigation.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-pictures-slider/templates/arrow.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-pictures-slider/templates/arrows.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-pictures-slider/templates/slider.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/simple-pictures-slider/templates/slide.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/simple-pictures-slider/templates/slider-empty.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
simple-pictures-slider/simple-pictures-slider.php Passed 13 tests
The primary PHP file in "Simple Pictures Slider" version 1.5 is used by WordPress to initiate all plugin functionality
32 characters long description:
Just a simple slider of pictures
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,400 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 437 | 560 | 1,637 |
CSS | 2 | 178 | 17 | 1,100 |
JavaScript | 3 | 86 | 126 | 342 |
PO File | 1 | 133 | 143 | 320 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 139.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 341.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 4 | 5.26% |
▷ Public methods | 74 | 97.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.63% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin