77% fade-slider

Code Review | Fade Slider

WordPress plugin Fade Slider scored77%from 54 tests.

About plugin

  • Plugin page: fade-slider
  • Plugin version: 2.5
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 5, 2016
  • Latest release: May 2, 2019
  • Number of updates: 40
  • Update frequency: every 28.1 days
  • Top authors: anand000 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /4,418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.27ms] Passed 4 tests

An overview of server-side resources used by Fade Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.41 ▲4.01
Dashboard /wp-admin3.44 ▲0.1447.47 ▼0.03
Posts /wp-admin/edit.php3.49 ▲0.1346.43 ▼1.33
Add New Post /wp-admin/post-new.php6.04 ▲0.1578.91 ▼21.47
Media Library /wp-admin/upload.php3.36 ▲0.1338.28 ▲1.74
All Sliders /wp-admin/edit.php?post_type=fade_slider3.4033.52
Add New /wp-admin/post-new.php?post_type=fade_slider3.4245.01

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Fade Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.79 ▼0.769.15 ▲7.3144.98 ▲3.90
Dashboard /wp-admin2,231 ▲405.02 ▼1.0399.92 ▲1.4337.38 ▼6.73
Posts /wp-admin/edit.php2,121 ▲322.31 ▲0.3242.27 ▲6.3635.84 ▼1.00
Add New Post /wp-admin/post-new.php1,552 ▲3818.57 ▲1.00622.30 ▼53.4534.22 ▼19.26
Media Library /wp-admin/upload.php1,410 ▲254.31 ▼0.00101.39 ▼0.2748.08 ▲2.74
All Sliders /wp-admin/edit.php?post_type=fade_slider1,0672.2939.7528.30
Add New /wp-admin/post-new.php?post_type=fade_slider1,9403.7777.7837.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/fade-slider/index.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fade-slider/admin/fadeslider_admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fade-slider/public/fadeslider_public.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (screenshot-1.png), #2 (screenshot-2.png)
Please take inspiration from this readme.txt

fade-slider/fadeslider_init.php 77% from 13 tests

The principal PHP file in "Fade Slider" v. 2.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("fade-slider.php" instead of "fadeslider_init.php")
  • Description: The description should be shorter than 140 characters (currently 166 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,099 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP45741525
SVG100288
CSS3119188
JavaScript2181098

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.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.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
3 PNG files occupy 0.16MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png36.20KB8.33KB▼ 76.98%
screenshot-1.png116.66KB36.20KB▼ 68.97%
screenshot-3.png14.19KB8.02KB▼ 43.47%