83% all-in-one-background

Code Review | All in one Background

WordPress plugin All in one Background scored83%from 54 tests.

About plugin

  • Plugin page: all-in-one-backgr...
  • Plugin version: 0.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Nov 19, 2012
  • Latest release: Dec 13, 2013
  • Number of updates: 5
  • Update frequency: every 77.8 days
  • Top authors: 1eftHander (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /3,742 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.67MB] [CPU: ▼20.28ms] Passed 4 tests

An overview of server-side resources used by All in one Background
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0325.35 ▼14.22
Dashboard /wp-admin3.36 ▲0.0548.94 ▼1.24
Posts /wp-admin/edit.php3.41 ▲0.0555.09 ▲3.64
Add New Post /wp-admin/post-new.php3.14 ▼2.7539.49 ▼67.33
Media Library /wp-admin/upload.php3.28 ▲0.0538.75 ▲1.69

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/all-in-one-background/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for All in one Background
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.61 ▼0.361.85 ▼0.0642.25 ▲1.00
Dashboard /wp-admin2,225 ▲225.89 ▲1.01102.86 ▼1.0438.98 ▲0.75
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0540.70 ▲4.2336.11 ▲0.61
Add New Post /wp-admin/post-new.php6,375 ▲4,83519.14 ▼4.35918.93 ▲246.7354.38 ▼5.69
Media Library /wp-admin/upload.php1,404 ▲14.28 ▲0.01104.76 ▲1.1046.43 ▲0.77

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

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
Even though no errors were found, this is by no means 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-background/all-in-one-background.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (screenshot 1), #2 (screenshot 2), #3 (screenshot 3)
You can take inspiration from this readme.txt

all-in-one-background/all-in-one-background.php 92% from 13 tests

The primary PHP file in "All in one Background" version 0.9.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 310 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected354 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP13223195
JavaScript1202127
CSS110432

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png22.50KB11.62KB▼ 48.36%
screenshot-2.png37.73KB15.22KB▼ 59.66%
screenshot-1.png28.96KB12.12KB▼ 58.16%