Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/fp-responsive-slider/fp_responsive_slider.php+300
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.09ms] Passed 4 tests
A check of server-side resources used by FP Responsive Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.80 ▼38.23 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.28 ▼44.49 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.19 ▼44.54 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.01 ▼85.11 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.23 ▼32.43 |
FP RSlider /wp-admin/edit.php?post_type=fprslider | 2.05 | 5.04 |
FP Responsive Slider /wp-admin/tools.php?page=fp-responsive-slider | 2.05 | 5.69 |
Add New /wp-admin/post-new.php?post_type=fprslider | 2.05 | 5.65 |
FP RSlider Settings /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider | 2.05 | 6.44 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_fprsliderwidget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by FP Responsive Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲222 | 13.61 ▼0.76 | 4.73 ▲2.81 | 42.39 ▼2.61 |
Dashboard /wp-admin | 2,242 ▲57 | 5.84 ▼0.03 | 101.25 ▼14.54 | 38.02 ▼7.16 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.03 ▲0.03 | 41.85 ▲3.82 | 37.45 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 23.23 ▲0.10 | 633.86 ▼53.99 | 57.32 ▼4.05 |
Media Library /wp-admin/upload.php | 1,424 ▲39 | 4.14 ▼0.06 | 102.50 ▼5.71 | 42.27 ▲0.32 |
FP RSlider /wp-admin/edit.php?post_type=fprslider | 1,131 | 2.01 | 34.77 | 31.80 |
FP Responsive Slider /wp-admin/tools.php?page=fp-responsive-slider | 1,097 | 2.05 | 22.16 | 41.49 |
Add New /wp-admin/post-new.php?post_type=fprslider | 2,216 | 7.55 | 175.00 | 62.46 |
FP RSlider Settings /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider | 1,096 | 2.06 | 24.25 | 35.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_fprsliderwidget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fprslider_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fprslider_css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider
- > Deprecated in wp-content/plugins/fp-responsive-slider/fp_responsive_slider.php+300
Function create_function() is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in FprsliderWidget is deprecated since version 4.3.0! Use __construct() instead.
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=fprslider&page=fp-responsive-slider
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
SRP 50% 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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/fp-responsive-slider/fp_responsive_slider.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (View of Responsive view of slider.), #2 (View Full View of slider.), #3 (View Backend Settings page for shortcode/template code.), #4 (View Backend Settings for widget.)
fp-responsive-slider/fp_responsive_slider.php 85% from 13 tests
The main PHP script in "FP Responsive Slider" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 286 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("fp-responsive-slider.php" instead of "fp_responsive_slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin552 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 24 | 462 |
CSS | 1 | 6 | 2 | 83 |
JavaScript | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
8 PNG files occupy 0.66MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 16.66KB | 5.86KB | ▼ 64.81% |
screenshot-3.png | 38.15KB | 13.66KB | ▼ 64.20% |
images/fprslider-icon.png | 2.88KB | 1.58KB | ▼ 44.96% |
screenshot-2.png | 457.01KB | 143.30KB | ▼ 68.65% |
images/right.png | 3.72KB | 0.91KB | ▼ 75.49% |