83% rob-bot-video-slider

Code Review | Rob-Bot Video Slider

WordPress plugin Rob-Bot Video Slider scored 83% from 54 tests.

About plugin

  • Plugin page: rob-bot-video-slider
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Apr 8, 2017
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: robertcc18 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 435 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.27ms] Passed 4 tests

An overview of server-side resources used by Rob-Bot Video Slider
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.73 ▲1.67
Dashboard /wp-admin3.37 ▲0.0747.78 ▲1.88
Posts /wp-admin/edit.php3.48 ▲0.1344.36 ▼2.20
Add New Post /wp-admin/post-new.php5.97 ▲0.0986.60 ▼9.10
Media Library /wp-admin/upload.php3.29 ▲0.0734.88 ▲0.54

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Rob-Bot Video Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲17613.95 ▼0.436.83 ▲5.0642.58 ▲0.28
Dashboard /wp-admin2,226 ▲415.79 ▼0.0997.86 ▼3.2339.22 ▲2.57
Posts /wp-admin/edit.php2,112 ▲232.02 ▼0.0334.50 ▼2.7632.57 ▼0.77
Add New Post /wp-admin/post-new.php1,532 ▼223.18 ▲0.05672.57 ▲52.0566.90 ▲13.53
Media Library /wp-admin/upload.php1,411 ▲264.20 ▼0.0895.31 ▼13.6942.89 ▼7.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/rob-bot-video-slider/admin/partials/plugin-name-admin-display.php
    • > /wp-content/plugins/rob-bot-video-slider/public/partials/plugin-name-public-display.php

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === rob-bot-video-slider === )
Please take inspiration from this readme.txt

rob-bot-video-slider/bot-video-slider.php 85% from 13 tests

The main PHP script in "Rob-Bot Video Slider" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("rob-bot-video-slider.php" instead of "bot-video-slider.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,549 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81255941,119
PHP12156540253
CSS4817177

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.29
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.09
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/css/images/controls.png2.74KB1.42KB▼ 48.29%
includes/css/images/icon.png2.18KB1.61KB▼ 26.09%