10% fancy-heaer-slider

Code Review | Fancy Header Slider

WordPress plugin Fancy Header Slider scored10%from 54 tests.

About plugin

  • Plugin page: fancy-heaer-slider
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.0.1
  • WordPress version: 6.3.1
  • First release: Jul 3, 2012
  • Latest release: Sep 4, 2013
  • Number of updates: 73
  • Update frequency: every 5.9 days
  • Top authors: rashmisoni (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

80+ active /27,437 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/fancy-heaer-slider/fancy-header-slider.php+63
    Methods with the same name as their class will not be constructors in a future version of PHP; FancyHeaderSlider has a deprecated constructor

Server metrics [RAM: ▼0.66MB] [CPU: ▼17.32ms] Passed 4 tests

This is a short check of server-side resources used by Fancy Header Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.81 ▲1.87
Dashboard /wp-admin3.34 ▼0.0043.61 ▼15.73
Posts /wp-admin/edit.php3.39 ▲0.0447.57 ▲0.55
Add New Post /wp-admin/post-new.php3.17 ▼2.7234.83 ▼55.97
Media Library /wp-admin/upload.php3.26 ▲0.0435.24 ▲2.04
Add New Slider /wp-admin/post-new.php?post_type=fancyheader3.1231.85
Document /wp-admin/edit.php?post_type=fancyheader&page=fhs-gallery-overview3.2628.37
Header Slider /wp-admin/edit.php?post_type=fancyheader3.3133.72
Slider Settings /wp-admin/edit.php?post_type=fancyheader&page=fhs-gallery-settings3.3130.37

Server storage [IO: ▲0.37MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
fhs_settings
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Fancy Header Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17913.89 ▼0.819.11 ▲7.4941.09 ▼0.18
Dashboard /wp-admin2,247 ▲755.64 ▲0.0390.54 ▼7.7644.41 ▲2.00
Posts /wp-admin/edit.php2,146 ▲461.95 ▲0.0039.68 ▲0.6936.23 ▲1.42
Add New Post /wp-admin/post-new.php1,566 ▲3823.22 ▼0.02658.43 ▼22.7449.97 ▼7.68
Media Library /wp-admin/upload.php1,446 ▲524.26 ▲0.1894.62 ▼9.6743.31 ▼0.47
Add New Slider /wp-admin/post-new.php?post_type=fancyheader1,7123.8061.0333.79
Document /wp-admin/edit.php?post_type=fancyheader&page=fhs-gallery-overview9972.1924.5725.85
Header Slider /wp-admin/edit.php?post_type=fancyheader1,1191.9629.7531.77
Slider Settings /wp-admin/edit.php?post_type=fancyheader&page=fhs-gallery-settings1,1732.0022.3127.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, class 'FancyHeaderSlider' does not have a method 'fhs_deactivate_empty'
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • fhs_settings
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=fancyheader
    • > Notice in wp-content/plugins/fancy-heaer-slider/admin/metabox-link.php+50
    Undefined index: post_type

SRP 0% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fancy-heaer-slider/admin/gallery-settings.php
    • > /wp-content/plugins/fancy-heaer-slider/admin/gallery-overview.php
  • 2× 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/fancy-heaer-slider/admin/metabox-link.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/fancy-heaer-slider/fancy-header-slider.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
5 plugin tags: header, images, gallery slider, wordpress slider, slider

fancy-heaer-slider/fancy-header-slider.php 92% from 13 tests

Analyzing the main PHP file in "Fancy Header Slider" version 2.0
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fancy-heaer-slider.php" instead of "fancy-header-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected658 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP493108631
JavaScript121027

PHP code Passed 2 tests

This is a short overview 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.27
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/star.png0.65KB0.66KB0.00%