72% full-screen-page-background-image-slideshow

Code Review | Full Screen (Page) Background Image Slideshow

WordPress plugin Full Screen (Page) Background Image Slideshow scored72%from 54 tests.

About plugin

  • Plugin page: full-screen-page-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 8, 2013
  • Latest release: Sep 19, 2013
  • Number of updates: 15
  • Update frequency: every 14.9 days
  • Top authors: mohsinrasool (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

400+ active /35,073 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.59MB] [CPU: ▼14.41ms] Passed 4 tests

Server-side resources used by Full Screen (Page) Background Image Slideshow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.95 ▼2.40
Dashboard /wp-admin3.40 ▲0.1049.63 ▲2.47
Posts /wp-admin/edit.php3.51 ▲0.1648.41 ▲0.55
Add New Post /wp-admin/post-new.php3.25 ▼2.6435.35 ▼57.78
Media Library /wp-admin/upload.php3.32 ▲0.0937.46 ▲2.01
FullScreen Backgrounds /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds3.2732.31

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 13 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
fsi_animation_delay
theysaidso_admin_options
widget_theysaidso_widget
fsi_opacity
fsi_display_on
fsi_overlay
widget_recent-comments
...

Browser metrics Passed 4 tests

Full Screen (Page) Background Image Slideshow: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲11713.38 ▼0.987.92 ▲6.0041.25 ▼6.37
Dashboard /wp-admin2,202 ▲255.64 ▼0.0392.05 ▼7.2941.02 ▼3.81
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0132.75 ▼4.4238.52 ▲1.28
Add New Post /wp-admin/post-new.php1,531 ▲522.97 ▼0.23680.82 ▲56.5553.82 ▼11.46
Media Library /wp-admin/upload.php1,401 ▲44.21 ▲0.10103.01 ▼3.8444.97 ▲0.89
FullScreen Backgrounds /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds1,3145.68149.7739.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 13 options
    • can_compress_scripts
    • fsi_display_on
    • widget_recent-posts
    • fsi_opacity
    • fsi_animation_delay
    • fsi_animation_duration
    • widget_recent-comments
    • fsi_images
    • theysaidso_admin_options
    • fsi_random
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 0
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 1
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 2
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 3
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 4
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 5
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 6
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 7
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 8
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Notice in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php+73
    Uninitialized string offset: 9

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
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-screen-page-background-image-slideshow/inc/scripts.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-screen-page-background-image-slideshow/admin-settings.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-screen-page-background-image-slideshow/inc/page-metabox.php:15
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/full-screen-page-background-image-slideshow/full-screen-background-image-slideshow.php on line 25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/full-screen-page-background-image-slideshow/inc/styles.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please take a look at the following user-side issues
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/btn_donate.gif - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/icon_person_help.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/icon_doc_find.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/icon_wordpress_blue.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Network (severe)
    https://wpdevsnippets.com/plugin-images/icon_thumb_up.png - Failed to load resource: the server responded with a status of 404 ()
    • > GET request to /wp-admin/options-general.php?page=fsi-fullScreen-backgrounds
    • > Other (severe) in unknown
    chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can look at the official readme.txt

full-screen-page-background-image-slideshow/full-screen-background-image-slideshow.php 92% from 13 tests

"Full Screen (Page) Background Image Slideshow" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("full-screen-page-background-image-slideshow.php" instead of "full-screen-background-image-slideshow.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
There were no executable files found in this plugin475 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP59953463
JavaScript15012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/dot_overlay.png0.12KB0.10KB▼ 19.20%