78% folder-slider

Code Review | Folder Slider

WordPress plugin Folder Slider scored78%from 54 tests.

About plugin

  • Plugin page: folder-slider
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Nov 18, 2017
  • Number of updates: 39
  • Update frequency: every 39.8 days
  • Top authors: vjalby (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /5,602 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.28ms] Passed 4 tests

Analyzing server-side resources used by Folder Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0839.79 ▼1.38
Dashboard /wp-admin3.39 ▲0.0852.13 ▲2.00
Posts /wp-admin/edit.php3.50 ▲0.1446.28 ▼4.31
Add New Post /wp-admin/post-new.php5.97 ▲0.0899.68 ▲3.86
Media Library /wp-admin/upload.php3.31 ▲0.0837.38 ▼1.41
Folder Slider /wp-admin/options-general.php?page=folder-slider3.2734.02

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

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

Browser metrics Passed 4 tests

Folder Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.47 ▲0.041.65 ▼0.3044.15 ▼4.86
Dashboard /wp-admin2,201 ▲104.88 ▼1.02116.99 ▲11.8748.95 ▲8.11
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0439.62 ▼4.0132.46 ▼19.98
Add New Post /wp-admin/post-new.php1,536 ▲1623.41 ▲0.23699.94 ▼4.9485.19 ▲29.37
Media Library /wp-admin/upload.php1,389 ▲44.18 ▼0.08105.09 ▼8.2443.57 ▼2.31
Folder Slider /wp-admin/options-general.php?page=folder-slider9832.0326.6028.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • FolderSlider
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=folder-slider
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+204
    Undefined offset: 0
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=folder-slider
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+205
    Trying to get property 'guid' of non-object
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=folder-slider
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+221
    Trying to get property 'ID' of non-object
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=folder-slider
    • > POST request to /wp-cron.php?doing_wp_cron=1696658530.1360850334167480468750
    • > Notice in wp-content/plugins/pressforward/Core/Utility/Retrieval.php+222
    Trying to get property 'post_title' of non-object

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/folder-slider/folderslider.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: slider, folder, slideshow, bxslider

folder-slider/folderslider.php 85% from 13 tests

The principal PHP file in "Folder Slider" v. 1.1.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("folder-slider.php" instead of "folderslider.php")

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
Everything looks great! No dangerous files found in this plugin2,400 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3965251,015
Markdown21410637
PHP14938334
CSS32216265
PO File25961149

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
jquery.bxslider/images/controls.png2.74KB1.42KB▼ 48.29%