94% full-background

Code Review | Full Background

WordPress plugin Full Background scored 94% from 54 tests.

About plugin

  • Plugin page: full-background
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.9.8
  • WordPress version: 5.8.1
  • First release: Aug 15, 2015
  • Latest release: Oct 24, 2018
  • Number of updates: 17
  • Update frequency: every 68.8 days
  • Top authors: Alobaidi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active / 20,310 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼150.62ms] Passed 4 tests

Analyzing server-side resources used by Full Background
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.24 ▲15.13
Dashboard /wp-admin3.08 ▲0.0348.85 ▼5.00
Posts /wp-admin/edit.php3.13 ▲0.0244.76 ▼1.42
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.06 ▼589.42
Media Library /wp-admin/upload.php3.02 ▲0.0132.13 ▼6.64
Full Background /wp-admin/plugins.php?page=alobaidi_full_background2.9930.05

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Full Background
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8816.30 ▲0.6510.52 ▲1.2746.69 ▲1.55
Dashboard /wp-admin2,975 ▲445.94 ▼0.23139.55 ▼13.97102.97 ▲0.66
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0167.08 ▲9.1190.25 ▲9.13
Add New Post /wp-admin/post-new.php1,686 ▲1418.71 ▼0.11413.30 ▲11.22111.42 ▲7.55
Media Library /wp-admin/upload.php1,812 ▲55.04 ▼0.01150.71 ▲5.41117.91 ▼1.64
Full Background /wp-admin/plugins.php?page=alobaidi_full_background1,1312.0555.6582.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/full-background/full-background.php
    • > /wp-content/plugins/full-background/uninstall.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 93% 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
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 32 tag instead of maximum 10
The official readme.txt is a good inspiration

full-background/full-background.php 92% from 13 tests

The main file in "Full Background" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 169 characters long)

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 detected119 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected