84% simple-full-screen-background-image

Code Review | Simple Full Screen Background Image

WordPress plugin Simple Full Screen Background Image scored 84% from 54 tests.

About plugin

  • Plugin page: simple-full-scree...
  • Plugin version: 1.2.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 26, 2011
  • Latest release: Mar 30, 2023
  • Number of updates: 43
  • Update frequency: every 99.2 days
  • Top authors: scott.deluzio (62.79%)mordauk (37.21%)ampmode (4.65%)

Code review

54 tests

User reviews

44 reviews

Install metrics

10,000+ active / 416,800 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.65ms] Passed 4 tests

Server-side resources used by Simple Full Screen Background Image
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.63 ▼0.27
Dashboard /wp-admin3.31 ▲0.0149.49 ▲1.37
Posts /wp-admin/edit.php3.36 ▲0.0147.41 ▲1.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.83 ▼8.71
Media Library /wp-admin/upload.php3.24 ▲0.0131.88 ▼3.00
Fullscreen BG Image /wp-admin/themes.php?page=full-screen-background3.2336.37

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple Full Screen Background Image
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.23 ▼1.131.73 ▲0.0342.14 ▼0.61
Dashboard /wp-admin2,210 ▲245.85 ▲0.9494.48 ▼25.2940.03 ▼2.36
Posts /wp-admin/edit.php2,090 ▲42.01 ▲0.0133.98 ▼2.4030.64 ▼5.31
Add New Post /wp-admin/post-new.php6,464 ▲4,94520.48 ▼2.71931.08 ▲270.9353.90 ▼0.63
Media Library /wp-admin/upload.php1,392 ▲74.30 ▲0.0594.74 ▼1.0543.23 ▼0.04
Fullscreen BG Image /wp-admin/themes.php?page=full-screen-background9843.1847.8954.13

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though everything seems fine, this is not 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
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-full-screen-background-image/includes/scripts.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-full-screen-background-image/includes/display-image.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-full-screen-background-image/includes/admin-page.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-full-screen-background-image/includes/meta-box.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-full-screen-background-image/simple-full-screen-background.php:20

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: full screen, image, background image, background, fullscreen

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

The main PHP file in "Simple Full Screen Background Image" ver. 1.2.10 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-full-screen-background-image.php" instead of "simple-full-screen-background.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
No dangerous file extensions were detected198 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP63141146
JavaScript113836
CSS12316

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin