78% multimediamonster-full-screen-background-images

Code Review | Full Screen Background Images

WordPress plugin Full Screen Background Images scored78%from 54 tests.

About plugin

  • Plugin page: multimediamonster...
  • Plugin version: 2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.1
  • WordPress version: 6.3.1
  • First release: Dec 26, 2014
  • Latest release: May 2, 2016
  • Number of updates: 25
  • Update frequency: every 19.8 days
  • Top authors: mmmrenske (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /12,576 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.73MB] [CPU: ▼21.46ms] Passed 4 tests

This is a short check of server-side resources used by Full Screen Background Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.00 ▼1.33
Dashboard /wp-admin3.37 ▲0.0651.69 ▼2.06
Posts /wp-admin/edit.php3.10 ▼0.2628.01 ▼20.97
Add New Post /wp-admin/post-new.php3.10 ▼2.7929.83 ▼61.48
Media Library /wp-admin/upload.php3.29 ▲0.0642.53 ▲7.88
Settings general /wp-admin/edit.php?post_type=mmm_fsbi&page=full-screen-background-images-settings-general3.2638.63
All backgrounds /wp-admin/edit.php?post_type=mmm_fsbi3.1025.63
New Background /wp-admin/post-new.php?post_type=mmm_fsbi3.1028.85

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Full Screen Background Images
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7614.28 ▼0.071.80 ▼0.4543.46 ▼0.80
Dashboard /wp-admin2,243 ▲725.56 ▼0.0288.09 ▼2.2079.47 ▲42.39
Posts /wp-admin/edit.php2,203 ▲1032.00 ▲0.0136.03 ▼0.4532.68 ▼3.82
Add New Post /wp-admin/post-new.php1,783 ▲25422.14 ▼1.34657.08 ▲34.3463.21 ▲7.20
Media Library /wp-admin/upload.php1,442 ▲424.16 ▲0.02105.83 ▼0.6643.60 ▼1.57
Settings general /wp-admin/edit.php?post_type=mmm_fsbi&page=full-screen-background-images-settings-general1,1741.7926.0739.25
All backgrounds /wp-admin/edit.php?post_type=mmm_fsbi1,1731.9135.3931.22
New Background /wp-admin/post-new.php?post_type=mmm_fsbi2,3377.71172.00129.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=mmm_fsbi
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method mmm_fsbi_copyright::add_copyright_screentab() should not be called statically
    • > GET request to /wp-admin/post-new.php?post_type=mmm_fsbi
    • > Notice in wp-content/plugins/multimediamonster-full-screen-background-images/classes/class-mmm-fsbi-admin-menu-items.php+52
    Undefined index: mmm_fsbi_subtitlemeta_noncename

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/multimediamonster-full-screen-background-images/multimediamonster-full-screen-background-images.php:28

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: screen, full, images, background

multimediamonster-full-screen-background-images/multimediamonster-full-screen-background-images.php 92% from 13 tests

"Full Screen Background Images" version 2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 539 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,437 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP91011811,017
JavaScript81814731,010
CSS63657300
PO File145109110

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.25
▷ Minimum class complexity1.00
▷ Maximum class complexity39.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods3497.14%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
21 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/pause.png1.10KB0.35KB▼ 68.08%
images/progress-back.png0.91KB0.09KB▼ 89.67%
images/nav-bg.png0.97KB0.26KB▼ 72.76%
images/admin/copyright-bg.png18.33KB6.75KB▼ 63.16%
images/admin/logo.png22.54KB7.14KB▼ 68.32%