Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼147.46ms] Passed 4 tests
An overview of server-side resources used by WP Flexslider Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 34.25 ▼6.26 |
Dashboard /wp-admin | 3.11 ▲0.06 | 49.01 ▼5.83 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 44.30 ▼8.62 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 95.56 ▼560.19 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 39.56 ▼14.77 |
WP Flexslider Hilfe /wp-admin/plugins.php?page=wp_flexslider_shortcodes | 3.03 | 29.24 |
Server storage [IO: ▲4.35MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP Flexslider Shortcodes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲229 | 16.67 ▲1.22 | 15.21 ▲6.66 | 48.45 ▼11.43 |
Dashboard /wp-admin | 2,976 ▲46 | 6.06 ▼0.05 | 145.55 ▼30.58 | 110.24 ▼24.94 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.69 ▼0.00 | 70.18 ▼8.81 | 94.55 ▼12.46 |
Add New Post /wp-admin/post-new.php | 1,690 ▲7 | 15.93 ▼0.32 | 401.45 ▼20.04 | 116.67 ▼13.87 |
Media Library /wp-admin/upload.php | 1,757 ▼50 | 5.04 ▲0.03 | 189.29 ▲23.30 | 161.94 ▲33.68 |
WP Flexslider Hilfe /wp-admin/plugins.php?page=wp_flexslider_shortcodes | 1,321 | 2.08 | 60.77 | 95.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-flexslider-shortcodes/public/partials/wp-flexslider-public-display.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-flexslider-shortcodes/admin/partials/wp-flexslider-admin-display.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flexslider-shortcodes/plugin_options_old.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flexslider-shortcodes/plugin_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flexslider-shortcodes/wp_flexslider_shortcodes.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-flexslider-shortcodes/plugin-options.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/plugins.php?page=wp_flexslider_shortcodes
- > Network (severe)
wp-content/plugins/wp_flexslider_shortcodes/admin/images/slider-basic.PNG - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=wp_flexslider_shortcodes
- > Network (severe)
wp-content/plugins/wp_flexslider_shortcodes/admin/images/wp-gallery.PNG - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/plugins.php?page=wp_flexslider_shortcodes
- > Network (severe)
wp-content/plugins/wp_flexslider_shortcodes/admin/images/wp-gallary-shortcode.PNG - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Basic Slider), #2 (Custom Navigation Slider), #3 (Slider with Caption), #4 (Thumbnails Slider), #5 (Scrollable Thumbnails), #6 (Settings Page)
wp-flexslider-shortcodes/wp-flexslider.php 85% from 13 tests
The main file in "WP Flexslider Shortcodes" v. 2.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-flexslider-shortcodes.php" instead of "wp-flexslider.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
No dangerous file extensions were detected6,814 lines of code in 57 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 310 | 452 | 2,191 |
HTML | 11 | 189 | 50 | 1,366 |
SVG | 5 | 0 | 0 | 1,271 |
PHP | 15 | 231 | 623 | 815 |
CSS | 5 | 65 | 107 | 759 |
LESS | 1 | 208 | 73 | 251 |
Markdown | 3 | 100 | 0 | 161 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 15 | |
▷ Named functions | 15 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 2.26MB with 1.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/wp-gallary-shortcode-visuell.PNG | 253.23KB | 64.49KB | ▼ 74.53% |
admin/images/wp-gallery.PNG | 392.29KB | 99.23KB | ▼ 74.70% |
image/slider-basic.PNG | 484.08KB | 133.92KB | ▼ 72.33% |
woothemes-FlexSlider-8b3766e/demo/images/logo.png | 3.49KB | 2.21KB | ▼ 36.76% |
admin/images/slider-basic.PNG | 484.08KB | 133.92KB | ▼ 72.33% |