79% dynamic-background

Code Review | Dynamic Background Colour

WordPress plugin Dynamic Background Colour scored79%from 54 tests.

About plugin

  • Plugin page: dynamic-background
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Dec 8, 2016
  • Number of updates: 41
  • Update frequency: every 16.3 days
  • Top authors: stevekimpton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,406 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.90ms] Passed 4 tests

Analyzing server-side resources used by Dynamic Background Colour
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.26 ▲4.24
Dashboard /wp-admin3.31 ▲0.0142.85 ▼1.90
Posts /wp-admin/edit.php3.36 ▲0.0044.29 ▼4.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.45 ▼17.04
Media Library /wp-admin/upload.php3.23 ▲0.0032.06 ▼4.67
Dynamic Background /wp-admin/themes.php?page=wordpoolbg3.1829.55

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
wordpool-background-options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dynamic Background Colour
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲14113.43 ▼0.958.68 ▲7.0043.82 ▼0.47
Dashboard /wp-admin2,202 ▲255.61 ▼0.0681.61 ▼6.4939.18 ▼1.31
Posts /wp-admin/edit.php2,101 ▲42.02 ▲0.0234.03 ▼0.9235.63 ▼0.85
Add New Post /wp-admin/post-new.php1,531 ▲323.34 ▲0.18644.64 ▼30.6350.25 ▼0.82
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.0293.79 ▼18.6641.36 ▼6.99
Dynamic Background /wp-admin/themes.php?page=wordpoolbg9522.0123.4028.69

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=wordpoolbg
    • > Notice in wp-content/plugins/dynamic-background/dynamic-background.php+353
    Undefined offset: 0

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dynamic-background/dynamic-background.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 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
3 plugin tags: transparency, color wheel, background

dynamic-background/dynamic-background.php Passed 13 tests

Analyzing the main PHP file in "Dynamic Background Colour" version 1.0
109 characters long description:
Continuously and gently changes color of background and/or pictures with transparent areas on selected pages.

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
There were no executable files found in this plugin521 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26061348
JavaScript12641173

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions5
▷ Named functions5100.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
No PNG images were found in this plugin