84% slider-rb

Code Review | Slider RB - image slider, photo slider, content slider

WordPress plugin Slider RB - image slider, photo slider, content slider scored84%from 54 tests.

About plugin

  • Plugin page: slider-rb
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Apr 7, 2022
  • Latest release: May 19, 2023
  • Number of updates: 6
  • Update frequency: every 69.3 days
  • Top authors: rbplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /299 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.93ms] Passed 4 tests

Analyzing server-side resources used by Slider RB - image slider, photo slider, content slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.13 ▼2.94
Dashboard /wp-admin3.33 ▲0.0251.45 ▼4.13
Posts /wp-admin/edit.php3.38 ▲0.0249.49 ▼8.65
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.24 ▼15.98
Media Library /wp-admin/upload.php3.25 ▲0.0240.98 ▲6.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Slider RB - image slider, photo slider, content slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3413.26 ▼1.104.84 ▲2.9541.03 ▼1.95
Dashboard /wp-admin2,192 ▲155.49 ▼0.1791.71 ▼4.6942.70 ▲1.95
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0236.46 ▼3.1835.99 ▼2.36
Add New Post /wp-admin/post-new.php6,196 ▲4,66819.15 ▼3.86881.54 ▲178.8458.98 ▼5.44
Media Library /wp-admin/upload.php1,400 ▲34.26 ▲0.06102.49 ▼2.0945.72 ▲0.99

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slider-rb/slider-rb.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: image slider, content slider, photo slider, slider, slider block

slider-rb/slider-rb.php 85% from 13 tests

The principal PHP file in "Slider RB - image slider, photo slider, content slider" v. 1.0.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.1" instead of "5.8")
  • Description: Please don't use more than 140 characters for the plugin description (currently 144 characters long)

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
There were no executable files found in this plugin134 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP2161676
JSON14052
CSS21114
JavaScript21122

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin