89% wp-responsive-recent-post-slider

Code Review | WP Responsive Recent Post Slider/Carousel

WordPress plugin WP Responsive Recent Post Slider/Carousel scored89%from 54 tests.

About plugin

  • Plugin page: wp-responsive-rec...
  • Plugin version: 3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: Nov 24, 2023
  • Number of updates: 195
  • Update frequency: every 15.1 days
  • Top authors: anoopranawat (63.59%)wponlinesupport (36.92%)

Code review

54 tests

User reviews

113 reviews

Install metrics

30,000+ active /796,955 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.61ms] Passed 4 tests

A check of server-side resources used by WP Responsive Recent Post Slider/Carousel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.29 ▼7.20
Dashboard /wp-admin3.35 ▲0.0146.76 ▼13.89
Posts /wp-admin/edit.php3.47 ▲0.1146.35 ▼0.41
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.52 ▼4.94
Media Library /wp-admin/upload.php3.28 ▲0.0538.38 ▲1.46

Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 72 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
wpos_anylc_site_uid
theysaidso_admin_options
wpos_anylc_redirect
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Responsive Recent Post Slider/Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,544 ▼1,20313.38 ▼0.861.85 ▲0.2118.95 ▼23.68
Dashboard /wp-admin2,219 ▲415.56 ▼0.03102.56 ▼10.9652.98 ▲9.07
Posts /wp-admin/edit.php2,126 ▲262.03 ▲0.0539.89 ▲1.0735.74 ▲1.27
Add New Post /wp-admin/post-new.php6,218 ▲4,69219.17 ▼3.91974.52 ▲366.4172.32 ▲18.27
Media Library /wp-admin/upload.php1,423 ▲234.32 ▲0.07102.51 ▼0.3242.64 ▼4.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • theysaidso_admin_options
    • wpos_anylc_site_uid
    • wpos_anylc_redirect
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Please delete some tags, you are using 15 tag instead of maximum 10
You can look at the official readme.txt

wp-responsive-recent-post-slider/wp-recent-post-slider.php 85% from 13 tests

The principal PHP file in "WP Responsive Recent Post Slider/Carousel" v. 3.5 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-responsive-recent-post-slider.php" instead of "wp-recent-post-slider.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)

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
There were no executable files found in this plugin4,222 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP336799233,524
JavaScript712265397
CSS62213299
JSON2002

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.58
Average class complexity17.25
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes225.00%
Methods41
▷ Static methods24.88%
▷ Public methods3790.24%
▷ Protected methods00.00%
▷ Private methods49.76%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants18100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
20 PNG files occupy 0.48MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%
assets/images/popup-icon/slider-carousel.png5.07KB2.69KB▼ 46.98%
assets/images/popup-icon/centermode.png5.72KB2.98KB▼ 47.84%
wpos-plugins/assets/images/essentialplugin-logo.png7.62KB3.82KB▼ 49.88%
assets/images/popup-icon/grid-box.png11.39KB3.31KB▼ 70.95%