Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Compile error in wp-content/plugins/superslider-show/superslider-show.php+330
'break' not in the 'loop' or 'switch' context
Server metrics [RAM: ▼0.02MB] [CPU: ▼295.04ms] Passed 4 tests
Analyzing server-side resources used by SuperSlider-Show
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 101.82 ▲51.02 |
Dashboard /wp-admin | 3.41 ▲0.00 | 35.56 ▼9.11 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 41.06 ▼35.36 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 145.50 ▼1,129.81 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 26.26 ▼5.89 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 98 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by SuperSlider-Show
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,771 ▲17 | 15.78 ▼0.20 | 6.09 ▲0.29 | 2.83 ▲0.05 |
Dashboard /wp-admin | 2,878 ▲17 | 6.14 ▼0.13 | 132.88 ▼6.58 | 159.41 ▼7.13 |
Posts /wp-admin/edit.php | 2,694 ▲24 | 3.23 ▼0.01 | 63.86 ▼3.26 | 138.09 ▼9.53 |
Add New Post /wp-admin/post-new.php | 1,661 ▼5 | 16.08 ▼5.18 | 412.14 ▼40.15 | 185.89 ▲26.03 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.52 ▲0.03 | 146.75 ▲1.04 | 193.13 ▲3.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
'break' not in the 'loop' or 'switch' context in wp-content/plugins/superslider-show/superslider-show.php on line 330
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/superslider-show/admin/superslider-show-ui.php:25
- > PHP Notice
Undefined variable: ss_shortcode in wp-content/plugins/superslider-show/admin/superslider-show-box.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (![SlideShow sample](screenshot-1.png "SlideShow sample")), #2 (![SuperSlider-Show options screen](screenshot-2.png "SuperSlider-Show options screen")), #3 (![SuperSlider-Show MetaBox on post screen](screenshot-3.png "SuperSlider-Show MetaBox screen"))
superslider-show/superslider-show.php Passed 13 tests
The primary PHP file in "SuperSlider-Show" version 2.9 is used by WordPress to initiate all plugin functionality
117 characters long description:
Animated Gallery slideshow uses Mootools 1.2 javascript and Slideshow2 to replace wordpress gallery with a slideshow.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,978 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 298 | 430 | 2,793 |
CSS | 27 | 320 | 632 | 2,470 |
PHP | 3 | 453 | 202 | 2,239 |
PO File | 2 | 228 | 260 | 476 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 180.00 |
▷ Minimum class complexity | 180.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 5.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.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 | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
33 PNG files occupy 0.70MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin-data/superslider/ssShow/black/images/thumbnails_overlay_top.png | 0.37KB | 0.43KB | 0.00% |
admin/img/black.png | 1.29KB | 0.67KB | ▼ 47.64% |
plugin-data/superslider/ssShow/custom/images/thumbframe.png | 2.99KB | 2.05KB | ▼ 31.63% |
plugin-data/superslider/ssShow/custom/images/controller_buttons.png | 2.17KB | 1.59KB | ▼ 26.54% |
plugin-data/superslider/ssShow/thumbframe_edit.png | 28.83KB | 0.38KB | ▼ 98.67% |