10% zia3-css-fullscreen-background-slideshow

Code Review | Zia3 CSS Fullscreen Background Slideshow

WordPress plugin Zia3 CSS Fullscreen Background Slideshow scored 10% from 54 tests.

About plugin

  • Plugin page: zia3-css-fullscre...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.0
  • WordPress version: 6.3.1
  • First release: Apr 19, 2015
  • Latest release: Sep 29, 2015
  • Number of updates: 23
  • Update frequency: every 7.1 days
  • Top authors: zia3wp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 3,062 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method zia3::flush() should not be called statically

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.52ms] Passed 4 tests

Analyzing server-side resources used by Zia3 CSS Fullscreen Background Slideshow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0539.52 ▼1.24
Dashboard /wp-admin3.34 ▲0.0445.39 ▼1.24
Posts /wp-admin/edit.php3.39 ▲0.0344.62 ▼0.18
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.14 ▼3.43
Media Library /wp-admin/upload.php3.26 ▲0.0334.39 ▲4.01
All Slideshows /wp-admin/edit.php?post_type=zia33.3538.22
Add Slideshow /wp-admin/post-new.php?post_type=zia33.3848.35

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Zia3 CSS Fullscreen Background Slideshow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲18213.61 ▼1.006.21 ▲4.5446.86 ▼2.43
Dashboard /wp-admin2,227 ▲395.83 ▼0.07100.81 ▼5.0840.52 ▼2.61
Posts /wp-admin/edit.php2,116 ▲242.02 ▼0.0234.67 ▼2.7437.69 ▲7.05
Add New Post /wp-admin/post-new.php1,557 ▲4323.19 ▲5.73690.64 ▲51.6955.56 ▼0.77
Media Library /wp-admin/upload.php1,415 ▲334.20 ▼0.0298.62 ▲0.3542.98 ▼0.43
All Slideshows /wp-admin/edit.php?post_type=zia31,2633.3645.5827.53
Add Slideshow /wp-admin/post-new.php?post_type=zia31,9203.6660.7432.46

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method zia3::flush() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+20
    Undefined index: fade
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+21
    Undefined index: delay
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+22
    Undefined index: overlay
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+23
    Undefined index: type
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+24
    Undefined index: autoplay
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+25
    Undefined index: poster
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+26
    Undefined index: arrows
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+27
    Undefined index: link_title
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+28
    Undefined index: link
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+29
    Undefined index: link_color
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+30
    Undefined index: slogan
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+31
    Undefined index: slogan_link
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Notice in wp-content/plugins/zia3-css-fullscreen-background-slideshow/methods/metaboxes/zia3_shortcode_metabox.php+32
    Undefined index: slogan_link_color

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
Please fix the following items
  • 4× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/zia3-css-fullscreen-background-slideshow/css/zia3-dynamic-style-4.css.php
    • > /wp-content/plugins/zia3-css-fullscreen-background-slideshow/css/zia3-dynamic-style-1.css.php
    • > /wp-content/plugins/zia3-css-fullscreen-background-slideshow/css/zia3-dynamic-style-2.css.php
    • > /wp-content/plugins/zia3-css-fullscreen-background-slideshow/css/zia3-dynamic-style-3.css.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/post-new.php?post_type=zia3
    • > Javascript (severe) in unknown
    /wp-content/plugins/zia3-css-fullscreen-background-slideshow/js/img_reorder_remove.js 12:23 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

zia3-css-fullscreen-background-slideshow/zia3.php 85% from 13 tests

The entry point to "Zia3 CSS Fullscreen Background Slideshow" version 1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("zia3-css-fullscreen-background-slideshow.php" instead of "zia3.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 192 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
No dangerous file extensions were detected2,243 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP15138631,536
CSS365360
SVG100188
JavaScript423159

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.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

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/pattern.png0.12KB0.10KB▼ 14.41%