10% simple-slideshow-background

Code Review | Simple Slideshow Background

WordPress plugin Simple Slideshow Background scored 10% from 54 tests.

About plugin

  • Plugin page: simple-slideshow-...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Dec 24, 2012
  • Latest release: Jan 9, 2013
  • Number of updates: 9
  • Update frequency: every 1.9 days
  • Top authors: barteled (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,635 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/simple-slideshow-background/admin-form.php+54
    syntax error, unexpected end of file

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

Analyzing server-side resources used by Simple Slideshow Background
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.43 ▼3.98
Dashboard /wp-admin3.31 ▲0.0044.96 ▼2.35
Posts /wp-admin/edit.php3.36 ▲0.0050.70 ▼4.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.08 ▼20.51
Media Library /wp-admin/upload.php3.23 ▲0.0032.69 ▼4.40

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
simple-slideshow_settings
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Slideshow Background
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.081.70 ▼0.2839.69 ▼6.55
Dashboard /wp-admin2,203 ▲155.80 ▲0.9494.94 ▼20.0740.08 ▼7.07
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0839.61 ▼0.8135.43 ▼2.03
Add New Post /wp-admin/post-new.php1,533 ▼023.47 ▲0.05664.67 ▲9.0352.77 ▲3.13
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0395.19 ▼12.0242.63 ▼1.21

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • simple-slideshow_settings
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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)
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-slideshow-background/admin-menu.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-slideshow-background/display-background.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-slideshow-background/simple-slideshow-background.php:19
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/simple-slideshow-background/admin-table.php on line 143
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/simple-slideshow-background/admin-form.php on line 54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: slideshow, background

simple-slideshow-background/simple-slideshow-background.php Passed 13 tests

The primary PHP file in "Simple Slideshow Background" version 0.2 is used by WordPress to initiate all plugin functionality
105 characters long description:
Add a full screen slideshow background which transitions through photos from you Wordpress media library.

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
Everything looks great! No dangerous files found in this plugin310 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP55849264
CSS210746

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin