Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲2.64MB] [CPU: ▼291.52ms] Passed 4 tests
A check of server-side resources used by Content Slider, Image Gallery & Slideshow Plugin | SlideDeck 3
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.15 ▲2.63 | 74.14 ▼14.50 |
Dashboard /wp-admin | 6.09 ▲2.68 | 47.62 ▲11.60 |
Posts /wp-admin/edit.php | 6.32 ▲2.67 | 106.30 ▲68.63 |
Add New Post /wp-admin/post-new.php | 9.56 ▲2.58 | 109.30 ▼1,176.76 |
Media Library /wp-admin/upload.php | 5.98 ▲2.68 | 37.63 ▲13.60 |
Server storage [IO: ▲5.77MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- You have illegally modified 1 file (0.00KB) outside of "wp-content/plugins/slidedeck3/" and "wp-content/uploads/"
- (new file) wp-content/plugins/slidedeck-lenses/.empty
Filesystem: 555 new files
Database: no new tables, 7 new options
New WordPress options |
---|
slidedeck2_lite_installed |
slidedeck_partner |
slidedeck2_installed |
slidedeck_cohort |
widget_slidedeck2_widget |
slidedeck_version |
slidedeck_license |
Browser metrics Passed 4 tests
A check of browser resources used by Content Slider, Image Gallery & Slideshow Plugin | SlideDeck 3
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,109 ▲367 | 17.91 ▲2.64 | 21.77 ▲15.67 | 2.74 ▲0.56 |
Dashboard /wp-admin | 2,952 ▲95 | 6.21 ▲0.09 | 117.60 ▼21.51 | 193.02 ▲12.80 |
Posts /wp-admin/edit.php | 2,753 ▲60 | 3.25 ▼0.12 | 68.40 ▲3.85 | 147.22 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,698 ▲38 | 21.94 ▲5.83 | 473.12 ▲21.86 | 162.18 ▼6.07 |
Media Library /wp-admin/upload.php | 1,735 ▲46 | 5.84 ▲0.39 | 132.43 ▼14.27 | 262.73 ▲10.93 |
Advanced Options /wp-admin/slidedeck2-lite.php/options | 26 | 0.94 | 0.03 | 20.03 |
Lenses /wp-admin/slidedeck2-lite.php/lenses | 26 | 0.94 | 0.04 | 18.56 |
Get More Features /wp-admin/slidedeck2-lite.php/upgrades | 26 | 0.94 | 0.03 | 15.63 |
Addons /wp-admin/slidedeck2-lite.php/addons | 26 | 0.94 | 0.03 | 14.67 |
Manage /wp-admin/slidedeck2-lite.php | 26 | 0.94 | 0.07 | 22.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- slidedeck_version
- slidedeck_cohort
- slidedeck_partner
- slidedeck_license
- slidedeck2_installed
- slidedeck2_lite_installed
- widget_slidedeck2_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/slidedeck3/views/elements/_ress-js-footer-part.php
- > /wp-content/plugins/slidedeck3/views/elements/_editor-styles.php
- > /wp-content/plugins/slidedeck3/views/elements/_insert-iframe-table.php
- > /wp-content/plugins/slidedeck3/views/help/whats-new.php
- > /wp-content/plugins/slidedeck3/views/elements/_blog-feed.php
- > /wp-content/plugins/slidedeck3/views/elements/_pointers.php
- > /wp-content/plugins/slidedeck3/views/elements/_upgrade_button.php
- > /wp-content/plugins/slidedeck3/slidedeck2-lite.php
- 165× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slidedeck3/views/elements/_no-content-found.php:37
- > PHP Notice
Undefined variable: addon in wp-content/plugins/slidedeck3/views/elements/_addons.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function slidedeck2_action() in wp-content/plugins/slidedeck3/views/elements/_create-custom-slidedeck-block.php:11
- > PHP Notice
Undefined variable: slide in wp-content/plugins/slidedeck3/sources/custom/slides/image/views/show.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/slidedeck3/views/getcode-dialog.php:35
- > PHP Notice
Undefined variable: slidedeck in wp-content/plugins/slidedeck3/sources/youtube/views/show.php on line 34
- > PHP Fatal error
Uncaught Error: Class 'SlideDeck' not found in wp-content/plugins/slidedeck3/sources/posts/source.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/slidedeck3/sources/custom/slides/image/views/_image-upload-html4-form.php:5
- > PHP Notice
Undefined variable: lens in wp-content/plugins/slidedeck3/views/preview-iframe.php on line 83
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader' not found in wp-content/plugins/slidedeck3/classes/slidedeck-lens-upload.php:26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/slidedeck2-lite.php/options
- > Network (severe)
wp-admin/slidedeck2-lite.php/options - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/slidedeck2-lite.php/lenses
- > Network (severe)
wp-admin/slidedeck2-lite.php/lenses - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/slidedeck2-lite.php/upgrades
- > Network (severe)
wp-admin/slidedeck2-lite.php/upgrades - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/slidedeck2-lite.php/addons
- > Network (severe)
wp-admin/slidedeck2-lite.php/addons - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/slidedeck2-lite.php
- > Network (severe)
wp-admin/slidedeck2-lite.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: image slider, gallery, carousel, content slider, posts slider
slidedeck3/slidedeck2-lite.php 85% from 13 tests
The main PHP script in "Content Slider, Image Gallery & Slideshow Plugin | SlideDeck 3" version 4.5.2 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("slidedeck3.php" instead of "slidedeck2-lite.php")
- Description: The description should be shorter than 140 characters (currently 184 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- Do not include executable or dangerous files in your plugin
- .xap - Silverlight Application Package in Microsoft Silverlight
- ☣ wp-content/plugins/slidedeck3/sources/custom/slides/image/js/Moxie.xap
- ☣ wp-content/plugins/slidedeck3/sources/custom/slides/image/js/plupload.silverlight.xap
- .xap - Silverlight Application Package in Microsoft Silverlight
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 101 | 4,769 | 6,026 | 21,256 |
CSS | 28 | 881 | 222 | 14,434 |
PHP | 90 | 3,215 | 6,065 | 13,041 |
HTML | 1 | 53 | 7 | 266 |
JSON | 4 | 0 | 0 | 239 |
Markdown | 2 | 42 | 0 | 48 |
PHP code Passed 2 tests
A short 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.41 |
Average class complexity | 71.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 535.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 99.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 419 | |
▷ Static methods | 20 | 4.77% |
▷ Public methods | 399 | 95.23% |
▷ Protected methods | 2 | 0.48% |
▷ Private methods | 18 | 4.30% |
Functions | 29 | |
▷ Named functions | 28 | 96.55% |
▷ Anonymous functions | 1 | 3.45% |
Constants | 28 | |
▷ Global constants | 28 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
258 PNG files occupy 1.37MB with 1.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/glass-arrows.png | 6.99KB | 2.41KB | ▼ 65.50% |
images/choose-dynamic-decks.png | 14.88KB | 6.01KB | ▼ 59.60% |
lenses/prime/deck-nav-light-bg.png | 1.03KB | 0.14KB | ▼ 86.15% |
lenses/o-town/hash-black-bg.png | 0.98KB | 0.12KB | ▼ 88.11% |
images/flyout-tab.png | 1.30KB | 0.41KB | ▼ 68.05% |