10% recent-posts-slider-responsive

Code Review | Recent Posts Slider Responsive

WordPress plugin Recent Posts Slider Responsive scored10%from 54 tests.

About plugin

  • Plugin page: recent-posts-slid...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2015
  • Latest release: Mar 16, 2015
  • Number of updates: 4
  • Update frequency: every 13.0 days
  • Top authors: dilemma123 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /13,473 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.315.16 ▼35.59
Dashboard /wp-admin2.17 ▼1.136.92 ▼43.78
Posts /wp-admin/edit.php2.17 ▼1.195.88 ▼41.91
Add New Post /wp-admin/post-new.php2.17 ▼3.726.96 ▼88.64
Media Library /wp-admin/upload.php2.17 ▼1.065.85 ▼27.79
Recent Posts Slider Responsive /wp-admin/options-general.php?page=recent-posts-slider-responsive2.175.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲17114.00 ▼0.375.48 ▲3.7643.38 ▲1.33
Dashboard /wp-admin2,212 ▲244.93 ▼0.96104.60 ▼9.4842.64 ▼0.62
Posts /wp-admin/edit.php2,095 ▲32.05 ▲0.0535.31 ▼0.2533.77 ▲0.29
Add New Post /wp-admin/post-new.php1,534 ▲123.36 ▼0.01616.86 ▼54.0564.32 ▲14.33
Media Library /wp-admin/upload.php1,388 ▼04.31 ▲0.0995.27 ▼2.9842.82 ▼4.44
Recent Posts Slider Responsive /wp-admin/options-general.php?page=recent-posts-slider-responsive1,0732.0633.6143.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
CSS344591,253
PHP2429386
JavaScript16137186

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 code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/button-next.png0.58KB0.49KB▼ 15.45%
images/right-a.png2.86KB0.23KB▼ 91.94%
screenshot-1.png499.96KB114.76KB▼ 77.05%
images/left-a.png2.86KB0.23KB▼ 91.98%
images/button-previous.png0.59KB0.49KB▼ 17.08%