94% fabulous-background-colors

Code Review | Fabulous Background Colors

WordPress plugin Fabulous Background Colors scored 94% from 54 tests.

About plugin

  • Plugin page: fabulous-backgrou...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2
  • WordPress version: 5.9.2
  • First release: Apr 29, 2015
  • Latest release: Apr 29, 2015
  • Number of updates: 28
  • Update frequency: N/A
  • Top authors: matthiasulrich (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,947 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼286.73ms] Passed 4 tests

This is a short check of server-side resources used by Fabulous Background Colors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1258.67 ▼1.24
Dashboard /wp-admin3.49 ▲0.0837.79 ▲4.91
Posts /wp-admin/edit.php3.72 ▲0.0836.00 ▼1.09
Add New Post /wp-admin/post-new.php6.96 ▼0.0195.64 ▼1,144.54
Media Library /wp-admin/upload.php3.37 ▲0.0827.38 ▼0.06

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, no new options
New tables
wp_fcb_einstellungen

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fabulous Background Colors
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲8415.68 ▼0.106.93 ▲0.802.08 ▲0.02
Dashboard /wp-admin2,900 ▲466.12 ▼0.07125.57 ▼19.43164.64 ▼12.11
Posts /wp-admin/edit.php2,707 ▲193.24 ▲0.0062.10 ▼2.25197.33 ▲58.57
Add New Post /wp-admin/post-new.php1,732 ▲2221.04 ▲0.29433.09 ▼18.60160.26 ▼12.30
Media Library /wp-admin/upload.php1,720 ▲265.51 ▼0.03150.76 ▼24.62191.74 ▲3.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fabulous-background-colors/fabulous-background-colors.php

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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: stripe, color, colors, random, background...

fabulous-background-colors/fabulous-background-colors.php Passed 13 tests

The primary PHP file in "Fabulous Background Colors" version 1.0.0 is used by WordPress to initiate all plugin functionality
115 characters long description:
This Plugin adds colored stripes width random colors and smooth color transitions to the background of your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin440 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP28734415
CSS251424
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
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
There were not PNG files found in your plugin