84% rsv-slider

Code Review | RSV Slider

WordPress plugin RSV Slider scored84%from 54 tests.

About plugin

  • Plugin page: rsv-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.1
  • WordPress version: 6.3.1
  • First release: Aug 24, 2015
  • Latest release: Dec 15, 2019
  • Number of updates: 28
  • Update frequency: every 56.3 days
  • Top authors: Rapid Sort (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.33ms] Passed 4 tests

Server-side resources used by RSV Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.96 ▼0.61
Dashboard /wp-admin3.32 ▲0.0246.38 ▼0.20
Posts /wp-admin/edit.php3.37 ▲0.0144.82 ▲0.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.06 ▼1.12
Media Library /wp-admin/upload.php3.24 ▲0.0139.30 ▲6.27
RSV Slider /wp-admin/options-general.php?page=my-unique-identifier3.2129.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for RSV Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6414.49 ▲0.112.51 ▲0.7443.15 ▼3.02
Dashboard /wp-admin2,210 ▲225.84 ▲0.7798.98 ▼13.8937.09 ▼5.44
Posts /wp-admin/edit.php2,090 ▲42.02 ▲0.0237.86 ▲2.2532.60 ▼1.74
Add New Post /wp-admin/post-new.php1,536 ▲323.27 ▼0.01632.98 ▼68.2257.31 ▲2.16
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.0495.33 ▼6.0044.77 ▲0.17
RSV Slider /wp-admin/options-general.php?page=my-unique-identifier7752.0523.8126.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rsv-slider/owl-carousel.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
Please take inspiration from this readme.txt

rsv-slider/owl-carousel.php 92% from 13 tests

"RSV Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rsv-slider.php" instead of "owl-carousel.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin254 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS21418118
PHP118989
JavaScript10047

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
grabbing.png0.11KB0.14KB0.00%