72% fullscreen-slider

Code Review | Fullscreen Slider

WordPress plugin Fullscreen Slider scored72%from 54 tests.

About plugin

  • Plugin page: fullscreen-slider
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2013
  • Latest release: Jul 27, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: alex.i (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active /10,886 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by Fullscreen Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.12 ▼4.52
Dashboard /wp-admin3.34 ▲0.0450.66 ▼1.49
Posts /wp-admin/edit.php3.39 ▲0.0453.11 ▼4.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0496.28 ▼3.59
Media Library /wp-admin/upload.php3.26 ▲0.0434.18 ▼3.13
Fullscreen Slider /wp-admin/themes.php?page=fs-slider3.4133.61

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fullscreen Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.81 ▼0.508.21 ▲6.4540.27 ▼3.57
Dashboard /wp-admin2,199 ▲195.61 ▼0.0896.10 ▼1.7943.02 ▼0.09
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0339.65 ▼2.2135.68 ▲0.64
Add New Post /wp-admin/post-new.php1,531 ▲322.98 ▼0.22653.36 ▲7.9561.85 ▲8.74
Media Library /wp-admin/upload.php1,398 ▼24.26 ▼0.01101.90 ▼4.9741.25 ▼4.93
Fullscreen Slider /wp-admin/themes.php?page=fs-slider1,0743.1645.4826.84

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/themes.php?page=fs-slider
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/themes.php?page=fs-slider
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fullscreen-slider/fs-slider.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/fullscreen-slider/views/admin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (The plugin settings), #2 (Adding slides)
  • Donate link: Please fix this invalid URI: ""
You can take inspiration from this readme.txt

fullscreen-slider/fs-slider.php 92% from 13 tests

The main file in "Fullscreen Slider" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fullscreen-slider.php" instead of "fs-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,452 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript514998744
CSS42134511
PHP554147197

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_222222_256x240.png6.76KB4.17KB▼ 38.24%
css/images/ui-bg_glass_100_f6f6f6_1x400.png0.26KB0.12KB▼ 53.44%
screenshot-1.png8.04KB5.37KB▼ 33.17%
screenshot-2.png14.40KB7.91KB▼ 45.11%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%