83% responsive-bottom-up-slider

Code Review | Responsive Bottom-Up Slider

WordPress plugin Responsive Bottom-Up Slider scored83%from 54 tests.

About plugin

  • Plugin page: responsive-bottom...
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-5.8
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 14
  • Update frequency: every 160.4 days
  • Top authors: robert.peake (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,498 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.10ms] Passed 4 tests

An overview of server-side resources used by Responsive Bottom-Up Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.69 ▲0.43
Dashboard /wp-admin3.33 ▲0.0351.39 ▲0.55
Posts /wp-admin/edit.php3.38 ▲0.0349.06 ▼3.03
Add New Post /wp-admin/post-new.php5.91 ▲0.03113.94 ▲9.84
Media Library /wp-admin/upload.php3.25 ▲0.0337.67 ▼2.34
Responsive Bottom-Up Slider /wp-admin/options-general.php?page=responsive-bottom-up-slider/admin.php3.2232.00

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 10 new options
New WordPress options
widget_recent-comments
can_compress_scripts
rs_display_secs
widget_recent-posts
theysaidso_admin_options
rs_hide_days
widget_theysaidso_widget
db_upgraded
rs_content
rs_enabled

Browser metrics Passed 4 tests

This is an overview of browser requirements for Responsive Bottom-Up Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.30 ▼0.232.58 ▲0.9951.35 ▲3.33
Dashboard /wp-admin2,199 ▲225.62 ▼0.0593.54 ▲2.7545.70 ▲4.64
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0235.78 ▼1.3134.16 ▲2.96
Add New Post /wp-admin/post-new.php1,531 ▲323.13 ▼0.04651.66 ▼43.1957.89 ▼9.35
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.0496.91 ▼2.5441.84 ▼0.22
Responsive Bottom-Up Slider /wp-admin/options-general.php?page=responsive-bottom-up-slider/admin.php8491.9927.1224.82

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 10 options in the database
    • rs_enabled
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • rs_content
    • rs_hide_days
    • rs_display_secs

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/responsive-bottom-up-slider/admin.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: responsive popup, slider, responsive banner, popup, nag

responsive-bottom-up-slider/responsive-slider.php 77% from 13 tests

The main PHP script in "Responsive Bottom-Up Slider" version 1.1.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 261 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-bottom-up-slider.php" instead of "responsive-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin235 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22313141
PHP4101294

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin