84% responsive-full-width-background-slider

Code Review | Responsive Full Width Background Slider

WordPress plugin Responsive Full Width Background Slider scored 84% from 54 tests.

About plugin

  • Plugin page: responsive-full-w...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.0
  • WordPress version: 6.3.1
  • First release: May 31, 2014
  • Latest release: Jan 12, 2015
  • Number of updates: 25
  • Update frequency: every 9.1 days
  • Top authors: wptreasure (96%)Otto42 (8%)

Code review

54 tests

User reviews

25 reviews

Install metrics

3,000+ active / 89,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲2.55ms] Passed 4 tests

A check of server-side resources used by Responsive Full Width Background Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1040.21 ▼0.72
Dashboard /wp-admin3.42 ▲0.1247.32 ▲0.88
Posts /wp-admin/edit.php3.47 ▲0.1254.15 ▲8.95
Add New Post /wp-admin/post-new.php6.00 ▲0.1293.53 ▲1.09
Media Library /wp-admin/upload.php3.35 ▲0.1240.97 ▲9.99

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
rfwbs_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Full Width Background Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,137 ▲40214.48 ▲0.1128.00 ▲26.3944.90 ▼1.95
Dashboard /wp-admin2,221 ▲304.93 ▼0.9895.19 ▼13.0575.17 ▲31.81
Posts /wp-admin/edit.php2,101 ▲121.98 ▼0.0139.76 ▲2.2138.14 ▲6.71
Add New Post /wp-admin/post-new.php6,671 ▲5,13823.34 ▲0.001,025.06 ▲383.0172.25 ▲19.97
Media Library /wp-admin/upload.php1,397 ▲154.21 ▼0.0493.89 ▼0.5966.61 ▲21.42

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 detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • rfwbs_settings

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-full-width-background-slider/rfwbs.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: There are too many tags (26 tag instead of maximum 10)
The official readme.txt might help

responsive-full-width-background-slider/rfwbs.php 92% from 13 tests

"Responsive Full Width Background Slider" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-full-width-background-slider.php" instead of "rfwbs.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,294 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript413387707
PHP33237459
CSS256128

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity12.50
▷ Minimum method complexity3.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.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
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/images/slider-fullscreen.png0.25KB0.24KB▼ 6.54%
inc/images/right.png0.21KB0.24KB0.00%
inc/images/left.png0.22KB0.25KB0.00%
inc/images/overlay/overlay.png0.21KB0.10KB▼ 52.61%
inc/images/rfwbs-icon.png0.69KB0.97KB0.00%