Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/recent-posts-slider-responsive/recent-posts-slider-responsive.php+211
Methods with the same name as their class will not be constructors in a future version of PHP; RpfWidget has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼52.48ms] Passed 4 tests
Server-side resources used by Recent Posts Slider Responsive
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.16 ▼35.59 |
Dashboard /wp-admin | 2.17 ▼1.13 | 6.92 ▼43.78 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.88 ▼41.91 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 6.96 ▼88.64 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.85 ▼27.79 |
Recent Posts Slider Responsive /wp-admin/options-general.php?page=recent-posts-slider-responsive | 2.17 | 5.70 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 10 new options
New WordPress options |
---|
rpf_total_posts |
widget_rpfwidget |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
rpf_post_per_slide |
widget_recent-posts |
widget_recent-comments |
rpf_slider_image_size |
Browser metrics Passed 4 tests
A check of browser resources used by Recent Posts Slider Responsive
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲171 | 14.00 ▼0.37 | 5.48 ▲3.76 | 43.38 ▲1.33 |
Dashboard /wp-admin | 2,212 ▲24 | 4.93 ▼0.96 | 104.60 ▼9.48 | 42.64 ▼0.62 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.05 ▲0.05 | 35.31 ▼0.25 | 33.77 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 23.36 ▼0.01 | 616.86 ▼54.05 | 64.32 ▲14.33 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.31 ▲0.09 | 95.27 ▼2.98 | 42.82 ▼4.44 |
Recent Posts Slider Responsive /wp-admin/options-general.php?page=recent-posts-slider-responsive | 1,073 | 2.06 | 33.61 | 43.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/recent-posts-slider-responsive/recent-posts-slider-responsive.php+211
Methods with the same name as their class will not be constructors in a future version of PHP; RpfWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 10 options in the database
- widget_rpfwidget
- widget_recent-comments
- rpf_post_per_slide
- widget_recent-posts
- rpf_slider_image_size
- widget_theysaidso_widget
- can_compress_scripts
- rpf_total_posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > Deprecated in wp-content/plugins/recent-posts-slider-responsive/recent-posts-slider-responsive.php+211
Methods with the same name as their class will not be constructors in a future version of PHP; RpfWidget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > Deprecated in wp-content/plugins/recent-posts-slider-responsive/recent-posts-slider-responsive.php+19
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in RpfWidget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > Notice in wp-content/plugins/recent-posts-slider-responsive/recent-posts-slider-responsive-admin.php+2
Undefined index: rpf_opt_hidden
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: rpf_opt_hidden in wp-content/plugins/recent-posts-slider-responsive/recent-posts-slider-responsive-admin.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recent-posts-slider-responsive/recent-posts-slider-responsive-admin.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/recent-posts-slider-responsive/recent-posts-slider-responsive.php:12
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > Network (severe)
wp-content/plugins/recent-posts-slider-responsive/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > Network (severe)
wp-content/plugins/recent-posts-slider-responsive/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > Network (severe)
wp-content/plugins/recent-posts-slider-responsive/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > Network (severe)
wp-content/plugins/recent-posts-slider-responsive/css/images/ui-icons_454545_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=recent-posts-slider-responsive
- > Network (severe)
wp-content/plugins/recent-posts-slider-responsive/css/images/ui-icons_888888_256x240.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #1 (Demo Frontend Page) image missing
recent-posts-slider-responsive/recent-posts-slider-responsive.php Passed 13 tests
The primary PHP file in "Recent Posts Slider Responsive" version 1.0.1 is used by WordPress to initiate all plugin functionality
51 characters long description:
This plugin displays recent post slider responsive.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,825 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 44 | 59 | 1,253 |
PHP | 2 | 42 | 9 | 386 |
JavaScript | 1 | 61 | 37 | 186 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 9 | |
▷ Named functions | 9 | 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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.49MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/button-next.png | 0.58KB | 0.49KB | ▼ 15.45% |
images/right-a.png | 2.86KB | 0.23KB | ▼ 91.94% |
screenshot-1.png | 499.96KB | 114.76KB | ▼ 77.05% |
images/left-a.png | 2.86KB | 0.23KB | ▼ 91.98% |
images/button-previous.png | 0.59KB | 0.49KB | ▼ 17.08% |